H2 for posts tags

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved
Viewing 6 reply threads
  • Author
    Posts
    • #17566

      marcorroma
      Member

      Hello,
      Is it possible, using the functions.php file in the child theme, to add a code to the beginning and end of a post’s tags?
      Want to use H2 for post tags.

      I tried to edit the template-tags file, both child and not, but I can’t change anything …. Very strange.
      Thanks

    • #17603

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17616

      marcorroma
      Member

      I modified line 540 but nothing happens.
      This is my line 540:

      echo '<span class="tags-links meta-info">' . ( $tag_title ? wp_sprintf('<strong>%s</strong> ', $tag_title ) : '<h2>' ) . $tags_list . '</span></h2>'; // WPCS: XSS OK

    • #17634

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17650

      marcorroma
      Member

      I have modified but no change in the page code (cache disabled).

    • #17674

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17684

      marcorroma
      Member

      Good job. Thanks

Viewing 6 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.