As stated in my comment the best solution would be to create a child theme and edit the file generating the post meta. This would give you full control of what is being generated and you won’t have to worry about hiding unwanted content via CSS.
However, you could hide the text nodes and show the elements you want by doing something like this…
.post-meta {
visibility:collapse;
}
.published {
visibility:visible;
}
Note: The above hidden items will still keep their space in the DOM, so you could add float:left to .published to break the flow.
Related Posts:
- how to remove metadata from the posts of my blog?
- How to update custom fields using the wp_insert_post() function?
- Display all meta for a post?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Theme Customizer – Dynamic CSS PHP File
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- WordPress doesn’t include css
- Understanding child theme functions.php
- Want to create Child theme, but already edited Parent theme css files and some php files
- Style every second widget?
- wp nav menu: add attributes to menu items [duplicate]
- Put CSS inside a PHP file and include it the right way
- Missing sidebar parameter “fix” – before_content
- Plugin CSS not enqueing
- Randomly Assign an Image’s Alt Text Based on Data From Post
- How to use my style.css file outside of wordpress subdomain?
- Can I install/embed WordPress on a ‘single page’?
- How to design a table based on css values set from admin/dashboard
- Best way to schedule daily change in CSS parameter
- WordPress update_post_meta updating with empty meta_value field [closed]
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- proper way to add css using functions.php?
- Automatically set all tags to have a height of 0 if there is no content inside the tag [closed]
- RTL Stylesheet Confusion with WordPress
- Non-Closing PHP Query in WordPress Loop
- Correct way to enqueue page specific CSS file
- Wrapping a Sidebar within
- How to make container class in PHP
- PHP in CSS file?
- update_post_meta only updating on last loop of foreach
- Last class on last headline?
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- how to get serialized post meta
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to Change CSS Colors from Custom Plugin Settings Page
- Can I set up a hover animation in CSS depending on a PHP conditional?
- How to add post meta in while loop?
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Link to page with posts of specific type
- Order a WP_Query by meta value where the value is an array
- Add a custom class to the body tag using custom fields
- Conditionally load class in the comment section of the post page
- CSS images don’t show up with bloginfo
- Using theme options to change a border-radius value
- Displaying images outside the content
- How to check post meta isset or not empty during publish/save post?
- how to changes mobile menu toggle breakpoint in WordPress
- Applying css in functions.php
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- How to add and subtract user meta values after post meta update
- PHP function for horizontal Woocommerce thumbnails and badges
- Update Images after edit via php
- oceanwp+woo mobile cart sidebar text
- My top header looks different on single pages but is fine on the home page
- Using php code inside style tag
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- How to hide a div section when user is logged in, in single product woocommerce
- No more get_option(‘date_time’) in WordPress 5.5?
- Drop down question
- Can’t display anything through homepage text editor
- How to print all the inline styles in the WP_Styles instance together with their keys?
- The style.php file inside theme-engine folder has other content on FTP
- how to add functions to my function.php using a child theme?
- Replace header with large image on home page only, using Genesis child theme
- Site title not showing. Please help me
- WP post meta – for loop inside for loop
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Reverse Cross-Sells (WooCommerce)
- Hot to edit WooCOmmerce dashboard?
- Using Sprit-sheet on WordPress categories
- Post Meta statement?
- Add class for the_post_thumbnail_caption()
- Target a specific container to style on WordPress storefront theme
- How to include different html tags in the header for different pages?
- Font-Family does not looks like how it should be [closed]
- WordPress AJAX load post metadata in modal
- Custom Theme, Editor won’t wrap text (i.e. change width)
- Click to expand menu
- How to add style in functions.php depending on conditions?
- get_post_meta with variable
- Modify arguments for parent theme’s `wp_register_style` via child theme
- Hide button based on PHP result
- How to have Function of a plugin using global vars into a shortcode?
- Child theme not working properly
- WordPress – Image href for home menu nav not working
- WP_Nav Highlight Parent Issue
- Cant get theme to change footer color through theme customizer
- Changing 2011 theme header image based on user dropdown
- How to change a specific character in a theme option value – replace a space with a plus sign
- How to add together (get the sum) a field from all author’s posts
- How do I get Roboto Google Font to display normal font-style? [closed]
- Using PHP for background-image property [closed]
- New to wordpress. Need Help with templates [closed]
- Child-theme suddenly stopped working [closed]
- Parse error: syntax error, unexpected ‘}’ in
- Custom HTML/CSS Theme into WordPress – SEO considerations
- WooCommerce Checkout Cart [closed]
- why css file not link?how to create permalink?
- Using Featured Image as Hero Background in Word Press