How to specify custom post type CSS class
-
A regular post looks something like this:
<article id="post-509" class="post-509 post type-post status-publish format-standard hentry category-blog">
My event custom post type looks like this:
<li id="post-515" class="post-515 events type-events status-publish hentry">
Why is the event class plural (events), while the post class (post) is singular? I want to make the event class singular like the post class. Where/how can I change the class for custom post types?
Note: I am calling
register_post_type
in my function.php file.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to specify custom post type CSS class’ is closed to new replies.