SHARE
TWEET

Untitled

a guest Apr 19th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function dg_enqueue_scripts() {
  4.  
  5.     // Dequeue na .css na nekoj specificen page template
  6.     if(is_page_template('page-apples.php')) {
  7.        wp_dequeue_style('oranges');
  8.     }
  9.  
  10.     // Dequeue na .css na nekoja specificna strana po ID.
  11.     if(is_page(2323)) {
  12.        wp_dequeue_style('other handle');
  13.     }
  14.  
  15.     // Dequeue na .css na single blog post strana
  16.     if(is_singular('post')) {
  17.        wp_dequeue_style('some other handle');
  18.     }
  19.    
  20. }
  21. add_action('wp_enqueue_scripts', 'dg_dequeue_scripts');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top