function aviweb_remove_password_strength() {
wp_dequeue_script( ‘wc-password-strength-meter’ );
}
add_action( ‘wp_print_scripts’, ‘aviweb_remove_password_strength’, 10 );
Month: December 2018
Text color blinking using CSS
<h4 class="blinking">SCORE</h4>
.blinking{
animation:blinkingText 1s infinite;
}
@keyframes blinkingText{
0%{ color: #fff; }
50%{ color: #c00; }
100%{ color: #fff; }
}
Get custom posts based on custom taxonomy in WP
Please find below code to get custom posts:-
$args = array('post_type' => 'all_photos','tax_query' => array(array(
'taxonomy' => 'photo',
'field' => 'term_id',
'terms' => $term_id,
),
),
);
$post_query = new WP_Query($args);
Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in Write.php on line 35 magento 2.3
Error because of PHP version. Please check PHP version, because Magento 2.3 compatible with PHP version 7.2 and above only.