Theme CSS conflict with WordPress Smiley

Home Forums Flatisfy Skin Theme CSS conflict with WordPress Smiley

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Thomas 10 years, 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #307

    benyhirmansyah
    Participant

    Weird Smiley Position

    As you see, the smiley is not supposed to be looks like that. It seems that this CSS is the problem:

    .post_box img { margin bottom: 27px}

    So I ended up put this on my custom CSS:

    .wp-smiley {
    margin-bottom: 0 !important;
    }

    I think !important is not appropriate for internal CSS problem, but that’s only I can do to fix the problem instantly.

    #310

    Thomas
    Keymaster

    Try using this code instead:

    img.wp-smiley {
        margin-bottom: 0;
    }
    

    Should take care of the problem.

    #311

    benyhirmansyah
    Participant

    It’s same. I still have to apply !important to make it works. Perhaps a small fix in the next theme update, since wordpress smiley is one of wordpress core.

    #312

    Thomas
    Keymaster

    Whoops, I accidentally forgot to add the .post_box class in my previous solution.

    Give this code a try:

    .post_box img.wp-smiley {
        margin-bottom: 0;
    }
    

    This should do the trick.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.