perlastudio
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Hello Maybellyne,
I tried WP CLI:
wp yoast index --reindex
But, after run above command, nothing happened:
[14:11:10] [R] [CMD] wp yoast index --reindex [14:11:10] [R] [shell] Open [14:11:11] [R] [shell] Close
So I downloaded the plugin Yoast Test Helper and I have started the function Reset Indexables tables & migrations. It has helped me… Now all urls in breadcrumb are good.
Forum: Plugins
In reply to: [Plugin for Google Reviews] Only load JS/CSS for Google Reviews when neededI tried again and succeeded.
Plugin generate scripts on all pages:
<script type="text/javascript" defer="defer" src="localhost/wp-content/plugins/widget-google-reviews/assets/js/public-main.js?ver=3.4" id="grw-public-main-js-js"></script> <link rel="stylesheet" id="grw-public-main-css-css" href="localhost/wp-content/plugins/widget-google-reviews/assets/css/public-main.css?ver=3.4" type="text/css" media="all">
Below functions solve the problem:
function perla_remove_scripts() { if ( !is_front_page() ) { wp_dequeue_script( 'grw-public-main-js' ); } } add_action( 'wp_print_scripts', 'perla_remove_scripts', PHP_INT_MAX, 0 ); function perla_remove_styles() { if ( !is_front_page() ) { wp_dequeue_style( 'grw-public-main-css' ); } } add_action( 'wp_enqueue_scripts', 'perla_remove_styles', PHP_INT_MAX, 0 );
Topic to be closed.
Hi,
this code working! Thank you!
Hi,
Yes, work it now!
Thanks for quick update !
Hi,
I use jquery version 1.11.4.
Screen browser console:
I went back to the version 1.2.3 (plugin conditional fields), now all working…
- This reply was modified 7 years, 6 months ago by perlastudio.
Viewing 5 replies - 1 through 5 (of 5 total)