Hi,
how can I remove the Pages Widget in the sidebar of the search-result-page?
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
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…
Hi!
Please use this plugin – https://wordpress.org/plugins/widget-logic/ and use “!is_search()” conditional tag on your widget :)
Cheers!
Yigit
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.
Hi,
Please edit the widgets inside “Displayed everywhere” widget area. That is the widget area Search page is using :)
Best regards,
Yigit
Hi,
Displayed everywhere is complety empty.
Hi,
Can you provide to us some screenshot about this problem?
Best regards,
John Torvik