Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #520002

    Hi guys,

    Awesome theme as always! Just got into at bit of a problem with the main menu dividers. Is it possible to make separators or dividers like this on the main menu?

    Header with separators

    I have tried to style the small menu separators as well as the avian-bullets but I can’t figure out how to make this possible with css or png’s?

    Thanks!

    #520004

    Hey Rasmus!

    Can you please post the link to your website and a link to your start separators?

    Regards,
    Yigit

    #520006

    Wow what a quick reply!
    See link below. I’m using the standard separators right now and the avia-bullets are hidden with “display:none;”.

    Regards,
    R

    #520016

    Hi!

    Can you please post a link to your start image as well? :)

    Cheers!
    Yigit

    #520018

    I’m not sure I get what you mean but here is the link to the design image for the start page, including the header :)

    #520053

    Hey!

    I actually meant the link to your white star as an image but actually we can do without it :)
    Please add following code to Quick CSS in Enfold theme under General Styling tab

    .av-main-nav li > a:before {
        content: '★';
        margin-right: 15px;
    }
    .av-main-nav li > a > .avia-menu-text {
        border: none!important;
    }
    ul#avia-menu > li:nth-child(1) > a:before {
        display: none;
    }

    Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.

    Best regards,
    Yigit

    #520270

    WOW, Yigit! This is more then I could expect. Such a great support! It works perfect, thank you!

    #520272

    One more question :) is it possible to make the star none clickable? Right now it’s a part of the menu item.

    #520375

    Hi,

    Please try the following as well:

    .av-main-nav li > a:before {
    pointer-events:none !important;
    }

    Best regards,
    Rikard

    #520768

    Thanks Rikard but it didn’t work. The star still hovers together with the item after the star.

    • This reply was modified 9 years, 1 month ago by razhimself.
    #520860

    Hey!

    Do you mind creating a temporary admin login and posting it here privately?
    Custom CSS code needs to be adjusted

    Cheers!
    Yigit

    #520961

    Thank you Yigit. I really appreciate it!

    #520974

    Hi!

    I changed the code in Style.css file to following one

    .cus-star {
        position: absolute;
        top: 14px;
        left: -7px;
        color: white;
    }
    
    ul#avia-menu > li:nth-child(1) .cus-star {
        display: none;
    }
    
    .av-main-nav li > a > .avia-menu-text {
        border: none!important;
    }

    and then added following code to Functions.php file in Appearance > Editor

    function add_custom_star(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.av-main-nav > li > a').before('<span class="cus-star">★</span>');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_star');

    Please review your website now

    Best regards,
    Yigit

    #520995

    WOW, you guys rock! It works like a charm. Thank you so much!

    #520999

    Hejsan!

    You are welcome, glad we could help! Let us know if you have any other questions or issues :)

    Cheers!
    Yigit

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Change separators / dividers main menu’ is closed to new replies.