WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] New nav-menu system - need to add a Facebook icon to it (4 posts)

  1. cyars
    Member
    Posted 4 years ago #

    Can it be done? I used to just be able to add as another li item, but I can't find where to do that now? I want it to be on teh nav bar like:

    Thanks!

  2. cyars
    Member
    Posted 4 years ago #

    I figured it out myself :) I just created a class with a background image in the style sheet and called it in the menu system :)

  3. dangalo123
    Member
    Posted 4 years ago #

    How do you do this? How do you create a class and how do you call it in the menu system?

  4. cyars
    Member
    Posted 4 years ago #

    You open the stylesheet for your theme and type in something like:

    .facebook-icon {background: img('images/facebook.png');}

    Then in the menu system, add a new "Custom link" with the url pointing to the facebook (or whatever) page, and in the CSS Classes (optional) field, you type the name of your class, without the dot (so in this case would be facebook-icon. Works like a charm.

Topic Closed

This topic has been closed to new replies.

About this Topic