-
AuthorPosts
-
July 16, 2014 at 3:13 pm #292097
Hey,
i’d like to put an image at the right of the navigation before “search”.
How can i do that ?Best, AB
July 16, 2014 at 5:49 pm #292151Hi anma!
Please add following code to Quick CSS in Enfold theme options under General Styling tab and change the image link to yours
.main_menu { background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/100px-No_image_available.svg.png); background-repeat: no-repeat; }If this is not who would like it to look, please post a screenshot
Best regards,
YigitJuly 17, 2014 at 9:22 am #292382Hi Yigit,
So i tried your code it works but i’d like to make it clickable and put it on the other side.
Here is a screen : http://i.imgur.com/OTK2GcT.png?1Thanks, AB
July 17, 2014 at 1:38 pm #292443Hi!
Please add following code to Functions.php file in Appearance > Editor
` add_action('ava_after_main_menu','logo_text'); function logo_text() { echo "<div class='menu-text'><a href='http://kriesi.at'><img src='linktoyourimage.jp' /></a></div>"; } `And you can change its styling using .menu-text selector in Quick CSS field
Regards,
YigitJuly 21, 2014 at 3:33 pm #293883July 21, 2014 at 3:38 pm #293887July 21, 2014 at 4:39 pm #293905July 21, 2014 at 5:21 pm #293920Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.menu-text { position: relative; top: -30px; height: 30px; }Best regards,
YigitJuly 21, 2014 at 5:53 pm #293933Hi,
thank you for your answer, it work properly but i still need a little bit of your help.
The image is not clickable, i don’t know why, any ideas ?Best,
ABJuly 21, 2014 at 6:01 pm #293940Hi!
Please add following code to Quick CSS as well
.menu-text { z-index: 999; }Best regards,
YigitJuly 22, 2014 at 9:54 am #294245Great thanks again Yigit !
Best,
ABJuly 22, 2014 at 1:44 pm #294320 -
AuthorPosts
- The topic ‘Add image to navigation’ is closed to new replies.

