• Resolved anatoly14

    (@anatoly14)


    Can anyone tell me how I can add rel=”tag” to tags links? For some reason it’s not showing up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter anatoly14

    (@anatoly14)

    rel=”tag” showing up fine in the regular version, but not in amp.

    Thread Starter anatoly14

    (@anatoly14)

    Figured it out. For anyone who is curious:
    Open up plugin folder go to Templates > Design Manager > [DESIGN THAT YOU CHOSE FOR EXAMPLE DESIGN 2] > Elements > meta-taxonomy.php

    Find the following line:

    
    echo ('<span class="amp-tag-'.$tag->term_id.'"><a href="'.esc_url($tag_link).'" >'.esc_html($tag->name).'</a></span>');

    and change it to:
    echo ('<span class="amp-tag-'.$tag->term_id.'"><a href="'.esc_url($tag_link).'" rel="tag" >'.esc_html($tag->name).'</a></span>');

    • This reply was modified 5 years ago by anatoly14.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Rel=”tag” to Tags Links’ is closed to new replies.