Support » Themes and Templates » Where do I put this code

Where do I put this code

  • 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; }

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Where do I put this code’ is closed to new replies.