Where do I put this code (2 posts)

  1. bbg
    Posted 3 years 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
    Posted 3 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.