Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1331899

    Hi –
    We’d like to remove the sidebar on the archive page for tags view. I’ve looked at this example: https://kriesi.at/support/topic/function-to-remove-archive-sidebar-only-for-custom-taxonomy/?login_error but I would need it removed for all tags and categories, not for specific tags & categories as shown in that example. An example of the URLs of an archive page is in the private content. Thanks for your help.
    j

    #1331976

    Hey J,

    Thanks for contacting us!

    Please go to Enfold theme options > Sidebar Settings and choose to display no sidebar in “Sidebar on Archive Pages” :)

    Best regards,
    Yigit

    #1331990

    Yes, helpful, but it does not affect the search sidebar. I’m not seeing how that can be removed. Thanks for such a quick response!

    #1332078

    Hi,

    Thank you for the update.

    For the search page, try to use this filter in the functions.php file.

    function avia_layout_filter_mod($layout, $post_id){
    
        if(is_search())
        {
            $layout['current'] = $layout["fullsize"];
            $layout['current']['main'] = "fullsize";
        }
        return $layout;
    }
    add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2);
    

    Best regards,
    Ismael

    #1332153

    Hi Ismael,
    I got a critical error on return of the search results. Here’s what I pasted exactly in the child theme’s function.php at the end (no trailing lines or spaces).

    // change search results layout to grid view like blog
    function avia_layout_filter_mod($layout, $post_id){
    
        if(is_search())
        {
            $layout['current'] = $layout["fullsize"];
            $layout['current']['main'] = "fullsize";
        }
        return $layout;
    }
    add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2);

    I removed it for now because the site is live.

    #1332278

    Hi,

    Thank you for the update.

    The single quotes in the code have been converted to their html entity code. Please make sure to copy the snippet directly from this forum, and not from your email. Let us know if that works.

    Best regards,
    Ismael

    #1332356
    This reply has been marked as private.
    #1332453

    Hi,
    Unfortunately the links to your screenshots require a login we don’t have, to add a screenshot please try using a open image hosting service and pasting the image URL in your post.
    If your above code post is what you actually added to your functions.php then the " is your error:
    2021-12-11_018.jpg

    Best regards,
    Mike

    #1332593

    Missed that!
    All set with quotes now and bingo it did the trick! Thanks so much team.
    j

    #1332597

    Hey J,

    Glad Ismael and Mike could help! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Enjoy the rest of your day!

    Regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Archive – Remove Sidebar’ is closed to new replies.