WordPress.org

Ready to get started?Download WordPress

Forums

Where do I put this code (2 posts)

  1. bbg
    Member
    Posted 11 months ago #

    I have to add this code to my style.css file of my theme but not sure where in the file to add it. It removes the background of captions in the soliloquy slider.

    .soliloquy-caption-inside { background: transparent !important; filter: none !important; -ms-filter: none !important; }

  2. zvitez
    Member
    Posted 11 months ago #

    Hey, it's good practice to use child themes if you want to make changes to a theme to safe guard your changes from future upgrades most importantly.
    To answer your question if you place it in the end of the file you reduce the probability of having it overriden by another style (they are applied in order in the file) but it's better to keep some sort of order to make it easier to manage all the styles. As Andrew stated here in the forums earlier try to avoid using the !important declaration if you can. Try using more specific selectors instead.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.