- This topic has 1 reply, 2 voices, and was last updated 6 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Nature Bliss Pro › Hide word 'Category' in heading
Tagged: category heading
Hi. I have a nice lists of posts for the Testimonials page, but the heading says Category: Testimonials. How do I remove the word ‘Category’?
Thank you.
Hello @twistychristie,
If you wish to remove the titles “category:” in the archive, you will need to make customization via a child theme.
Child Theme Reference: https://codex.wordpress.org/Child_Themes
You can also automate the process with child theme generator plugin.
After creating and activating the child theme, paste the following code in your child theme’s functions.php file :
function nature_bliss_child_remove_archive_titles ($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
} elseif ( is_author() ) {
$title = '<span class="vcard">' . get_the_author() . '</span>' ;
}
return $title;
}
add_filter( 'get_the_archive_title', 'nature_bliss_child_remove_archive_titles' );
This will remove the “Category:” title from the archive listings.
Hope this Helps,
Best Regards !!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |