Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #318514

    Hi, Good morning!
    I am trying to create a widget to the header of the web.
    I need to put 3 lines of short text below the icons of social networks.
    How I do? , some help please!
    I’ve looked at other questions and I don’t look the answer.
    Thank you

    Screen example:
    http://www.marvinprimera.com/img/example.jpg

    • This topic was modified 10 years, 9 months ago by MarvinPrimera.
    #318624

    Hey Marvin!

    There is a filter for that, try adding this at the very end of your theme / child theme functions.php file:

    function put_stuff_before_main_content() {
    	echo "<div>stuff</div>";
    }
    
    add_action('ava_main_header', 'put_stuff_before_main_content');
    

    Cheers!
    Josue

    #320036

    Hi,
    Thanks for responding.
    I’ve already put the code in functions.php, and the text appears in the header.
    Is there any way to align the text to the buttons of social networks?

    #320037

    Hi!

    Can you post the link to your website please?

    Best regards,
    Yigit

    #320100

    Hi,
    http://www.marvinprimera.com/silvia/

    Regards and thanks!

    #320103

    Hey!

    Please change the code Josue posted to following one

    function put_stuff_before_main_content() {
    	echo "<div class='my-class'><div class='container'>stuff</div></div>";
    }
    
    add_action('ava_main_header', 'put_stuff_before_main_content');

    and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .my-class { float: right; }

    Best regards,
    Yigit

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