iao vorrei tradurre una scritta nello slider che non sembra editabile da nessuna parte allora ho sto provando ad aggiungere uno script jquery nel child theme ma per ora non mi funziona nemmeno l'alert mi aiutate a capire perché non lo integra il mio script o qual è il modo giusto? questo è il codice
in functions.php
codice:
function wpdocs_theme_slug_scripts() {
// Custom scripts require a unique slug (Theme Name).
wp_enqueue_script( 'theme-slug-custom-script', get_template_directory_uri() . '/custom-js/jquery.enrollware.js', array(), '1.0.0', true );
/*
* To avoid double loading Genericons will not need a slug. Same applies
* to all other non-custom styles or scripts.
*/
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/custom-css/custom-css.css', array(), '1.0.0' );
}
add_action( 'wp_enqueue_scripts', 'wpdocs_theme_slug_scripts' );
codice:
jQuery( document ).ready( function( $ ) {
// $() will work as an alias for jQuery() inside of this function
//your code goes here
alert('yes');
jQuery( ".journalist-mod-slider-thumbs h2" ).append( "<p>Test</p>" );
} );
ho provato anche cosi:
http://www.kriesi.at/support/topic/a...o-child-theme/