Home Forums Free Themes Photo Perfect Sidebar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4185
    benoa
    Participant

    Hello,

    Any possibility to have the sidebar everywhere BUT on the front page ?

    Cheers,
    Benoist
    http://www.benoa.net

    #4186
    wensolutions
    Keymaster

    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 !!

    #4187
    benoa
    Participant

    You understood my question correctly, but does this mean that I have to manually edit all my posts?

    #4188
    wensolutions
    Keymaster

    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.

    #4190
    benoa
    Participant

    Any hint how to hack the code to force the setting for posts ? I cannot go through 1000 posts to fix this 🙁

    #4195
    wensolutions
    Keymaster

    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!

    #4214
    benoa
    Participant

    Hi,

    Unfortunately, it did not help : the sidebar appears at the bottom instead.

    Cheers,
    Benoist

    #4215
    wensolutions
    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!!

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