I'm trying to enqueue my custom script and style with the block of codes, the scripts works but not the style. I don't know what I'm doing wrong.
function my_scripts_method() {
wp_deregister_script( 'jquery' );
wp_deregister_script( 'style' );
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' );
wp_register_style( 'style', '//siteripe.com/style.css' );
}
add_action('wp_enqueue_scripts', 'my_scripts_method');
add_action('wp_enqueue_style', 'my_style_method');
wp_enqueue_script
jquery, registering it's not enough to show it in a page.