• Resolved Blake

    (@alexanderblake)


    suburbansitters.com – Just so we all know what we’re looking at.

    I put in a slider on the home page, and I want to remove the sidebar and stretch the page all the way across (I believe it’s 960px).

    When I open index.php I don’t find <?php get_sidebar(); ?> – I would simply remove that if it were the case. I have searched other sites to find solutions of adding code to tell it to remove the sidebar IF the page name is ‘home’ and that didn’t work either.

    Can anyone tell me how to remove the sidebar from the home page and stretch the content out? I tried a few tricks to my functions.php file, and got the “parse error: line 247” problem. I FTP’d the theme fresh again to get past that part. I’m still stuck.

    THEME: Sunny Blue Sky (free from wordpress.com)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Blake

    (@alexanderblake)

    Bump!

    Any help is greatly appreciated. I have taken care of a lot of other things I was missing, but this issue seems to be the only one left to fix.

    Please help!

    Blake

    Thread Starter Blake

    (@alexanderblake)

    I did some more digging, and I don’t have a “get_sidebar” or anything like it on ANY of my pages. I don’t know what to do here.

    It’s clearly in the css – here:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

    But there’s isn’t a call out on any of the other theme pages.

    I have no problem creating another template page that doesn’t have a sidebar, and the content container is a full 960px, but I don’t know how to do that if I can’t find the code to remove.

    Please help. I really want to get this fixed.

    Thank you.

    Thread Starter Blake

    (@alexanderblake)

    Okay, I found it.

    In my footer.php file I had sidebar call-outs.

    I removed <?php if ( !is_attachment() ) get_sidebar(); ?>
    and replaced it with:
    <?php if (is_front_page()) {
    } else {
    get_sidebar();
    }
    ?>

    That worked. Now I need to get the front_page content to stretch across. I’ll go back to the search function and start praying.

    <?php if (!is_front_page()) {
    get_sidebar();
    }
    ?>

    seems cleaner

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Sidebar w/o "get_sidebar" code!!’ is closed to new replies.