- This topic has 5 replies, 2 voices, and was last updated 8 years, 2 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Photo Perfect Pro › Sidebar on Front Page Only
Tagged: sidebar
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.
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.
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)
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.
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
Oh good grief! Sometimes the simplest answer eludes us. Thanks!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |