Tagged: category, child theme, single
Hi
I have created a child theme. “enfold-child” I want to create a new single.php for a specific category so I have copied single.php to my child theme and named it single-mycategory.php where mycategory is the name of my category. However, the posts in this category are still reading single.php form the main theme.
In addition to this I want to turn off social sharing on these posts. So I have copied the file. /includes/helper-social-media.php to my child theme folder and edited too. However, this file isn’t being read either.
Any ideas?
update to this. I also tried to add the file single-mycategory.php into the main enfold theme folder, with the same result.
I see there a single-portfolio.php which does work. Do I need to register it somewhere?
Hey!
Thank you for using Enfold.
Creating a new single.php will return the entries from a custom post type not a specific category. You need to add wp conditionals, is_category to be specific, on a the current single.php then create a new loop template inside the includes folder. Please give us a link to the actual category page. We can use css to remove the social sharing for that specific category.
Regards,
Ismael