ThemeShaper Forums » Thematic


Customize homepage, disable sidebar

(3 posts)
  • Started 11 years ago by knks
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. knks

    Hi all,
    I'm trying to customize my homepage. What would I have to edit to insert a div on top of the homepage, like this:

    [ div ] <- something in a div with 100% width
    [p] [s] <- left:post right:sidebar
    [p] [s]

    Also, would it be possible to disable the sidebar only on the frontpage, to create somthing like this?

    [ div ] <- something in a div with 100% width
    [p] [p] <- left:post right:post
    [p] [p]

    Posted 11 years ago #
  2. knks

    I found a way to disable sidebar on the frontpage, in another thread in this forum:

    function remove_sidebar() {
    if (is_home()) {
    return FALSE;
    } else {
    return TRUE;
    add_filter('thematic_sidebar', 'remove_sidebar');

    Posted 11 years ago #
  3. why not add that 100% div to the thematic_belowheader hook? that will make it the same width as the wrapper div... which by default is 100% of the screen.

    here is a super helpful hooks diagram:

    function add_div(){
    if (is_home()) { ?>
    <div>New div goes here</div>
    <?php }
    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.