-
AuthorPosts
-
August 12, 2017 at 3:58 pm #837932
Hey,
I want to add a menu link in the header like it is shown on this image
I also want the link to open up in a new window.
What code shall I add?
Thanks
Charlotte
http://www.hotelladdict.se/August 15, 2017 at 6:11 am #839082Hey Charlotte,
You can check the templates available on the Enfold > Header
Best regards,
John TorvikAugust 15, 2017 at 9:45 am #839139Hi John,
Thanks for your reply.
I am fully aware of the templates but there is no option for my request.
So I need help with a code that can put the menu link on the left hand side of the loge, like it is described on the image.What code shall I add?
CharlotteAugust 15, 2017 at 11:13 am #839186Hi Charlotte,
You have an alternate header there already, so I adjusted it via css to show. So you don’t need to edit any template, it just does not open in the new window.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css@media only screen and (min-width: 768px) and (max-width: 1100px) { #header_main_alternate { display: block; margin-top: -69px; float: left; margin-left: 0%; } #header_main_alternate #menu-item-search { display: none; } } @media only screen and (min-width: 1100px) { #header_main_alternate { margin-left: 1%; } #header_main_alternate #menu-item-search { display: none; } }
If you need further assistance please let us know.
Best regards,
VictoriaAugust 15, 2017 at 11:18 am #839190Hello Victoria,
Thanks for your reply.
It is not visible after I added it Quick css and I don’t have any custom.css file in the Editor..August 15, 2017 at 11:37 am #839203Hi Charlotte,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaAugust 15, 2017 at 11:41 am #839209Here it comes, thanks!
August 15, 2017 at 6:22 pm #839488Hi Charlotte,
Should be working now.
If you need further assistance please let us know.
Best regards,
VictoriaAugust 16, 2017 at 11:16 am #839824Great, thanks Victoria.
What shall I add if I want the link to open up in a new window?August 16, 2017 at 2:59 pm #839908Hi Charlotte,
Here is the code you can put in your funtions.php
add_action('wp_footer', 'ava_new_custom_script'); function ava_new_custom_script(){ ?> <script type="text/javascript"> (function($) { $(window).load(function() { jQuery("#menu-item-5470 a").attr("target", "_blank"); }); })(jQuery); </script> <?php }
If you need further assistance please let us know.
Best regards,
VictoriaAugust 17, 2017 at 11:57 am #840346Thanks :)
August 17, 2017 at 5:56 pm #840545Hi Charlotte!
You’re welcome! Our team is happy to help. We’re glad that Victoria was able to help you. We’ll close this topic now. For any other questions or issues, feel free to post them here on the forum and we will do our best to assist you.
Thank you for using Enfold.
Cheers!
Sarah -
AuthorPosts
- The topic ‘Add menu link in header’ is closed to new replies.