WordPress.org

Forums

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

  1. robgon1971
    Member
    Posted 1 year 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 1 year 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 1 year ago #

    Solved.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

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

  5. theZedt
    Member
    Posted 1 year 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.