• Resolved vadiko

    (@vadiko)


    Hello.
    please tell me
    I want to add an icon to one menu item. Added the css class categor_menuclass and through before I wanted to display the icon screenshot https://prnt.sc/tlrmp5

    but icons are also added to the submenu

    I marked in green what I need
    marked in red that I want to delete

    My css code

    .categor_menuclass a::before {
        content: "\f0c9";
        font-family: GeneratePress;
        text-align: left;
        display: inline-block;
        margin: 0 0.8em auto auto;
    }

    Help me please, I can’t find the correct code.
    Thank.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter vadiko

    (@vadiko)

    excuse me
    Didn’t translate the title Menu item

    Hi there,

    change:

    .categor_menuclass a::before {

    to

    .categor_menuclass > a::before {

    Thread Starter vadiko

    (@vadiko)

    Thank.
    Looks great now

    Can you ask another question?

    Is it possible to replace icons

        content: "\f0c9";
        font-family: GeneratePress;

    On SVG icons from the GeneratePress theme

    Thank.

    GP only provides the icons the theme uses.
    You can replace it with Icons from a different font.

    For your site is loading this font:

    font-family: rcl-awesome;

    So you could do this:

    .categor_menuclass a::before {
        content: "\f001";
        font-family: rcl-awesome;
        text-align: left;
        display: inline-block;
        margin: 0 0.8em auto auto;
    }

    Which would display this Icon:

    https://fontawesome.com/icons/music?style=solid

    Thread Starter vadiko

    (@vadiko)

    About the font
    font-family: rcl-awesome;
    I know

    I wanted to know
    If you do not connect other fonts
    I’m wondering if I can use SVG icons from the theme GeneratePress
    thank

    You can enable SVG Icons in Customizer > General.
    But they are only used within the Theme – not for use in the content.

    Thread Starter vadiko

    (@vadiko)

    Thank you I understood
    Thank you very much for me

    You’re welcome

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Пункт в меню’ is closed to new replies.