Archived topic
How to insert html comment before the tag
3 replies · Started by Javier on January 23, 2020
As you can see in the source html code of https://rankmath.com, I want to put an ascii art text before all the content.
Example:
<!-- /\
___ __ __ ___ __ __ ( )
/ _ \___ ____ / /__ / |/ /__ _/ /_/ / ( )
/ , _/ _ <code>/ _ \/ '_// /|_/ / _</code>/ __/ _ \ /|/\|\
/_/|_|\_,_/_//_/_/\_\/_/ /_/\_,_/\__/_//_/ /_||||_\
-->
<!doctype html>
...
Is posible with the GP Elements feature to do this? Or by placing a code in functions.php?
Thanks in advance!
Hi there,
I believe you have to create a child theme and copy/paste this file in the child theme folder:
https://github.com/tomusborne/generatepress/blob/master/header.php
Then add it to the top of the file.
Let me know if this helps :)
Yes, it works for me. Thanks! I have downloaded a basic GP child template and added the modified header.php and it works 🙂
No problem :)