Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #312453

    Hi Team,

    two new quick css questions I couldn’t find in search:

    1) how can I set up a continous background colour for the main menu in the header version “logo left, menu below”? Now, it looks bad with advanced styling for menu links in the theme options: http://webigami.de/schmal/

    2) how can I insert this kind of text (phone number and email plus icons) and icons in the empty right area of this header version?

    For both, please see the screenshot: How it should look like

    Thank you so much in advance!

    Jan

    #312643

    Hi jansthh!

    Thank you for using Enfold.

    You can add this on Quick CSS or custom.css to apply a background on the menu container:

    div#header_main_alternate {
    background: #a4aba0;
    }

    Use this at the very bottom of functions.php to add extra elements on the header container:

    function add_stuff_to_header_func() {
    	?>
    	HTML_CONTENT_HERE OR ANYTHING YOU FANCY HERE
    	<?php
    }
    add_action('ava_main_header', 'add_stuff_to_header_func')

    Cheers!
    Ismael

    #312816

    Hi Ismael,

    thank you for your help. I now this is beyond the support for the theme, this is why I really appreciate it.

    One more question for the image in the header. I want to add this image but don’t know what I need to change besides the source:

    /*
    * Bild im Header rechts
    */

    function add_stuff_to_header_func() {
    ?>

    <?php
    }
    add_action(‘ava_main_header’, ‘add_stuff_to_header_func’)

    Can you please advise one more time?

    Thank you,
    Jan :)

    #313790

    Hi Jan!

    Try with this:

    function add_stuff_to_header_func() {
    	?>
    	<img src="http://webigami.de/schmal/wp-content/uploads/2014/09/Telefon+E-Mail.png">
    	<?php
    }
    add_action('ava_main_header', 'add_stuff_to_header_func');

    Regards,
    Josue

    • This reply was modified 9 years, 6 months ago by Yigit.
    #317522

    Hi iam trying to aply this but i am getting an ” Parse error: syntax error, unexpected $end in ” when saving. Any ideas?

    #317530

    Hey!

    There was a semicolon missing in Josue’s code. I have added it, please try it now.

    Regards,
    Yigit

    #317647

    Worked now but not the way i expected to. Y try a few things an in case ask again thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Header Logo left, Main Menu below’ is closed to new replies.