Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #852276

    Hi,
    how can I remove the Pages Widget in the sidebar of the search-result-page?

    #852762

    Hey AbacoSoft,

    Open wp-content/themes/brightbox/search.php and find this line of code:

    get_sidebar();

    and replace it with:

    //get_sidebar();

    After it, add this following custom CSS code at Enfold Theme Options > General Styling > Quick CSS

    
    #template-search.content {
    width: 100%;
    padding: 0;
    }
    

    Best regards,
    John Torvik

    #853382

    OK, when I understand that correctly, I would remove the whole sidebar by that way. But I only want to remove the “Pages”-Part of the sidebar…

    #853420

    Hi!

    Please use this plugin – https://wordpress.org/plugins/widget-logic/ and use “!is_search()” conditional tag on your widget :)

    Cheers!
    Yigit

    #854295

    Hi Yigit,

    sounds good, but the search-result-page seems to be hardcoded. I can’t find anything in the widget-area about this page, so I cannot use a conditional tag.

    #854350

    Hi,

    Please edit the widgets inside “Displayed everywhere” widget area. That is the widget area Search page is using :)

    Best regards,
    Yigit

    #854372

    Hi,
    Displayed everywhere is complety empty.

    #854554

    Hi,

    Can you provide to us some screenshot about this problem?

    Best regards,
    John Torvik

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