Title: Java script on only two pages
Last modified: July 8, 2023

---

# Java script on only two pages

 *  Resolved [hmgt](https://wordpress.org/support/users/hugomarianogimeneztoledo/)
 * (@hugomarianogimeneztoledo)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/java-script-on-only-two-pages/)
 * Hi. We would like to use the following script…
 *     ```wp-block-code
       <script type="application/javascript"> var UC_UI_SUPPRESS_CMP_DISPLAY=true;</script>
       ```
   
 * …insert on only two pages, not on all pages:
 * [https://bootcenter.com/impressum/](https://bootcenter.com/impressum/)
 * [https://bootcenter.com/datenschutzerklaerung/](https://bootcenter.com/datenschutzerklaerung/)
 * Is this possible? Thank you very much.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjava-script-on-only-two-pages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/java-script-on-only-two-pages/#post-16880805)
 * Hello [@hugomarianogimeneztoledo](https://wordpress.org/support/users/hugomarianogimeneztoledo/)
   and thank you for choosing Head & Footer Code for your project!
 * You can achieve what you need by following steps below:
    1. Go to **Tools** > **Head & Footer Code** ([settings page screenshot](https://ps.w.org/head-footer-code/assets/screenshot-2.png?rev=2882473))
    2. Scroll down to the bottom of the page until you reach the** **section **Article
       specific settings** > tick/enable **Pages (page)** checkbox for **Post Types**
       > **Save Changes**
    3. Edit each of your listed pages where you wish to add your custom code and reach
       the meta box **Head & Footer Code** at the bottom of the edit screen ([screenshot of the meta box on the page edit screen](https://ps.w.org/head-footer-code/assets/screenshot-3.png?rev=2882473))
    4. Make sure you have chosen option **Append to the site-wide code** from the **
       Behavior** dropdown.
    5. Please enter your code to the preferred location (regarding provided code I 
       would say that the appropriate place is **Head Code**)
    6. Then **Update** page changes.
 * Please let me know if you have any further questions.
 * Kind regards,
   Aleksandar
 *  Thread Starter [hmgt](https://wordpress.org/support/users/hugomarianogimeneztoledo/)
 * (@hugomarianogimeneztoledo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/java-script-on-only-two-pages/#post-17266216)
 * Hello Aleksandar, great feedback. It works! Thank you and best regards, Hugo

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

The topic ‘Java script on only two pages’ is closed to new replies.

 * ![](https://ps.w.org/head-footer-code/assets/icon.svg?rev=3299702)
 * [Head & Footer Code](https://wordpress.org/plugins/head-footer-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/head-footer-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/head-footer-code/)
 * [Active Topics](https://wordpress.org/support/plugin/head-footer-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/head-footer-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/head-footer-code/reviews/)

## Tags

 * [java](https://wordpress.org/support/topic-tag/java/)
 * [only](https://wordpress.org/support/topic-tag/only/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * 2 replies
 * 2 participants
 * Last reply from: [hmgt](https://wordpress.org/support/users/hugomarianogimeneztoledo/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/java-script-on-only-two-pages/#post-17266216)
 * Status: resolved