The post_class() function can be used in the loop to automatically output some classes that you can target via CSS. Post types will have the class type-[post-type].
How that might integrate with Elementor is unfortunately something you will need to ask via Elementor’s support channels, as 3rd-party plugins and themes are off-topic here.
Related Posts:
- How to limit the number of posts that WP_Query gets?
- Should we trust the post globals?
- Random sort within an already sorted query
- how to get a different html for odd/even posts?
- How to know if get_posts() failed?
- Is this the best (and only) option to style CSS for a given post type?
- WordPress Number of Posts Not Changing With posts_per_page
- adding a custom css class to post
- Duplicate posts
- Looping through posts per category gives same posts for each category
- Trying to put an array into ‘post__in’ => array() query not working
- Query All users that has post
- Hide add new page button
- Search query – exact post title match
- Check if post exists
- Latest 5 posts (custom post type), each post different CSS
- Display page content AFTER a loop of posts
- Get posts by multiple ID’s (query)
- How to start with post number x?
- Exclude posts with empty post_content in wp_query
- Only display a certain number of posts, dependent on how many posts there are available in a query
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- Add a class to post title if a link ends with a certain extension
- Query how many items to show in shortcode
- Sticky post appears twice
- How Can I Query a Specific Page From a MultiPage paginated Post
- How to make classes for posts?
- filter RSS feed in URL
- WordPress custom Query for Posts in Category display posts multiple times
- Exclude the first ‘n’ number of posts of a tag from home page?
- How to add tags (custom taxonomy) to post class css?
- posts_per_page option limits the number of Gallery items
- How i can limit period of post publication?
- Is there a way to specify an extra class for a post or page with no title?
- Exclude current custom post on single post
- Dynamically switch template on click
- Get all custom post types excepted some…
- Get all comments of author’s posts
- Why Query is returning empty array?
- meta_value timestamp older than now
- Counter is skipping post when I still want it visible [closed]
- Every second post different class in blog view
- Do not show children of a category
- Make a vertical dynamic list of posts in alphabetically order and in columns [closed]
- post__in not working with pre_get_posts, but post__not_in does work
- How to make different custom post layouts?
- How to get all post_parents of a post?
- Query for first 3 posts to change the look and feel
- Query posts and filter at query time by value of custom meta
- Run query_posts if SESSION is empty?
- Very complex post query
- Delete post revisions only for a single post
- How to give classname to post if post has no content?
- My Custom Post Type Still Using index.php
- How to retrieve certain number of images from a wordpress post?
- add div after image in post [closed]
- How do I switch css class on post
- How to convert query sql to shortcode in wordpress?
- Some doubts about how the loop work (trying debugging it)
- Adjust the order for returned posts
- How to separate each individual blog post?
- Trim posts from WP-Query?
- Locally change the font family [closed]
- YARPP php question
- Right align a youtube video
- Trying to exclude custom posts based on date, while sorting by custom field
- How to allow arbitrary inline CSS in posts?
- how to add tags to post in the Loop?
- Merge get_comments & get_posts into a single query
- How to optimize posts query in wordpress
- Query to fetch custom taxonomy along with post title
- How to fetch courses in all languages in WordPress?
- Css and function issue on author archive page
- WordPress Recent Post with the badge “New” on the side of the title post
- How to search through “post title” and “tags” using WP_Query?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- filter posts based on menu_order
- Show 5 posts and than 3 posts offset with pagination
- I need some explanation on global $post [duplicate]
- How to delete all posts with dead image urls?
- Numbering author posts in posts query
- How to run select query of post with category and tags?
- Querying posts from current category, using a variable as array argument
- Query posts from newest category
- How can I alternate styling of images in a post? [closed]
- wp query custom orderby not custom field
- Custom Select Query pagination not working properly
- Query post by meta key of another table
- Sort / Filter Queries
- How to add a class to links inside posts text
- Ordering posts alphabetically by meta keys and title
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- Background image in posts
- Grab next post title in archive page
- Continuous listing from a custom field
- How to store post rating system data post independent?
- Get first comment link on the post itself
- How can i put image to come first than the title?
- How to limit post query to only return a total count of items with certain post statuses?
- posts blocks don’t show up correctly