WordPress.org

Forums

Tempera
[resolved] Breadcumbs add link to tag (5 posts)

  1. robgon1971
    Member
    Posted 2 years ago #

    Good morning,

    I want to show the tag name into the breadcumbs when i click on a tag in my tag widget. Anyone knows how to do it?

    Best regards.

  2. robgon1971
    Member
    Posted 2 years ago #

    Solved.

    In your theme-functions.php, find function tempera_breadcrumbs() and add:

    if (is_tag()) {
    $category = get_the_category();
    echo ''.$category[0]->cat_name.''.$separator.single_tag_title('', false);
    }

  3. robgon1971
    Member
    Posted 2 years ago #

    Solved.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Do not edit the theme itself. First create a child theme for your changes.

  5. theZedt.Cryout
    Member
    Posted 2 years ago #

    Thanks for pointing that out, robgon1971.
    This correction will be included in the next update.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.