Add contact information to header section

  • Author
    Posts
  • #130722

    Hi there!

    I’m using Sundown Child theme of Bravada Plus.

    How can I add some custom HTML in between the branding/logo and the main nav menu? Namely I want to add an mailto: and an tel: link.

    I can’t seem to find the right spot, where to add anything besides a nav menu and a logo image.

    Grateful for any hints!

    Cheers
    chris

    #130820
    Zed
    Cryout Creations mastermind

    Hi,

    Bravada (and its child theme / personality) has built-in support for a social menu (which includes icons for mailto: and tel: links).
    In Bravada/Sundown the header socials location is part of the toggleable main menu.

    It is not easily possible to add any extra content to the header section using the built-in functionality. You could use the theme’s available hooks to add-in your own code, but you’d also need to write and add the necessary styling for the correct display, positioning and behaviour of the custom content.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #130846

    Hi!

    Thanks for your reply! In order to get more clear, I added the content in question to the bravada/header.php by hand. (Which will be overwritten with the next update!)

    https://hotel-villamontevino-potsdam.de/

    See at the top right border, right above the main nav menu, the red mailto: and tel: links.
    Now, how could I add this, without being overwritten with any update of the theme?

    If I added it via hook to the main nav, it would appear in the main nav (logically). Any ideas?

    Maybe, could I filter the output, look for the comment <!– #branding –> and add my content after that, before it gets outputted? Is there some mechanics like that available?

    Thanks and have a nice day!
    chris

    Website: hotel-villamontevino-potsdam.de

    #130859
    Zed
    Cryout Creations mastermind

    For that location you can hook into the theme’s cryout_branding_hook with your custom code, for example:

    function my_custom_header_content() {
        /* your code here */
    }
    add_action( 'cryout_branding_hook', 'my_custom_header_content', 5 );

    You can place this either in a child theme (if you use one) or a mini plugin.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #130872

    Amazing! That works like a charm! Thanks a lot!

Viewing 5 posts - 1 through 5 (of 5 total)

You need to log in to reply to this topic.