Site logo

[Support request] Banner below hero image and above breadcrumbs

Home Forums Support [Support request] Banner below hero image and above breadcrumbs

Home Forums Support Banner below hero image and above breadcrumbs

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2221663
    Alan

    I created a hook so that I can place an alert below the hero image using the generate_after_header hook, but the breadcrumbs are between the hero image and alert. Is there a way for a non-programmer to move the Yoast breadcrumbs below the alert and have it flush with the hero image (no space) on certain pages. The alert is not applicable to all pages.

    Please let me know.

    Thanks,

    #2221669
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the page in question?

    You can use the private information field:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #2221688
    Alan

    This was a private page that I use for testing, but I published it for your review.

    #2221709
    Ying
    Staff
    Customer Support

    Hi Alan,

    How did you add the breadcrumbs? Are you using a hook elementgenerate_after_header as well?

    If so, try set the element’s priority to 12.

    Go to the element contains the banner, set its priority to 11.

    The smaller the priority value is, the higher it will appear in front end.

    #2221724
    Alan

    I am doing it through search appearance in Yoast.

    #2221743
    Ying
    Staff
    Customer Support

    I see, then can you edit the element contains the banner, set its priority to 11 to test?

    #2221753
    Alan

    Very, very interesting…I changed the priority anywhere from 1-11 and when I set it to 9, it worked as intended. Is this something that will stay flush with the header or is it subject to change? I was shooting for something like the attached (they don’t use breadcrumbs).

    By the way, thanks for your help.

    #2221757
    Ying
    Staff
    Customer Support

    Sometimes we need to play around with value, it depends on what priority the breadcrumb using!
    So 9 it is 🙂

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