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
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
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
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.
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.