11

How to Hide Hours and Minutes from a Countdown Block

Powered by WPCodeBox

This code snippet allows you to easily hide hours and minutes from your countdown block, displaying only the days remaining until an event. Perfect for clean and simple event countdowns.


/**
 * Author: MyListing Club
 * Author URI: https://mylisting.club
 */

ul.countdown-list li:nth-child(2) {
    display: none;
}
ul.countdown-list li:last-child {
    display: none;
}
.countdown-box .countdown-list li {
    margin-right: -20px;
}

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.