Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Icon appearing twice and mirrored

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #149819
    papdronning
    Participant

    Can anyone help me figure out what in the css is making the shopping cart icon at the top right appear twice – once facing right and once facing left?

    http://marensblog.dk/blog/

    #149820
    Paulie_D
    Member

    You have two settings for it and they are both applying.

    .icon-shopping-cart {
    background-position: -360px -120px;
    }
    

    and

    [class^="icon-"], [class*=" icon-"] {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    vertical-align: text-top;
    background-image: url("../img/glyphicons-halflings.png");
    background-position: 14px 14px;
    background-repeat: no-repeat;
    
    #149821
    papdronning
    Participant

    Do I just remove one of them?

    #149822
    Paulie_D
    Member

    It’s odd, they should be independent but complementary but turning off certain properties does seem to fix it.

    There must be something else going on.

    I’m wondering if the HTML structure is right.

    #149823
    Paulie_D
    Member

    Aha….you have two icon set-ups.

    Bootstrap & Glyphicons
    and
    Font-Awesome

    Bootstrap is doing the black one while FontAwesome is doing this

    .icon-shopping-cart:before {
    content: "\f07a";  <---the blue one
        }
    

    You’ll just have to pick one or the other.

    #149824
    papdronning
    Participant

    How do I do that? (sorry …)

    #149827
    Paulie_D
    Member

    Well you’ll have to stop using one of them and remove that section from your CSS stylesheet(s).

    #149831
    papdronning
    Participant

    It was the Visual Composer plug-in that was using the bootstrap.css. Disabled that and everything looks sharp!

    Thanks :-)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.