Home › Forums › Pro Themes › Photo Perfect Pro › Sidebar on Front Page Only
Tagged: sidebar
- This topic has 5 replies, 2 voices, and was last updated 9 years ago by timned88. 
- 
		AuthorPosts
- 
		
			
				
October 25, 2016 at 12:16 am #21715timned88 ParticipantIs 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. October 25, 2016 at 12:44 am #21718wensolutions KeymasterHello, 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.October 25, 2016 at 1:40 am #21720timned88 ParticipantThat 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) October 25, 2016 at 1:53 am #21724timned88 ParticipantIf 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. October 25, 2016 at 4:56 am #21734wensolutions KeymasterHello, 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 RegardsOctober 25, 2016 at 5:18 am #21735timned88 ParticipantOh good grief! Sometimes the simplest answer eludes us. Thanks! 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
 
	    




