-
AuthorPosts
-
February 13, 2024 at 11:35 am #1434166
Hi,
I use the transparent header for blog page. Everything looks fine also with sidebar. But when i click on the blog news full, the news opens but the header is below the menu. I have tried to add the short code in functions.php but this also not work.Any ideas?
February 14, 2024 at 5:07 am #1434242Hey Sebastian,
Thank you for the inquiry.
We adjusted the hook in the functions.php file and created a small script ( https://pastebin.com/VCTVksmD ).
Best regards,
Ismael
February 14, 2024 at 5:12 am #1434247Hey Sebastian,
Thank you for the inquiry.
We replied here: https://kriesi.at/support/topic/bootstrap-from-plugin-kills-sub-page/#post-1434246
Best regards,
IsmaelFebruary 22, 2024 at 9:00 am #1435100Hi Ismael… it is a horror with the individual pages :)
I have the same issue with the header on search result pages, what would be the code for this page?February 22, 2024 at 7:17 pm #1435146but: do not forget on avf_header_setting_filter_mod to add the class to header!
(preserve the a space on the first class that is added)$header['header_class'] .= " av_header_transparency";
and conditional for search is :
is_search( )
add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1); function avf_header_setting_filter_mod($header){ if ( is_archive() || is_singular('post') || is_search() ) { $header['header_transparency'] = 'header_transparency'; $header['header_class'] .= " av_header_transparency"; } return $header; }
February 22, 2024 at 9:55 pm #1435156Top ..thats what i didn’t know what the page id it is… i added ” || is_search() ” and it works fine.
Just one thing .. where does the sidebar comes from? There is no widget with this content … can this be deactivated?
Sure i can do it by css but can i do it also in template?- This reply was modified 10 months ago by xeovision.
February 23, 2024 at 10:31 am #1435176Hey!
You can add this filter to disable the sidebar on search pages.
function avia_change_sidebar_layout($layout, $post_id) { if ( is_search() ) { $layout['current'] = $layout['fullsize']; $layout['current']['main'] = 'fullsize'; } return $layout; } add_filter('avia_layout_filter', 'avia_change_sidebar_layout', 10, 2);
Regards,
IsmaelFebruary 23, 2024 at 10:49 am #1435183Top .. thank you.
February 23, 2024 at 12:25 pm #1435192Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Blog: Add header (transparent) to Archive page’ is closed to new replies.