Support » Fixing WordPress » A plugin that auto inserts code into the theme Header.php file?

  • Can you pls suggest a plugin that Auto inserts code into Header.php file?

    ‘Insert Headers and Footers’ inserts the code directly into wordpress options table. While I want to insert the code into child theme or Parent theme’s header.php file.

Viewing 1 replies (of 1 total)
  • @zopfan,

    The wp_head action would be your best bet, and you could create a quick plugin that does what you need, but it sounds like you’d like this feature without having to write any code.

    I did some quick searching and found https://wordpress.org/plugins/header-footer/. Not sure if this is the same plugin you are referencing (and if it is, my apologies) but it seems to hook into wp_head and wp_footer to insert the code you post inside the options panel.

    Note: I haven’t used this plugin. Always backup your site before installing something new.

    Hope this helps!
    Tom

Viewing 1 replies (of 1 total)
  • The topic ‘A plugin that auto inserts code into the theme Header.php file?’ is closed to new replies.