-
AuthorPosts
-
September 2, 2014 at 6:13 pm #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:
Thank you so much in advance!
Jan
September 3, 2014 at 6:16 am #312643Hi 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!
IsmaelSeptember 3, 2014 at 1:22 pm #312816Hi 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 :)September 5, 2014 at 5:16 am #313790Hi 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 10 years, 2 months ago by Yigit.
September 11, 2014 at 5:25 pm #317522Hi iam trying to aply this but i am getting an ” Parse error: syntax error, unexpected $end in ” when saving. Any ideas?
September 11, 2014 at 5:30 pm #317530Hey!
There was a semicolon missing in Josue’s code. I have added it, please try it now.
Regards,
YigitSeptember 11, 2014 at 9:48 pm #317647Worked now but not the way i expected to. Y try a few things an in case ask again thanks
-
AuthorPosts
- The topic ‘Header Logo left, Main Menu below’ is closed to new replies.