Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #837932

    Hey,

    I want to add a menu link in the header like it is shown on this image
    Menu

    I also want the link to open up in a new window.

    What code shall I add?

    Thanks
    Charlotte
    http://www.hotelladdict.se/

    #839082

    Hey Charlotte,

    You can check the templates available on the Enfold > Header

    Best regards,
    John Torvik

    #839139

    Hi 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?
    Charlotte

    #839186

    Hi 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,
    Victoria

    #839190

    Hello 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..

    #839203

    Hi 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,
    Victoria

    #839209

    Here it comes, thanks!

    #839488

    Hi Charlotte,

    Should be working now.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #839824

    Great, thanks Victoria.
    What shall I add if I want the link to open up in a new window?

    #839908

    Hi 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,
    Victoria

    #840346

    Thanks :)

    #840545

    Hi 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

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Add menu link in header’ is closed to new replies.