How can I remove the site URL from enqueued scripts and styles?

Similar to Wyck’s answer, but using str_replace instead of regex. script_loader_src and style_loader_src are the hooks you want. <?php add_filter( ‘script_loader_src’, ‘wpse47206_src’ ); add_filter( ‘style_loader_src’, ‘wpse47206_src’ ); function wpse47206_src( $url ) { if( is_admin() ) return $url; return str_replace( site_url(), ”, $url ); } You could also start the script/style URLs with a double slash … Read more

Can’t get jquery script to work

It is becuase you didn’t enqueue jquery, replce your mytheme_custom_scripts() function with below code. function mytheme_custom_scripts(){ // include jquery wp_enqueue_script(‘jquery’); wp_enqueue_script( ‘my-test-script’, get_template_directory_uri() . ‘/js/my-jquery-script.js’, array(‘jquery’), ‘1.0’, true ); } and jQuery code like this jQuery(document).ready(function($){ $(‘h1, h2, h3, h4, h5, h6, p, a’).css(‘color’,’pink’); });

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)