Title: Page-Specific Preloader
Last modified: January 22, 2021

---

# Page-Specific Preloader

 *  Resolved [brendonmconnett](https://wordpress.org/support/users/brendonmconnett/)
 * (@brendonmconnett)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/page-specific-preloader/)
 * Hello,
 * I downloaded this plugin a while ago and like how it works and how easy it is
   to use. In the past, I have only used it for loading the home page, but now I
   have optimized my site in a way that it isn’t needed for the home page anymore.
 * I am wanting to only display the preloader when the user opens a specific page
   on the site. In short, I only want the preloader to display when the user opens
   up the portfolio page (because of the images loading in).
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [piotr2018wp](https://wordpress.org/support/users/piotr2018wp/)
 * (@piotr2018wp)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/page-specific-preloader/#post-14207506)
 * I’ve found some solution to this problem. Just enable preloader on all pages,
   hide it on all of them and show only on specific.
 * In CSS insert the following
 *     ```
       .page .smart-page-loader, 
       .single .smart-page-loader {
         display: none; 
       }
   
       .home .smart-page-loader, 
       .page.page-id-417 .smart-page-loader, 
       .single.postid-83 .smart-page-loader { 
         display: block; 
       }
       ```
   
 * This code will show preloader only on home page, page with id = 417 and post 
   id = 83 (eg example.com/?p=417 and example.com/?p=83).
    -  This reply was modified 5 years, 2 months ago by [piotr2018wp](https://wordpress.org/support/users/piotr2018wp/).
 *  Thread Starter [brendonmconnett](https://wordpress.org/support/users/brendonmconnett/)
 * (@brendonmconnett)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/page-specific-preloader/#post-14207584)
 * [@piotr2018wp](https://wordpress.org/support/users/piotr2018wp/)
 * Great reply! I’ll definitely try that. Seems pretty obvious after you said it,
   so I feel a bit silly, haha!
 * Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Page-Specific Preloader’ is closed to new replies.

 * ![](https://ps.w.org/wp-smart-preloader/assets/icon-256x256.jpg?rev=1312662)
 * [WP Smart Preloader](https://wordpress.org/plugins/wp-smart-preloader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-smart-preloader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smart-preloader/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smart-preloader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smart-preloader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smart-preloader/reviews/)

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)

 * 2 replies
 * 2 participants
 * Last reply from: [brendonmconnett](https://wordpress.org/support/users/brendonmconnett/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/page-specific-preloader/#post-14207584)
 * Status: resolved