Support » Theme: Virtue » How to show tag description

  • Indell

    (@indell)


    Hi,

    The tag description is not shown on the tag archive page. Did I miss out some setting?

    I tried adding <?php echo tag_description(); ?> to archive.php but then the category description is shown twice.

    What to do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Could you please try with below code ?

    <?php the_archive_description( '<div class="taxonomy-description">', '</div>' );?>

    Thread Starter Indell

    (@indell)

    @wsaiful it gives the same result: Tag description shows but the category description gets duplicated.

    Theme Author Ben Ritner – Kadence WP

    (@britner)

    Hey,
    The theme by default just doesn’t add an output for the tag description. I can add it to the feature request list for the next update.

    You can open templates/page-header.php and add this to replace line 13:

    } else if(is_tag()) {
    echo '<p class="subtitle">'.tag_description().'</p>';
    } ?>

    Kadence Themes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show tag description’ is closed to new replies.