wp_enqueue_script add integrity parameter

You will have to generate your own tag after the script is enqueued. Below, it’s looking for the fontawesome handle (the one you’re using to enqueue the script) before returning the custom tag. add_filter( ‘script_loader_tag’, ‘my_scripts_modifier’, 10, 3 ); function my_scripts_modifier( $tag, $handle, $src ) { if ( ‘fontawesome’ === $handle ) { return ‘<script … Read more

Generating rel=prev and rel=next only on wordpress categories

Not entirely sure if I agree with the explanation of your SEO guy as rel=prev and rel=next are used for paginated archives. Of course categories can be one, but also your blog if it’d contain multiple pages. Anyways, here’s what I’m currently using: remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’ ); add_action( ‘wp_head’, ‘cor_rel_next_prev_pagination’ ); /** * Pagination with … Read more