Try this. It dequeues the style and script set in 'init'
.
add_action( 'template_redirect', 'remove_wizzylike' );
function remove_wizzylike() {
if ( ! is_single() )
add_action( 'wp_head', 'remove_wizy', 5 );
}
function remove_wizy() {
remove_action( 'wp_head', 'wizylike_head' );
// Enqueued in wizylike_init()
wp_dequeue_style( 'wizylike' );
wp_dequeue_script( 'wizylike' );
}
Related Posts:
- WordPress Code Flow
- How can i get the name parameter defined in get_header?
- Is there a way to read or list wp_head() contents?
- Multi-page posts do not get indexed by Google due to canonical URLs
- Remove rel=’dns-prefetch’ href=’//maps.google.com’ from wp-head
- How to remove pingback from head?
- wp_head() outputs in body
- Change dns-prefetch to preconnect for external enqueued resources
- How to remove unnecessary elements in the HTML document head
- wp_head() not including styles and javascripts after a template redirect
- Removing Visual Composer head meta (works alone but not with IF)
- removing wordpress generated code from the head section?
- Change default s.w.org dns-prefetch resource hint value
- using wp_head in body tag for css style
- Use wp-load() and wp_head() to render a page’s header outside of WordPress
- Set title of page using custom page template
- How do I add a logo to my website?
- Set up description meta automatically
- How to find which plugin is outputting Open Graph tags to
- Why would wp_head() cause the menus to break?
- wp_head function outputs after
- Remove_action inside a function
- Does adding a callback like this to wp_head allows you to add additional content?
- How can i remove JUST Description tag from wp_head() function?
- Custom page with WP Header showing Page not found title
- Getting the contents of wp_head while in admin?
- Wp_head () affecting my images layout
- How to add meta tags inside single image page?
- How to store wordpress functions (wp_head(),wp_footer()) in a javascript variable?
- “Warning: count()” printing in Page templates
- How can I edit a meta description
- Hide page name in wordpress page title
- Is it possible to add post specific info in head of worpress post for OG use
- why php tag is not working if i store and show it in wp_head?
- output specific location in the header
- Data validation for inline javascript
- Add OG meta tags to wp head
- How to Link External jQuery/Javascript files with WordPress
- Remove meta robots tag from wp_head
- Caching and Versioning for rtl.css
- Two title tags in my header
- Change Page’s Tag Using functions.php File
- How can I reduce the amount of files loaded/included per plugin?
- when should an action be added to init and when should it be added to wp_head
- Display custom_background outside wp_head()
- Putting content into header.php without using wp_head
- Wp_head and wp_footer vs wp_enqueue_script javascript files?
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Change meta tags programatically
- How to properly insert a stylesheet in wp_head
- Using auth_redirect returns cannot modify header information
- Why does wp_enqueue_script ignore my ‘wp_head’ hook?
- wp_head() remove redundant scripts?
- Manually add admin bar
- Indenting (tabbing) WP_head
- Move all the JS files to the bottom|footer, the right way
- How to add inline css/js inside a shortcode
- add action wp_head not working
- Remove all theme CSS & JS from wp_head (but only for 1 page template)
- Is possible dequeue/remove style from wp_footer() hook and add on wp_head() hook?
- action hook wp_head higher priority as all other plugins/hooks
- wp_head() – list hooked actions with priorities?
- Custom plugin – $post_id in wp_head
- Why wp_head() function not loading style.css?
- Fatal error: Call to undefined function get_post() with ajax
- Remove WordPress scripts
- wp_head function not outputting
- How to disable/enable specific plugins for a mobile theme?
- Custom script file enqueue has “?ver=4.5.1” when loading and doesn’t update
- How to hook into container
- Adding javascript to functions.php causes problems with my template
- Why does WP load so many files in the head of source code? How do I optimize it?
- How to manipulate the content within wp_head
- Different favicon on different pages
- Add inline style to pages where shortcode was used
- Grab ID from post from plugin and use it to create an object
- Where are the contents of WP_Head
- How to use only scripts from new theme?
- Why won’t the action hook wp_head accept parameters?
- is there a way to preload specific images for desktop users only? (excluding mobile users)
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- We are facing this error in header unable to understand the issue
- i create functions.php in plugin files but add_action (‘wp_head’, ‘function_name’) don’t work
- Add a top bar to a wordpress theme without editing the header.php file?
- Remove style tags from head
- How do I get a reference to the HTML memory buffer while the page is being constructed?
- Update javascript URL in header – Domain Mapping Plugin [closed]
- Placing CSS/ JS into the header or footer (inline) – trying to apply to several templates
- Edit meta fields from within template
- Calling JavaScript for specific page irrespective of whichever theme you select
- custom COOKIE on custom page
- How can I remove the site URL from enqueued scripts and styles?
- Best use adding user generated JS/CSS to a theme with a plugin
- Removing action from template class
- Echo a div to header.php from functions.php
- How can a ‘scripts’ directory be hooked into wp_head();?
- Particular meta tag – viewport – insertion when dealing with plugin
- Use WordPress Built In Jquery
- Reading the inside of
- wp_head not injecting css