• Can you add custom taxonomy support to page titles as below:

    parts/page-title.php line 22:

    <?php elseif ( is_category() || is_tag() ): ?>

    to

    <?php elseif ( is_category() || is_tag() || is_tax() ): ?>

    functions/init-front.php line 493:

    } else if ( is_tax() ) {
        $title = sprintf('%1$s: <span>%2$s </span>',
            get_taxonomy(get_queried_object()->taxonomy)->labels->singular_name,
            single_term_title('', false)
        );
    }
    • This topic was modified 7 years, 5 months ago by onokazu.
    • This topic was modified 7 years, 5 months ago by onokazu.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can try using template overriding in a child theme to override page-title.php
    Add your code to the copy of page-title.php on your child theme.

    As for function hu_get_term_page_title, you can copy and paste it into your child theme’s functions.php and add in your codes, this will override the function hu_get_term_page_title in Hueman theme.

    Please note that for every theme update. you will need to check back with original codes in Hueman theme to see if there is any changes and update your child theme accordingly.

    Thank you

    Thread Starter onokazu

    (@onokazu)

    Thank you for your response. I know it is possible by child theme override, but as a plugin developer I can’t tell every user to do that by themselves. That is why the request and would be great if you can add that to the later version of the theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom taxonomy page title’ is closed to new replies.