- This topic has 5 replies, 2 voices, and was last updated 6 years, 9 months ago by Andrew Misplon.
- AuthorPosts
- March 8, 2018 at 10:45 pm #8981
piotroqParticipantHello,
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 backupBest regards
March 8, 2018 at 10:50 pm #8984
Andrew MisplonKeymasterHi 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.
March 8, 2018 at 10:59 pm #8985
piotroqParticipantThank You Andrew. You Are The Best! 🙂 I repair it.
Best regards
March 8, 2018 at 11:03 pm #8987
Andrew MisplonKeymasterAwesome 🙂
What were you trying to add with Headers and Footers? Have you sorted that out?
March 8, 2018 at 11:10 pm #8988
piotroqParticipantI added manually to header.php from the server, script pop-up and push ad notification. Everything works.
Thank you very much.
March 8, 2018 at 11:17 pm #8989
Andrew MisplonKeymasterThe 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. - AuthorPosts
You must be logged in to reply to this topic.