Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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?

    https://pastebin.com/VD8xHyMW

    #1434242

    Hey 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

    #1434247

    Hey Sebastian,

    Thank you for the inquiry.

    We replied here: https://kriesi.at/support/topic/bootstrap-from-plugin-kills-sub-page/#post-1434246

    Best regards,
    Ismael

    #1435100

    Hi 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?

    #1435146

    but: 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;
    }
    #1435156

    Top ..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?

    screenshot-ihkm-org-2024-02-22-21-52-22

    • This reply was modified 9 months ago by xeovision.
    #1435176

    Hey!

    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,
    Ismael

    #1435183

    Top .. thank you.

    #1435192

    Hi,
    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Blog: Add header (transparent) to Archive page’ is closed to new replies.