Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #558046

    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.

    #558786

    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

    • This reply was modified 8 years, 10 months ago by Josue.
    #559079

    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.

    #559086
    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

    #559239

    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Insert div tag within div#header_main’ is closed to new replies.