Hi Enlfod team,
I would like to know how I can insert a div tag within my div#header_main section where the logo is displayed on the top of my pages.
The goal is show a line of text, a PNG image or an embedded popup.
The design layout is a centered logo with a the header menu below (div#header_main_alternate).
Thanks in advance for your advice and have a great day,
Steph.
Hi Steph!
You can use the ava_main_header
hook for that:
function custom_func() {
?>
Content
<?php
}
add_action('ava_main_header', 'custom_func');
Place that in theme / child theme functions.php
Best regards,
Josue
Hi Josue!
I wish you all the best for 2016.
Thanks for your reply.
I can indeed use your PHP code to display some text or an image.
The issue I face is that the text or image is displayed above the logo area, as if it is adding a new div section on top of the page.
Is there a way to display text of an image on top of the logo area itself (within the frame of my logo image, not above)?
Thanks in advance for your advice and have a great day,
Steph.
function custom_func() {
?>
<div class="spezial">Content</div>
<?php
}
add_action('ava_main_header' , 'custom_func');
just play a little with the code from Josue
Hi Guenni007!
Thanks for replying so quickly.
I’ve tried to play a little with Josue’s code without success.
Using the div tag, absolute positioning and z-index, I can indeed achieve the result.
Thanks for your help.
Wish you all the best for the coming year!
Steph.