WordPress.org

Ready to get started?Download WordPress

Forums

How to change out link in top menu to an image? (2 posts)

  1. skeeterz71
    Member
    Posted 7 months ago #

    Currently woocommerce added a cart link to the main top nav menu. I would like to replace that link with an image of a shopping cart. How do I do that?

    I've tried using this code but it doesn't work.

    li#menu-item-189 a {
      display: block;
      background-image:url('http://fetgraphics.com/wp-content/themes/childofx/images/shopping-c...);
      background-repeat: no-repeat;
      width: 35px;
      height: 32px;
      text-indent: -9000px;
    }
  2. skeeterz71
    Member
    Posted 7 months ago #

    Update: I got the cart to work. I was missing a closing curley brace in prior css.

    Anyhow, it assigned the cart to everything on the drop down menu too! Not sure what to do to prevent that. Just want the cart on the top level.
    http://fetgraphics.com/
    Thanks

Reply

You must log in to post.

About this Topic

Tags

No tags yet.