Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jturet

    (@jturet)

    [class^=icon-]:before, [class*=" icon-"]:before {
     display: none;
    }

    this gets rid of the icons everywhere, but i want to ensure they stay on the other menus.

    Thread Starter jturet

    (@jturet)

    I have somewhat solved the problem with the following:

    @media screen and (max-width: 991px) {
    [class^=icon-]:before, [class*=" icon-"]:before {
    display:none;
    }
    }

    but there has to be a better solution.

    Plugin Author sevenspark

    (@sevenspark)

    Hi jturet,

    I’m not really sure why you would want to remove the item classes? Doing so would break the menu.

    I’m not sure how hiding the icons is related to stripping the classes, but all you’d need to hide the icons would be

    .shiftnav .shiftnav-icon{
    	display:none;
    }

    Best,

    Chris

    Thread Starter jturet

    (@jturet)

    Menu classes as in the default classes within the wordpress menu options. They are used in my theme for setting icons in menus. They are not needed in shift nav for setting icons as there is the built in icon selector.

    Plugin Author sevenspark

    (@sevenspark)

    Ah, that makes more sense. Best option would probably be to just use a separate menu for ShiftNav, or else write the CSS for the icons (the ones you’re trying to remove) to only target the main menu rather than ShiftNav. In general, it’s best to just target something specifically rather than apply to all and then try to remove it – but that may not be possible based on how the theme is coded.

    Best,

    Chris

    Thread Starter jturet

    (@jturet)

    I think I will just stick with my solution, my menus have tons of role-based conditionals and are quite large. Thank you for your responses.

    Plugin Author sevenspark

    (@sevenspark)

    You’re welcome

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Strip Menu Item classes in shiftnav?’ is closed to new replies.