Category Prefix on categories and single posts

Posted in: Newspaper
Post count: 22

Hi,

Is there a way to create a category prefix to show up on single post trmplates before the H1 title? And also to be visible on the category pages as well as all td composer blocks throught the website. What i need is something you can see on this url/website for example: https://monochrome-watches.com/ the prefix (in brown) before the title of the post should be the name of the category and should be visible on all places where this post appear (category page, single post..). It should not be clickable but only to appear as a <span> tag before (not inside) the h1 tag. It should however dynamicaly populate based on the category that single post belongs to.

What i need is the info regarding which of the category/single post templates from newspaper theme should i use and edit to achieve this type of a category show-up. I looked up the sigle.php loop-single and category.php but couldnt fi d the place where i should implement something additionaly to achive this. Can you assist please? All of this, if achiveable, I would implement through the child theme folder so that the cha ges remains during the update process.

Thanks

Post count: 21065

Hello @vlalovic!

Unfortunately, we do not have any option for this in our theme.
A workaround here could be to modify the title element in Composer in the code and add a span with your prefix.

Thank you!

Post count: 22

How is this achievable? Through some of the composer php posts? And which one?

Thanks

Post count: 21065

Hello @vlalovic!

The file that you need to edit is wp-content/plugins/td-cloud-library/shortcodes/common/tdb_title.php.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.