[Support request] font awesome in secondary menu

Home Forums Support [Support request] font awesome in secondary menu

Home Forums Support font awesome in secondary menu

  • This topic has 7 replies, 2 voices, and was last updated 6 years ago by Leo.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #552629
    Rafik

    Hello everybody

    when I writing the code in CSS Aditional

    i.fa.fa-twitter-square {
    	color: #00ace2; font-size:20px!important;
    	margin-right:500px;
    
    }

    no change in margin ???

    #552905
    Leo
    Staff
    Customer Support

    Hi there,

    Can you link me to the site in question?

    You can edit the original topic and use the private URL field.

    Let me know 🙂

    #553166
    Rafik

    I add you my website .. I need move twitter icon to right?

    #553239
    Leo
    Staff
    Customer Support

    Hmm I’m only seeing 3 flags in the secondary navigation and no Twitter icon.

    Let me know.

    #553492
    Rafik

    I’m sorry just for Arabic flag you can see this problem

    and when you put the mouse on twitter icon you can see how to try margin this icon but not move

    best regards

    #553876
    Leo
    Staff
    Customer Support

    Hmm remove the CSS you are using, add the menu-item-float-right class as suggested here:
    https://docs.generatepress.com/article/adding-icons-to-menu-items/#floating-the-icon-to-the-right

    Then add this CSS:

    body .main=navigation .sf-menu>li.menu-item-float-right {
        float: left!important;
    }
    #554537
    Rafik

    thank you for responding me

    After a lot of attempts, this code worked with me

    is this right or there is better?

    .secondary-navigation .main-nav ul li.menu-item-float-right {
        float: left!important;
    	 margin-left:1200px;
    }
    #554914
    Leo
    Staff
    Customer Support

    Looks good.

    Wrapping that with media query should be better:

    @media (min-width: 769px) {
        .secondary-navigation .main-nav ul li.menu-item-float-right {
            float: left!important;
    	margin-left:1200px;
        }
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.