[Resolved] different images in the header for each page of the site

Home Forums Support [Resolved] different images in the header for each page of the site

Home Forums Support different images in the header for each page of the site

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1636533
    Factory Prime

    Hello
    I would like to have different images in the header for each page of the site, I tried to set them in elements the new header and I made a rule to see it in the page below but it is inserted under the menu and with the default header of the site

    Example:
    https://newyorkmurales.com/east-side/

    How can I do?

    Also if in the options I put: mobile header on the site header in mobile disappears, if I put off the header in mobile appears.
    !?!?

    #1636655
    David
    Staff
    Customer Support

    Hi there,

    the Header Element was designed for adding page heros that display below the site header/navigation. However, what we can do is:

    1. Use a Layout Element to Disable the Site Header.
    2. Add this PHP Snippet to move the Primary navigation and the Mobile Header below your Header Element:

    add_action( 'after_setup_theme','craig_move_navigation' );
    function craig_move_navigation() {
        remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
        add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 );
        remove_action( 'generate_after_header', 'generate_menu_plus_mobile_header', 5 );
        add_action( 'generate_after_header', 'generate_menu_plus_mobile_header', 15 );
    }

    This will replace your site header with your header element.

    #1636690
    Factory Prime

    Hi, David
    Thanks a lot!!
    Now it works but the breadcrumbs are now above the menu, I wanted them under the menu.
    How can I do?

    #1636694
    Factory Prime

    I for the bc had entered

    add_action (‘generate_after_header’, function () {
    if (function_exists (‘yoast_breadcrumb’)) {
    yoast_breadcrumb (‘

    <p id = “breadcrumbs”>’, ‘</p>

    ‘);
    }
    });

    #1636696
    Factory Prime

    Solved:

    add_action( ‘generate_after_navigation’, function() {
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb( ‘

    <p id=”breadcrumbs”>’,'</p>

    ‘ );
    }
    } );

    #1636698
    David
    Staff
    Customer Support

    Looks great ! Glad to be of help.

    #1636753
    Factory Prime

    Thanks a lot!!

    #1636811
    David
    Staff
    Customer Support

    You’re welcome – nice site 🙂

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