New Landing How can we help? Themeforest Theme Support Pinpoint Remove sidebar on search results page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Pinpoint
  • #26412
    dmathiasen
    Member
    Post count: 27

    Hello

    How to remove the sidebar on the search result page? Without removing it from other category etc. pages?

    #26841
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi,

    This is not possible without editing the theme files, you can only remove it from all archive pages.

    Theme file edits are lost when you update, but if you want to go that route, you need to edit index.php and add custom PHP conditionals that will not show the sidebar on search results pages.

    Regards,
    ————————————————————————————————————

    Cosmin – Support

    #36722
    JimRolighed
    Member
    Post count: 13

    Hi dmathiasen,

    I am not sure if you are still interested, however I removed the right sidebar from the search page, by removing the below snippet of code from the bottom of the search.php

    <?php if ($sidebar_config == “left-sidebar”) { ?>

    <aside class=”sidebar left-sidebar span4″>
    <?php dynamic_sidebar($left_sidebar); ?>
    </aside>

    <?php } else if ($sidebar_config == “right-sidebar”) { ?>

    <aside class=”sidebar right-sidebar span4″>
    <?php dynamic_sidebar($right_sidebar); ?>
    </aside>

    <?php } else if ($sidebar_config == “both-sidebars”) { ?>

    <aside class=”sidebar right-sidebar span3″>
    <?php dynamic_sidebar($right_sidebar); ?>
    </aside>

    <?php } ?>

    #36870
    dmathiasen
    Member
    Post count: 27

    Hey great Jim, Ill try that one time.

    🙂

    #37716
    Melanie – SUPPORT
    Member
    Post count: 11032

    Thanks Jim!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register