-
AuthorPosts
-
June 23rd, 2022 at 15:41 #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
chrisJune 26th, 2022 at 23:06 #130820ZedCryout Creations mastermindHi,
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.June 27th, 2022 at 14:12 #130846Hi!
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!
chrisWebsite: hotel-villamontevino-potsdam.de
June 28th, 2022 at 17:46 #130859ZedCryout Creations mastermindFor 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.June 29th, 2022 at 12:54 #130872Amazing! That works like a charm! Thanks a lot!
-
AuthorPosts
The topic ‘Add contact information to header section’ is closed to new replies.