Title: Optimization
Last modified: April 29, 2017

---

# Optimization

 *  [maurizi2](https://wordpress.org/support/users/maurizi2/)
 * (@maurizi2)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/optimization-5/)
 * Hi, so I installed this. I made this work by copying all the CSS code from the
   plugin CSS to my child theme style.CSS. Doing so, despite outputting the relevant
   CSS calls exclusively on the pages where I want to use headroom using visual 
   composer CSS input per each specific page, the headroom effect applies to every
   page in the site. In fact, the code for each specific page like: .headroom–unpinned{
   display: none; } does not seem work. Even if I don’t add this, copying the whole
   plugin CSS to the theme applies the standard headroom effect everywhere.
 * In order to make it work on specific pages, I had to output the entire plugin
   CSS code on each specific page where I want the effect, still using visual composer
   CSS input page by page. In this way it works, but it doesn’t sound right to output
   all those many CSS lines on each page. It would be way more optimized to output
   the whole CSS on style.css and call the effect with minimal code in the pages
   where it is needed. Any idea what am I doing wrong? Thanks

The topic ‘Optimization’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/headroomjs_f4b63b.svg)
 * [Headroom.js](https://wordpress.org/plugins/headroomjs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/headroomjs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/headroomjs/)
 * [Active Topics](https://wordpress.org/support/plugin/headroomjs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/headroomjs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/headroomjs/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [maurizi2](https://wordpress.org/support/users/maurizi2/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/optimization-5/)
 * Status: not resolved