![](https://wpdevkit.in/wp-content/themes/twentytwenty-child/imgs/post01.jpg)
How to insert code to header for a specific page only in wordpress?
![](https://wpdevkit.in/wp-content/themes/twentytwenty-child/li_st1.png)
![](https://wpdevkit.in/wp-content/themes/twentytwenty-child/li_st1.png)
![](https://wpdevkit.in/wp-content/themes/twentytwenty-child/li_st1.png)
![](https://wpdevkit.in/wp-content/themes/twentytwenty-child/imgs/kand5.png)
/** * adding scripts for specific page/post with page id=17 (wpdevkt.in) */ function schemas_for_specifice_page(){ global $post; if($post->post_type == 'page' && $post->ID == '17'){ echo 'Your code here'; } } add_action('wp_head','schemas_for_specifice_page');
![](https://wpdevkit.in/wp-content/themes/twentytwenty-child/author.jpg)
POST COMMENTS