Adding custom page template to thesis

I’m trying to add a custom page template to show only one sidebar for specific pages.I created a template page in thesis folder and I put these lines<?php echo thesis_header(); ?><?php echo thesis_nav_menu(); ?> <?php echo thesis_content(); ?> <?php echo thesis_sidebar_1(); ?> <?php echo thesis_footer_area(); ?>I found this code in …

via PHP Website Development » Search Results » ajax:

Adding custom page template to thesis

I’m trying to add a custom page template to show only one sidebar for specific pages.
I created a template page in thesis folder and I put these lines

I found this code in a tutorial but when I open any page with this template, page doesnt show up correctly. Because all < head>< /head> section is missing. thesis_header() function doesnt bring html page’s section.
My question; how can I add all those section just like thesis_html_framework() does?
thanks..
………………………….

I could not found a reasonable method and I decided to modify structure with jQuery. This is the custom template file to show only one sidebar. I know not perfect solution, but it saved the day.
/**
* Template Name: Custom – One Sidebar Template
*
* A custom template for use with Thesis theme for creating pages that add a left sidebar.
* DO NOT EDIT THIS FILE. Instead, use the thesis_hook_custom_template() hook in custom/places_template_functions.php
*
* @package Thesis
*/
add_action(‘thesis_hook_after_html’, ‘set_one_sidebar’);

thesis_html_framework();

function set_one_sidebar()
?>


}
?>
………………………….

Did you ever find a better solution? I spent a day or two trying to find out how to rebuild the thesis framework so I could adjust the width of the site for a handfull of pages. Ended up using your fix after I tried (successfully) to override the css after calling the framework function.
something like:
thesis_html_framework();

that gets tossed at the end of the body, probably not a good solution either.


For more info: Adding custom page template to thesis


PHP Website Development » Search Results » ajax

Adding custom page template to thesis

Share this post:

Related Posts

Leave a Comment