[Resolved] Help

  • Author
    Posts
  • #8981

    piotroq
    Participant

    Hello,

    I instal plugin Insert Headers and Footers and enabled. After my page is display error.
    http://serwer1461413.home.pl/autoinstalator/wordpress/
    Can I somehow recover the header.php? I do not have a backup

    Best regards

    #8984

    Andrew Misplon
    Keymaster

    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.

    #8985

    piotroq
    Participant

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

    Best regards

    #8987

    Andrew Misplon
    Keymaster

    Awesome 🙂

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

    #8988

    piotroq
    Participant

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

    Thank you very much.

    #8989

    Andrew Misplon
    Keymaster

    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() { ?>
    	<script>
    	</script>
    <?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