Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #377647

    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?

    #377649

    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?

    #377926

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.