• Resolved jamieplexus

    (@jamieplexus)


    I would like to be able to assign each post in the custom post type a class based on the categories associated with that post. Is this possible at the moment? Or is there some way I could associate the custom post block template with a file in child Theme so I could write the template used?

    Alternatively,is this something that could be added to the base template? I’m sure having class selectors based on the associated categories in the Custom Post Block would be useful to other developers.

    • This topic was modified 4 years, 6 months ago by jamieplexus.
Viewing 1 replies (of 1 total)
  • Plugin Support dimned

    (@dimned)

    Hi @jamieplexus,
    Thanks for your question. It is possible to override the following file in order to add custom classes including name, the id of taxonomy

    \wp-content\plugins\getwid\includes\templates\custom-post-type\post.php

    You will need to copy the file to the following destination to keep the changes after the plugin update.

    \wp-content\themes\your-active-theme\getwid\custom-post-type\post.php

    Let me know if it is helpful.

Viewing 1 replies (of 1 total)
  • The topic ‘Query/Feature request – Custom Post Block’ is closed to new replies.