Remove .even
& .odd
class styles from style.css
and use CSS psudo classes.
.comment:nth-child(2n) {
your styles for even
}
.comment:nth-child(2n+1) {
your styles for odd
}
Related Posts:
- Add a preview to a WordPress Control Panel
- How to Handle CSS for Multiple Header header.php Files?
- Broken theme, template is missing
- How to create a WP theme that use BootStrap? [closed]
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- Is there a Function so that the author of the comment can delete his own comment?
- How to add custom css file in theme?
- How important is it to enqueue a theme’s stylesheet?
- CSS not updating in browser when I change it
- What’s the difference between home.php and index.php?
- Enqueue Stylesheets After Theme’s “rtl.css”
- How to move page templates to custom folder?
- Are the WordPress Core CSS styles really all nessesary?
- Any alternate TinyMCE4 themes / subthemes?
- Why I can’t add a CSS style in this WordPress theme?
- Is it possible to manipulate the list of page templates?
- Can’t get staging site to display same way as live site. Completely stumped
- How to make a theme with more than one CSS file?
- How to edit an existing WordPress theme? [closed]
- Why is styling comments so complex?
- How to Auto Approve Comments on a Specific Page?
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- comment_form() generates the wrong action url
- Customize comment list markup
- CSS in child theme not overriding the parent theme [closed]
- Returning Variables back into a template
- How to add (css) classes to only one wp_nav_menu()?
- comments_template not working correcly in custom template files
- How to override BuddyPress 3.0 bp-nouveau theme files?
- Adding dashicon fonts to the admin of pre 3.8 installs
- Custom CSS In Uploads Folder
- Remove “a href” from wp_list_comments()
- Modify the Additional CSS section (adding a disclaimer)
- New template, where to place CSS?
- How to determine which custom header image is being shown
- Custom CSS without css.php file
- How to get comment meta values by post ID
- Media Uploader in custom path
- Comment entry screen shows even though “Allow Comments” is unchecked
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- create-guten-block in wordpress theme?
- Override template file i subfolders
- Theme Loading Into Dashboard
- Jetpack Comments with fall-back
- Do i need to keep all the default WP templates files in a theme?
- Using PIE CSS in WordPress. “localizing” styles
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- Which html elements should be styled in wordpress theme
- How to override checkbox styles if these inputs have a unique id [closed]
- Why doesn’t my css work when I check my theme on mobile devices? [closed]
- WordPress Unite Theme: Footer isn’t sticking [closed]
- How to disable wordpress from overload my stylesheet styles with customizer styles
- Trackbacks not displaying
- How can I add custom text styles to the visual text editor?
- Nested comments in WordPress theme
- Combining CSS files into a single cached one
- How to change footer or for different kinds of users in wordpress?
- How do I remove inline style in featured image markup?
- different way to achive stylesheet_url
- How do I use a color from theme options?
- Template for landing pages
- Comment status shows ‘closed’ in db, but it shows ‘open’ when i echo it
- Why is my CSS not loading?
- Ideal inline dynamic CSS injection
- JQuery undefined and Stylesheet loads in bottom along with js files
- How do I use wp_nav_menu?
- How can I wrap all blog posts image with
- White screen when attaching css to function.php
- Assign custom classes to the divs inside the loop
- How to enable Disqus comments in a WordPress theme I’m creating from scratch? [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Create theme for mobile phones and tablets only?
- Tiny MCE custom styles, and preview in the backend
- .current_page_ancestor broken in Twenty Eleven
- WordPress Animation Adjustments
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- How to Modify WP_Includes/blocks/latest_posts.php
- How do I change the color of individual page titles in WordPress?
- How to implement pagination in category.php template
- Find the source file causing a Mixed Content warning
- How to reduce the vertical space above and below a ul list uniformly with one command?
- Ajax Comment Upvotes – Votes don’t always register
- Are paginated comments required for publishing Themes?
- How can I fix my theme header for my CSS stylesheet?
- How to display only the first two elements from ten same elements
- Using wp_add_inline_style Inside a Template File
- Necessary css classes to be included in theme stylesheet
- Images use & location, on new wordpress theme
- Display content on Single page
- WordPress Customization API overwrite LESS variable
- Modify comments_popup_link output
- editor style css and page template with and without sidebar
- Problem with multiple menus in theme
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- Custom link color or stylesheets
- What is the advantage of using home.php over index.php for the front page
- Setting different CSS for all pages except home.php
- How to highlight current menu bar base on the URL?
- What is the point of using the front-page.php template? [closed]
- Align images to the left of the content