[Resolved] How to hide author info when view source of pages?

Home Forums Support [Resolved] How to hide author info when view source of pages?

Home Forums Support How to hide author info when view source of pages?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #96168
    William Kao

    Hi there,
    When I view source I could see my author info in all pages.

    example
    <a class="url fn n" href="http://aaax.com/author/xxx/" title="View all posts by xxx" rel="author" itemprop="url"><span class="author-name" itemprop="name">xxx</span></a>

    How can I remove this from my pages, thanks a lot.

    #96250
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This function should do that for you: https://gist.github.com/generatepress/e1271b65688e8072a753

    You can either add it into your child theme’s functions.php file, or you can use a plugin like this: https://wordpress.org/plugins/code-snippets/

    Let me know how it works out 🙂

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