[Resolved] Help

  • Author
  • #8981



    I instal plugin Insert Headers and Footers and enabled. After my page is display error.
    Can I somehow recover the header.php? I do not have a backup

    Best regards


    Andrew Misplon

    Hi piotroq

    If you haven’t edited any theme files other than the header then you can switch to any other theme, delete Ultra and reinstall it.

    Alternatively: https://themes.svn.wordpress.org/ultra/.

    All theme files are overwritten in the theme update process so it’s best to customise from a child theme.



    Thank You Andrew. You Are The Best! 🙂 I repair it.

    Best regards


    Andrew Misplon

    Awesome 🙂

    What were you trying to add with Headers and Footers? Have you sorted that out?



    I added manually to header.php from the server, script pop-up and push ad notification. Everything works.

    Thank you very much.


    Andrew Misplon

    The challenge with editing the header is that if you aren’t using a child theme and you update Ultra you’ll lose all your edits. Consider using Code Snippets plugin rather. Add a new snippet, opt to run the snippet on front end only and add a function like:

    function ultra_child_scripts() { ?>
    <?php }
    add_action( 'wp_head', 'ultra_child_scripts' );

    I haven’t tested that and you’d need to insert your script but you get the idea. You can write a function and hook into the wp_head action hook.

    Code Snippets

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Scroll to top