Home Forums Pro Themes Photo Perfect Pro Sidebar on Front Page Only

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21715
    timned88
    Participant

    Is there a way to have the sidebars display on the front page only? I don’t want them on any other page or post other than the front/index page.

    http://www.themagicinpixels.com

    Thank you.

    #21718
    wensolutions
    Keymaster

    Hello,

    Please add the below given CSS to

    Dashboard -> Appearance -> Customize -> Theme Options -> Advanced Options

    body:not(.home) #sidebar-secondary {
        visibility: hidden;
    }
    body:not(.home) #sidebar-primary {
       visibility: hidden;
    }

    Hope it helps.
    Best regards.

    #21720
    timned88
    Participant

    That did most of what I wanted it to do. Now how can I have the main content panel be 100% with the sidebars removed? Right now the content panel is still the same width as if the sidebars were there. Thanks!

    (I didn’t want to “hide” them, I don’t want them there at all – EXCEPT for the home/front page)

    #21724
    timned88
    Participant

    If you look at this page…
    http://www.themagicinpixels.com/2016/09/walt-disneys-donald-duck/

    you will see what I mean. It’s the same width as if the sidebars were still there. I tried something like this:

    body:not(.home) #main {
       width: 150%;
    }

    and it made the panel wider but the images at the bottom stayed in their original place (squashed to the left instead of floating over to fill the panel) and the whole panel itself was off-center to the right a bit.

    #21734
    wensolutions
    Keymaster

    Hello,

    Since your request is leading a different way, we would like to give you a different approach to your issue.

    First of all, remove the CSS we previously gave you.

    Now go to Dashboard -> Appearance -> Customize -> Theme Options -> Layout Options and set the Global Layout option to No Sidebar.

    It will disable your sidebar on all pages including the home page, but not to worry now we are going to enable the sidebars on the home page.

    Finally, Go to Dashboard -> Pages and open your static front page in edit mode.
    On the bottom you will be able to see Theme Settings where you can see the Choose Layout option.
    Change the option to Three Columns ( Primary – Content – Secondary )

    Hope this helps.
    Best Regards

    #21735
    timned88
    Participant

    Oh good grief! Sometimes the simplest answer eludes us. Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.