• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Dashicons instead of text for navigation?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Dashicons instead of text for navigation?

This topic is: not resolved

Tagged: css, dashicons, menu, navigation

  • This topic has 4 replies, 3 voices, and was last updated 12 years, 4 months ago by quickquestion.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 8, 2014 at 2:19 pm #93960
    merlene
    Participant

    I would like to use Dashicons to replace the text in the header custom menu widget in a Genesis theme (specific theme is Centric but I'm sure whatever solution would work for others as well).

    When I use classes in css (and the menu button area) I do get the dashicons showing up but I still get the text label as well (if I don't put anything in the text label in the menu builder it just vanishes).

    I've moved the text with the text-indent: -9999px trick but any submenu items seem to fall off the edge of the page after that and i'm pretty stumped. I've done keyword searches in this forum and Google and have found several tutorials that have the dashicon+text in the menu but I just want to use the icons.

    I realize also that I can use individual images to get the result - I'm trying to do this specifically with dashicons and not image files. I'd link to the site but it's not live (running WAMP)

    March 11, 2014 at 1:18 am #94246
    Davinder Singh Kainth
    Member

    Check this - http://wpsites.net/web-design/add-icons-to-nav-menu-items-in-studiopress-themes/


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    March 11, 2014 at 9:32 am #94285
    merlene
    Participant

    Thanks Davinder, I can get the dashicons to work with text like in that example but I'm running into trouble getting rid of the text - ideally I just want the dashicons images (Home, Email, etc.) without the text/words beside them.

    March 15, 2014 at 9:16 pm #95085
    Davinder Singh Kainth
    Member

    Use text-indent: -9999px; in css code to hide text. http://css-tricks.com/almanac/properties/t/text-indent/


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    April 27, 2014 at 12:23 pm #102629
    quickquestion
    Member

    Hi Marlene,

    Did you solve this?

    I tried the text-indent trick, but it moves the dashicon too. (I think because dashicons count as fonts, not images).

    The trick seems to work if you use css classes to add an image icon - I didn't have any luck with dashicons though.

    Thanks,

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble