Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #508975

    Hi,

    I would like to add a 2px border to language switcher but cannot understand how to do it.
    Print screen to understand: http://prntscr.com/8k9xgu

    Thank you, Afonso

    #508982

    Hi atainha!

    Can you please post the link to your website?

    Best regards,
    Yigit

    #508986

    Hi,
    Under maintenance mode.
    User/pass on private content.
    Thanks

    #508994

    Hey!

    I added following code to bottom of Style.css file of your child theme

    .av-main-nav > li.menu-item-language > a > .avia-menu-text {
        border: 2px solid white;
        border-radius: 2px;
        padding: 10px;
    }

    and then added following code to bottom of functions.php file of your child theme

    function add_custom_attr(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery( ".av-main-nav > li.menu-item-language > a" ).wrapInner( "<span class='avia-menu-text'></span>" );
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_attr');

    Please review your website now

    Cheers!
    Yigit

    #509007

    Hi Ygit!

    Thank you – that’s it!

    Best, Afonso

    #509011

    Hey!

    You are welcome Afonso. Have a great weekend :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add border to language switcher (WPML)’ is closed to new replies.