[Resolved] SVG Social Media Icon in Menu

Home Forums Support [Resolved] SVG Social Media Icon in Menu

Home Forums Support SVG Social Media Icon in Menu

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1254495
    Suraj Katwal

    Let’s say I have an SVG Inline code and Base64 code, can I use those code to insert in the primary menu?
    Is it using CSS Class?
    I am not able to use it.

    Thank You

    #1254500
    Suraj Katwal

    View post on imgur.com

    View post on imgur.com

    Here is an update but couldn’t fix it.

    I don’t want to use any Icon fonts or font awesome so, I am trying SVG icon by myself.

    #1254983
    David
    Staff
    Customer Support

    Hi there,

    the Navigation Label filed will accept most HTML – so you can add your inline SVG directly to the code.

    If you want to add it as a background then i would target the menu items <a> element. And apply the background image to that.

    #1255189
    Suraj Katwal

    Hi David, Thank you for the easy fix, Can you please help me with CSS?

    View post on imgur.com


    I want to place a social Icon aligning center with respect to other menu and search Icon.

    #1255710
    Tom
    Lead Developer
    Lead Developer

    You can give that menu item a class, then do this:

    .my-icon-menu-item-class svg {
        position: relative;
        top: 5px;
    }
    #1255745
    Suraj Katwal

    Great!!! Thank You, David and Tom

    #1256239
    Suraj Katwal

    View post on imgur.com


    How to get 2 menus in the same row for mobile devices?

    #1256580
    Leo
    Staff
    Customer Support

    I currenly only see one icon.

    Can you add in the second one?

    #1257046
    Suraj Katwal

    Sure, please check

    #1257470
    David
    Staff
    Customer Support

    Try this CSS:

    #mobile-header.toggled .main-nav>ul {
        display: flex;
        flex-wrap: wrap;
    }
    
    #mobile-header.toggled .main-nav>ul li {
        flex: 1 0 100%;
    }
    
    #mobile-header.toggled .main-nav>ul li:nth-last-child(-n+3) {
        flex: 0 0 auto;
    }
    #1257779
    Suraj Katwal

    Thank you so much for everything.

    #1257856
    David
    Staff
    Customer Support

    You’re welcome

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.