ThemeShaper Forums » Thematic

[closed]

Functions.php making my blog page different from other pages

(4 posts)
  • Started 13 years ago by SunnyKwok
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. We're working on our new company website at, mainly the blog at
    http://www.standardgraphics-ftp.net/standardmarketingWP/blog/

    I've made it using menuplus+ and custom sidebars to make it so that every page uses a unique sidebar for instance Internet Marketing section has its own sidebar widget as well as any pages under that section.

    The problem is that I cannot make it so that the blog retrieves different sidebar widgets other then the defaults Primary-Aside and Secondary-Aside. My main goal is to make the blog a full width layout, I've tried to change the template to Single Column or Full Width but that doesn't work. I've also tried something like

    function remove_postheader_posttitle($title) {
    if (!is_page('120')) {
    //Its a normal page
    } else {
    //120 is the blog page ID This is the blog.
    }
    }
    Which doesn't seem to recognize it is on the blog page. Ultimately I would like my blog to display the default h2.entry-title text and any other page to have that hidden. I think the best solution is if it recognizes the blog in functions.php and creates custom code to remove sidebars/set settings there, alas it does not at the moment.

    Posted 13 years ago #
  2. Amazing how fast I found the solution after asking for help. Turns out that there are functions is_home() and is_front_page() that you can use in your functions.php to seperate your blog page and front page respectively. Here is the final piece of code that made any page other then my blog show the Default post H2 title text.

    function remove_postheader_posttitle($title) {
    if (!is_home()) {
    return ('');
    } else {
    return ($title);
     }
    }
    add_filter('thematic_postheader_posttitle', 'remove_postheader_posttitle');
    Posted 13 years ago #
  3. Actually after doing that I noticed I would still like my blog page to be a full width layout and to use different sidebar widgets instead of the default primary-aside and secondary-aside. It doesn't seem to register if I use the custom sidebars plugin on this page.

    Posted 13 years ago #
  4. this will kill the sidebar on the blog page:

    function kill_sidebar() {
    if (is_home()) {
    return FALSE;
    } else {
    return TRUE;
    }
    }
    add_action('thematic_sidebar', 'kill_sidebar');
    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.