[Resolved] How to insert html comment before the tag

Home Forums Support [Resolved] How to insert html comment before the tag

Home Forums Support How to insert html comment before the tag

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1141827
    Javier

    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!

    #1141841
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1141890
    Javier

    Yes, it works for me. Thanks! I have downloaded a basic GP child template and added the modified header.php and it works πŸ™‚

    #1141902
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.