Home › Forums › Free Themes › Photo Perfect › Sidebar
- This topic has 7 replies, 2 voices, and was last updated 10 years ago by
wensolutions.
-
AuthorPosts
-
March 25, 2016 at 8:51 pm #4185
benoa
ParticipantHello,
Any possibility to have the sidebar everywhere BUT on the front page ?
Cheers,
Benoist
http://www.benoa.netMarch 25, 2016 at 9:30 pm #4186wensolutions
KeymasterSorry if I understood your question wrong.
If you do not want to have or remove sidebar from the front page but have it on the other pages and posts then you can do this from individual page and post editor.
First go to customizer, through Theme Options -> Layouts Options -> set it to No Sidebar.
Next, edit your page or post and you can find an option to choose the layout to assign a sidebar for it.
Hope this helps !!
March 25, 2016 at 9:42 pm #4187benoa
ParticipantYou understood my question correctly, but does this mean that I have to manually edit all my posts?
March 25, 2016 at 9:57 pm #4188wensolutions
KeymasterYes, since the global layout would effect the setting globally you need to set it manually for now, probable not for new posts and pages. This is programmed in order to provide the flexibility in layout.
March 26, 2016 at 12:29 am #4190benoa
ParticipantAny hint how to hack the code to force the setting for posts ? I cannot go through 1000 posts to fix this 🙁
March 26, 2016 at 9:08 am #4195wensolutions
KeymasterHi, try the following steps to achieve this hack.
Steps :
1. Make a Child Theme and activate it.
2. Copy the file basic.php (from path: inc/hook/basic.php) from your parent theme into your child theme with same folder structure.
3. Just below line no. 187 of basic.php file add the following snippet of code.if(is_home()){ $global_layout = 'no-sidebar'; }This should do the trick! . Now that your homepage will be fullwidth independent to global layout setting.
Hope this helps!
March 27, 2016 at 3:32 am #4214benoa
ParticipantHi,
Unfortunately, it did not help : the sidebar appears at the bottom instead.
Cheers,
BenoistMarch 27, 2016 at 6:45 am #4215wensolutions
Keymaster@benoa – Paste the following CSS code in your child theme’s style.css file:
.home #sidebar-primary{ display:none; }It should remove the sidebar appearing on the bottom.
Hope it helps to resolve your issue.
Regards!! -
AuthorPosts
- You must be logged in to reply to this topic.





