The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. May I know what's the "CSS Class" here?

    May I know what's the "CSS Class" here?

    Web Design
    3 3 196
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • esiow2013
      esiow2013 last edited by

      ul.nav a#homelink { text-indent: -9999px; background: url('http://www.elegantthemes.com/preview/MyProduct/wp-content/themes/MyProduct/images/home-icon.png') no-repeat center 6px; padding: 0px; }

      ul.nav a#homelink span { display: block; padding: 5px 9px 8px 5px; width: 16px; }

      I'm having problems in adding back the "house" icon instead of a "Home" text in my menu. I don't what "CSS class" should I use to be added in the Home menu button (Appearance>Menu).

      I'm currently using a "MyProducts" Wordpress theme by ElegantThemes.

      Thanks in advance!

      1 Reply Last reply Reply Quote 1
      • Jonathan1979
        Jonathan1979 last edited by

        If you post a link to your url I will give you the code you need.  If you don't want to post it, just PM it.

        1 Reply Last reply Reply Quote 0
        • browneco
          browneco last edited by

          In css there are classes and id's. Classes have a period, so it would look something like this in your css file -

          .nav { }

          ID's have a # sign so it would look like this -

          #homelink { }

          You can also string these different elements together to target a specific element, but your question the code within your html file should look something like the code below. That id will trigger the css element have listed. Replace 'www.link-to-your-page.com' with your link.

          Your Link Name

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • I'm doing a crawl analysis for a website and finding all these duplicate URLs with "null" being added to them and have no clue what could be causing this.
            seanginnaw
            seanginnaw
            0
            2
            27

          • What's the world's best hosting?
            Cannetastic
            Cannetastic
            0
            5
            178

          • We're considering making notable changes to our website's navigation. Other than 301 redirects from old pages to new, what do I need to consider with this type of move or update?
            CleverPhD
            CleverPhD
            0
            2
            133

          • Google Translate with "no-follow" just for users' use, no ranking
            gfiorelli1
            gfiorelli1
            0
            3
            315

          • Does it do harm if you add a rel="canonical" tag on a page that doesn't need it?
            MattAntonino
            MattAntonino
            0
            5
            294

          • Too Many On Page Links, rel="nofollow" and rel="external"
            Dr-Pete
            Dr-Pete
            0
            8
            2.0k

          • Will changing our URL's to MVC friendly URL's have a positive or negative affect on our rankings and link juice?
            SanketPatel
            SanketPatel
            0
            2
            308

          • Would the mobile-redirect "Panda" shield "Old Possum" work in reverse?
            0
            1
            588

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy