Title: code for only one page
Last modified: September 23, 2022

---

# code for only one page

 *  Resolved [lalanyc](https://wordpress.org/support/users/lalanyc/)
 * (@lalanyc)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/code-for-only-one-page/)
 * Hello, hope someone can help! Is there any way to add coding to the head tags
   for only one page – and not the entire site? Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/code-for-only-one-page/#post-16040977)
 * Hi [@lalanyc](https://wordpress.org/support/users/lalanyc/),
 * You can use the Smart Conditional Logic section to add rules so that the snippet
   only targets one page.
 * Depending on the type of page you might need different rules. For example, if
   you want to target the homepage you can just use “Type of Page Is Homepage”.
 * You can use the “Page URL” or a combination of other rules for other pages.

Viewing 1 replies (of 1 total)

The topic ‘code for only one page’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [head-tags](https://wordpress.org/support/topic-tag/head-tags/)
 * [home page](https://wordpress.org/support/topic-tag/home-page/)
 * [index](https://wordpress.org/support/topic-tag/index/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/code-for-only-one-page/#post-16040977)
 * Status: resolved