Price Range Slider (CSS)

input[type=”range”] { -webkit-appearance: none; width: 100%; height: 8px !important; min-height: 8px !important; background: #ccc !important; outline: none; opacity: 0.7; -webkit-transition: .2s; transition: opacity .2s; margin: 20px 0; } input[type=”range”]:hover { opacity: 1; } input[type=”range”]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width:…Continue reading

Horizontal Element Container Wrapper

function wrap_elements_in_container( $content ) { // Define your container wrapper HTML $container_start = ‘ ‘; $container_end = ‘ ‘; // Wrap the content $wrapped_content = $container_start . $content . $container_end; return $wrapped_content; } add_filter( ‘the_content’, ‘wrap_elements_in_container’ );Continue reading

Display the Last Updated Date

$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘F jS, Y’ );…Continue reading

Display the Last Updated Date

$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘F jS, Y’ );…Continue reading