-
AuthorPosts
-
December 7, 2021 at 10:26 pm #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.
jDecember 8, 2021 at 1:25 pm #1331976Hey 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,
YigitDecember 8, 2021 at 3:15 pm #1331990Yes, helpful, but it does not affect the search sidebar. I’m not seeing how that can be removed. Thanks for such a quick response!
December 9, 2021 at 8:49 am #1332078Hi,
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,
IsmaelDecember 9, 2021 at 3:20 pm #1332153Hi 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.
December 10, 2021 at 11:39 am #1332278Hi,
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,
IsmaelDecember 10, 2021 at 4:21 pm #1332356This reply has been marked as private.December 12, 2021 at 1:22 am #1332453Hi,
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:
Best regards,
MikeDecember 13, 2021 at 3:52 pm #1332593Missed that!
All set with quotes now and bingo it did the trick! Thanks so much team.
jDecember 13, 2021 at 4:10 pm #1332597Hey 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 -
AuthorPosts
- The topic ‘Archive – Remove Sidebar’ is closed to new replies.