Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: A plugin that auto inserts code into the theme Header.php file?

Discussion in 'Misc WordPress Requests' started by Tom Morton, Oct 18, 2017.

  1. Tom Morton

    Guest

    Reply To: A plugin that auto inserts code into the theme Header.php file?, by Tom Morton

    @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

    Reply To: A plugin that auto inserts code into the theme Header.php file?
     
    #1

Share This Page

Web Hosting