- This topic has 7 replies, 2 voices, and was last updated 8 years, 7 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › Photo Perfect › Sidebar
Hello,
Any possibility to have the sidebar everywhere BUT on the front page ?
Cheers,
Benoist
http://www.benoa.net
Sorry 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 !!
You understood my question correctly, but does this mean that I have to manually edit all my posts?
Yes, 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.
Any hint how to hack the code to force the setting for posts ? I cannot go through 1000 posts to fix this 🙁
Hi, 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!
Hi,
Unfortunately, it did not help : the sidebar appears at the bottom instead.
Cheers,
Benoist
@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!!
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. |