Untitled Snippet

$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

Onboarding PW Form

function my_custom_password_form() { global $post; $label = ‘pwbox-‘ . ( empty( $post->ID ) ? rand() : $post->ID ); $output = ‘ ‘ . __( ” ) . ‘ ‘ . esc_attr_x( ‘Get Your Forms’, ‘post password form’ ) . ‘…Continue reading

Progress Bar PHP

function enqueue_custom_styles_scripts() { wp_enqueue_style(‘progress-bar-style’, get_template_directory_uri() . ‘/progress-bar-style.css’); wp_enqueue_script(‘progress-bar-script’, get_template_directory_uri() . ‘/progress-bar.js’, array(‘jquery’), null, true); } add_action(‘wp_enqueue_scripts’, ‘enqueue_custom_styles_scripts’); function custom_progress_bar_shortcode($atts) { $atts = shortcode_atts([ ‘range_major’ => ‘100’, ‘current_major’ => ’50’, ‘label_major’ => ‘Major Progress’, ‘range_minor’ => ‘100’, ‘current_minor’ => ’25’ ],…Continue reading

Menu Item image Animation on Hover

.header-navigation .menu .menu-item:hover { background: url(https://ecommerce-base-1.instawp.xyz/wp-content/uploads/2024/05/Plan-De-Travail-14_7png.webp) no-repeat; background-size: contain; background-position: center; transition: 0.5s; }Continue reading