[Resolved] Custom colored hook under the header/navigation bar

Home Forums Support [Resolved] Custom colored hook under the header/navigation bar

Home Forums Support Custom colored hook under the header/navigation bar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1253374
    Huseyin

    Hi team,

    I would like to have a hooker under the header/navigation bar, need help on creating a hook(i attached an example) Just need a solid colour background with the text where the clickable text will be a link

    “Are you searching for? (CLICKABLE TEXT) (CLICKABLE TEXT) (CLICKABLE TEXT) (CLICKABLE TEXT)

    Example:https://acrobat.adobe.com/au/en/acrobat/how-to/ocr-software-convert-pdf-to-text.html
    Screenshot:https://ibb.co/hyNqCfX

    #1253690
    Leo
    Staff
    Customer Support

    Hi there,

    Are you referring to this part?
    https://www.screencast.com/t/NhX427sE

    If so using the secondary navigation would be the best method:
    https://docs.generatepress.com/article/secondary-navigation-layout-overview/

    #1255859
    Huseyin

    Thanks, Leo for the reply

    Yes I’m referring to that part
    Wondering if this feature will work on selected pages? Because I only want the secondary navigation in selected pages

    #1256583
    Leo
    Staff
    Customer Support

    You can create a layout element to hide it on specific pages:
    https://docs.generatepress.com/article/layout-element-overview/#disable-element

    #1257104
    Huseyin

    Thanks but I want the secondary navigation under the hero header, how could I achieve this?

    #1257494
    David
    Staff
    Customer Support

    Hi there,

    add this PHP Snippet to your site:

    add_action( 'after_setup_theme','lh_move_secondary_navigation' );
    function lh_move_secondary_navigation() {
        remove_action( 'generate_after_header', 'generate_add_secondary_navigation_after_header', 7 );
        add_action( 'generate_after_header', 'generate_add_secondary_navigation_after_header', 15 );
    }
    #1257562
    Huseyin

    done, what should I name the snippet?
    Thanks

    #1257656
    David
    Staff
    Customer Support

    Its up to you 🙂

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