当前位置: 首页>>代码示例>>PHP>>正文


PHP wp_dequeue_style函数代码示例

本文整理汇总了PHP中wp_dequeue_style函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_dequeue_style函数的具体用法?PHP wp_dequeue_style怎么用?PHP wp_dequeue_style使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wp_dequeue_style函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: child_manage_woocommerce_styles

/**
 * Remove WooCommerce Generator tag, styles, and scripts from the homepage.
 * Tested and works with WooCommerce 2.0+
 *
 * @author Greg Rickaby
 * @since 2.0.0
 */
function child_manage_woocommerce_styles()
{
    remove_action('wp_head', array($GLOBALS['woocommerce'], 'generator'));
    if (!is_woocommerce() && !is_cart() && !is_checkout()) {
        wp_dequeue_style('woocommerce_frontend_styles');
        wp_dequeue_style('woocommerce_fancybox_styles');
        wp_dequeue_style('woocommerce_chosen_styles');
        wp_dequeue_style('woocommerce_prettyPhoto_css');
        wp_dequeue_script('wc_price_slider');
        wp_dequeue_script('wc-single-product');
        wp_dequeue_script('wc-add-to-cart');
        wp_dequeue_script('wc-cart-fragments');
        wp_dequeue_script('wc-checkout');
        wp_dequeue_script('wc-add-to-cart-variation');
        wp_dequeue_script('wc-single-product');
        wp_dequeue_script('wc-cart');
        wp_dequeue_script('wc-chosen');
        wp_dequeue_script('woocommerce');
        wp_dequeue_script('prettyPhoto');
        wp_dequeue_script('prettyPhoto-init');
        wp_dequeue_script('jquery-blockui');
        wp_dequeue_script('jquery-placeholder');
        wp_dequeue_script('fancybox');
        wp_dequeue_script('jqueryui');
    }
}
开发者ID:vespertines,项目名称:wordpress_theme_starter,代码行数:33,代码来源:woocommerce.php

示例2: be_woo_remove_default_lightbox_js

 function be_woo_remove_default_lightbox_js()
 {
     remove_action('wp_head', array($GLOBALS['woocommerce'], 'generator'));
     wp_dequeue_style('woocommerce_prettyPhoto_css');
     wp_dequeue_script('prettyPhoto');
     wp_dequeue_script('prettyPhoto-init');
 }
开发者ID:leloulight,项目名称:monero,代码行数:7,代码来源:be-woo-functions.php

示例3: wl_removeScripts

function wl_removeScripts()
{
    //De-Queuing Styles sheet
    wp_dequeue_style('default', get_template_directory_uri() . '/css/default.css');
    //EN-Queing Style sheet
    wp_enqueue_style('lite-brown', get_stylesheet_directory_uri() . '/green.css');
}
开发者ID:bigkey,项目名称:php-getting-started,代码行数:7,代码来源:functions.php

示例4: remove_all_actions

 /**
  * If we are in our template strip everything out and leave it clean
  * @since 1.0.0
  */
 public function remove_all_actions()
 {
     global $wp_scripts, $wp_styles;
     $exceptions = array('mailtpl-js', 'jquery', 'query-monitor', 'mailtpl-front-js', 'customize-preview', 'customize-controls');
     if (is_object($wp_scripts) && isset($wp_scripts->queue) && is_array($wp_scripts->queue)) {
         foreach ($wp_scripts->queue as $handle) {
             if (in_array($handle, $exceptions)) {
                 continue;
             }
             wp_dequeue_script($handle);
         }
     }
     if (is_object($wp_styles) && isset($wp_styles->queue) && is_array($wp_styles->queue)) {
         foreach ($wp_styles->queue as $handle) {
             if (in_array($handle, $exceptions)) {
                 continue;
             }
             wp_dequeue_style($handle);
         }
     }
     // Now remove actions
     $action_exceptions = array('wp_print_footer_scripts', 'wp_admin_bar_render');
     // No core action in header
     remove_all_actions('wp_header');
     global $wp_filter;
     foreach ($wp_filter['wp_footer'] as $priority => $handle) {
         if (in_array(key($handle), $action_exceptions)) {
             continue;
         }
         unset($wp_filter['wp_footer'][$priority]);
     }
 }
开发者ID:bobwol,项目名称:wordpress-email-templates,代码行数:36,代码来源:class-mailtpl-admin.php

示例5: spyropress_deregister_cf7

function spyropress_deregister_cf7()
{
    wp_dequeue_style('contact-form-7');
    if (function_exists('wpcf7_is_rtl') && wpcf7_is_rtl()) {
        wp_dequeue_style('contact-form-7-rtl');
    }
}
开发者ID:rinodung,项目名称:myfreetheme,代码行数:7,代码来源:spyropress-scripts.php

示例6: scripts

 /**
  * Add our custom stylesheets and scripts
  */
 function scripts()
 {
     $options = get_option('maera_admin_options', array());
     $active_shell = isset($options['shell']) ? $options['shell'] : 'core';
     // Remove the default EDD styles
     wp_dequeue_style('edd-styles');
     // If EDD-Software-Specs is installed, remove its styles
     if (class_exists('EDD_Software_Specs')) {
         wp_dequeue_style('edd-software-specs');
         wp_deregister_style('edd-software-specs');
     }
     // Add our custom styles
     wp_register_style('maera-edd', trailingslashit(get_template_directory_uri()) . 'assets/css/edd/style.css');
     wp_enqueue_style('maera-edd');
     if ('isotope' == get_theme_mod('filter_mode', 'isotope') && (is_archive('download') || is_tax('download_tag') || is_tax('download_category'))) {
         // Register && Enqueue Isotope
         wp_register_script('maera_isotope', trailingslashit(get_template_directory_uri()) . 'assets/vendor/jquery.isotope.min.js', false, null, true);
         wp_enqueue_script('maera_isotope');
         // Register && Enqueue Isotope-Sloppy-Masonry
         wp_register_script('maera_isotope_sloppy_masonry', trailingslashit(get_template_directory_uri()) . 'assets/vendor/jquery.isotope.sloppy-masonry.min.js', false, null, true);
         wp_enqueue_script('maera_isotope_sloppy_masonry');
         wp_enqueue_script('edd_script', trailingslashit(get_template_directory_uri()) . 'assets/js/edd-scripts.js', false, null, true);
         // wp_localize_script( 'maera_foundation_script', 'maera_foundation_script_vars', array(
         //
         //     )
         // );
     }
 }
开发者ID:wpmu,项目名称:maera,代码行数:31,代码来源:class-maera-edd-scripts.php

示例7: wp_enqueue_scripts

 public function wp_enqueue_scripts()
 {
     wp_dequeue_style('wp-job-manager-bookmarks-frontend');
     wp_deregister_script('wp-job-manager-bookmarks-bookmark-js');
     wp_register_script('wp-job-manager-bookmarks-bookmark-js', listify_Integration::get_url() . 'js/wp-job-manager-bookmarks.min.js', array('jquery', 'listify'), JOB_MANAGER_BOOKMARKS_VERSION, true);
     wp_enqueue_script('wp-job-manager-bookmarks-bookmark-js');
 }
开发者ID:abdullahrahim,项目名称:shadighar,代码行数:7,代码来源:class-wp-job-manager-bookmarks.php

示例8: bluerockre_scripts

function bluerockre_scripts()
{
    wp_deregister_script('wpex-sticky');
    wp_deregister_script('wpex-hoverintent');
    wp_deregister_script('wpex-animsition');
    wp_deregister_script('wpex-tipsy');
    wp_deregister_script('wpex-images-loaded');
    wp_deregister_script('wpex-isotope');
    wp_deregister_script('wpex-leanner-modal');
    wp_deregister_script('wpex-sliderpro-customthumbnails');
    wp_deregister_script('wpex-touch-swipe');
    wp_deregister_script('wpex-owl-carousel');
    wp_deregister_script('wpex-count-to');
    wp_deregister_script('wpex-appear');
    wp_deregister_script('wpex-custom-select');
    wp_deregister_script('wpex-mousewheel');
    wp_deregister_script('wpex-match-height');
    wp_deregister_script('wpex-scrolly');
    wp_deregister_script('wpex-ilightbox');
    wp_dequeue_style('wpa-css');
    // Dequeue admin stylesheet from WP-Attachment Plugin
    wp_dequeue_style('wpex-style');
    wp_dequeue_style('wpex-responsive');
    wp_enqueue_style('style', get_theme_root_uri() . '/brg/style.css');
    wp_enqueue_style('brg', get_theme_root_uri() . '/brg/css/brg.css');
    wp_enqueue_style('responsive', get_theme_root_uri() . '/brg/css/responsive.css');
}
开发者ID:brboise,项目名称:brg,代码行数:27,代码来源:functions.php

示例9: aplite_enqueue_styles

function aplite_enqueue_styles()
{
    wp_enqueue_style('aplite-parent-style', get_template_directory_uri() . '/style.css');
    wp_enqueue_style('aplite-style', get_stylesheet_uri(), array('aplite-parent-style'));
    $fonts_url = '';
    $fonts = array();
    $subsets = 'latin,latin-ext';
    if ('off' !== _x('on', 'Gentium Basic: on or off', 'aplite')) {
        $fonts[] = 'Gentium+Basic:400,700,400italic';
    }
    if ('off' !== _x('on', 'Advent Pro: on or off', 'aplite')) {
        $fonts[] = 'Advent+Pro:400,700,600,500,300';
    }
    $subset = _x('no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'aplite');
    if ('cyrillic' == $subset) {
        $subsets .= ',cyrillic,cyrillic-ext';
    } elseif ('greek' == $subset) {
        $subsets .= ',greek,greek-ext';
    } elseif ('devanagari' == $subset) {
        $subsets .= ',devanagari';
    } elseif ('vietnamese' == $subset) {
        $subsets .= ',vietnamese';
    }
    if ($fonts) {
        $fonts_url = add_query_arg(array('family' => urlencode(implode('|', $fonts)), 'subset' => urlencode($subsets)), '//fonts.googleapis.com/css');
    }
    wp_dequeue_style('accesspresslite-google-fonts');
    wp_enqueue_style('aplite-google-fonts', $fonts_url);
}
开发者ID:anaseya,项目名称:wpblog,代码行数:29,代码来源:functions.php

示例10: calibrefx_mobile_scripts

function calibrefx_mobile_scripts()
{
    if (wp_is_mobile()) {
        // 	Load Styles
        wp_enqueue_style('jquery.mobile', CALIBREFX_MODULE_URL . '/minicfx/assets/css/jquery-mobile.min.css');
        wp_enqueue_style('jquery.mobile', CALIBREFX_MODULE_URL . '/minicfx/assets/css/jquery.mobile.icons.css');
        wp_enqueue_style('calibrefx.mobile', CALIBREFX_MODULE_URL . '/minicfx/assets/css/calibrefx-mobile.css');
        // 	Minicfx Settings
        $minicfx_args = array();
        $minicfx_args['ajaxEnabled'] = esc_attr(calibrefx_get_option('minicfx_ajaxenabled')) == 'enable' ? true : false;
        $minicfx_args['defaultPageTransition'] = esc_attr(calibrefx_get_option('minicfx_defaultPageTransition'));
        $minicfx_loading_args = array();
        $minicfx_loading_args['textVisible'] = esc_attr(calibrefx_get_option('minicfx_showloadingtext')) == 'enable' ? true : false;
        // $minicfx_loading_args['text'] 			= esc_attr( calibrefx_get_option( 'minicfx_loadingtext' ) );
        $minicfx_loading_args['html'] = esc_attr(calibrefx_get_option('minicfx_showloadingtext')) == 'enable' ? esc_attr(calibrefx_get_option('minicfx_loadinghtml')) : '';
        // $minicfx_loading_args['theme'] 			= esc_attr( calibrefx_get_option( 'minicfx_loadingtheme' ) );
        // 	Load Scripts
        wp_enqueue_script('function.mobile', CALIBREFX_MODULE_URL . '/minicfx/assets/js/function-mobile.js', array('jquery'));
        wp_enqueue_script('jquery.mobile', CALIBREFX_MODULE_URL . '/minicfx/assets/js/jquery-mobile.js', array('jquery'));
        wp_dequeue_style('jquery-superfish');
        wp_dequeue_script('superfish');
        // 	Localize Settings
        wp_localize_script('function.mobile', 'minicfx_settings', $minicfx_args);
        wp_localize_script('function.mobile', 'minicfx_loading', $minicfx_loading_args);
        // 	Load child themes mobile css
        if (file_exists(CHILD_MOBILE_URI . '/style.css')) {
            wp_enqueue_style('child.mobile', CHILD_MOBILE_URL . '/style.css');
        }
    }
}
开发者ID:alispx,项目名称:calibrefx,代码行数:30,代码来源:minicfx.php

示例11: dd_enqueue_style

 function dd_enqueue_style()
 {
     // Remove all default woocommerce style
     wp_dequeue_style('woocommerce-layout');
     wp_dequeue_style('woocommerce-general');
     wp_dequeue_style('woocommerce-smallscreen');
     wp_dequeue_style('woocommerce_prettyPhoto_css');
     // Normalize.css
     wp_register_style('normalize', 'https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css');
     wp_enqueue_style('normalize');
     // Materialize CSS
     wp_register_style('materialize', 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css');
     wp_register_style('materialize-icon', 'http://fonts.googleapis.com/icon?family=Material+Icons');
     wp_register_style('font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css');
     wp_enqueue_style('materialize');
     wp_enqueue_style('font-awesome');
     wp_enqueue_style('materialize-icon');
     // OwlCarousel
     wp_register_style('owl-carousel', 'https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.css');
     wp_register_style('owl-carousel-theme', 'https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.theme.min.css');
     wp_enqueue_style('owl-carousel');
     wp_enqueue_style('owl-carousel-theme');
     // Social Feed
     wp_register_style('social-feed', 'https://cdnjs.cloudflare.com/ajax/libs/social-feed/0.1.2/css/jquery.socialfeed.min.css');
     wp_enqueue_style('social-feed');
     //Animate.css
     wp_register_style('animate', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.4.0/animate.min.css');
     wp_enqueue_style('animate');
     // Stylesheet
     wp_enqueue_style('stylesheet', get_stylesheet_uri());
 }
开发者ID:dd-unlimited-inc,项目名称:chaocards.com,代码行数:31,代码来源:functions.php

示例12: us_styles

 function us_styles()
 {
     wp_register_style('us_motioncss', get_template_directory_uri() . '/css/motioncss.css', array(), '1', 'all');
     wp_register_style('us_motioncss-widgets', get_template_directory_uri() . '/css/motioncss-widgets.css', array(), '1', 'all');
     wp_register_style('us_font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array(), '4.3.0', 'all');
     wp_register_style('us_magnific-popup', get_template_directory_uri() . '/css/magnific-popup.css', array(), '1', 'all');
     wp_register_style('us_wp-widgets', get_template_directory_uri() . '/css/wp-widgets.css', array(), '1', 'all');
     wp_register_style('us_style', get_template_directory_uri() . '/css/style.css', array(), '1', 'all');
     wp_register_style('us_responsive', get_template_directory_uri() . '/css/responsive.css', array(), '1', 'all');
     wp_register_style('us_animation', get_template_directory_uri() . '/css/animation.css', array(), '1', 'all');
     wp_register_style('us_js_composer_fe', get_template_directory_uri() . '/vc_templates/css/us.js_composer_fe.css', array(), '1', 'all');
     wp_register_style('app-stylesheets', get_template_directory_uri() . '/css/app/app.stylesheets.css', array(), '1', 'all');
     wp_enqueue_style('us_motioncss');
     wp_enqueue_style('us_motioncss-widgets');
     wp_enqueue_style('us_font-awesome');
     wp_enqueue_style('us_magnific-popup');
     wp_enqueue_style('us_wp-widgets');
     wp_enqueue_style('us_style');
     wp_enqueue_style('us_responsive');
     wp_enqueue_style('us_animation');
     wp_enqueue_style('app-stylesheets');
     if (us_is_vc_fe()) {
         wp_enqueue_style('us_js_composer_fe');
     } else {
         wp_dequeue_style('js_composer_front');
     }
 }
开发者ID:syncopetwice,项目名称:STG,代码行数:27,代码来源:enqueue.php

示例13: att_load_scripts

function att_load_scripts()
{
    /*******
     *** CSS
     *******************/
    // Main CSS
    wp_enqueue_style('style', get_stylesheet_uri());
    // Google Fonts
    wp_enqueue_style('google-fonts', 'http://fonts.googleapis.com/css?family=Sintony:400,700', 'style');
    // Font Awesome
    wp_enqueue_style('font-awesome', ATT_CSS_DIR_UIR . '/font-awesome.min.css', 'style', true);
    //Responsive
    wp_enqueue_style('att-responsive', ATT_CSS_DIR_UIR . '/responsive.css');
    // Remove default contact 7 styling
    if (function_exists('wpcf7_enqueue_styles')) {
        wp_dequeue_style('contact-form-7');
    }
    /*******
     *** jQuery
     *******************/
    // Responsive
    wp_enqueue_script('fitvids', ATT_JS_DIR_URI . '/fitvids.js', array('jquery'), 1.0, true);
    wp_enqueue_script('uniform', ATT_JS_DIR_URI . '/uniform.js', array('jquery'), '1.7.5', true);
    wp_enqueue_script('att-responsive', ATT_JS_DIR_URI . '/responsive.js', array('jquery'), '', true);
    // Comment replies
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    // Localize responsive nav
    $nav_params = array('text' => __('Navigation', 'att'));
    wp_localize_script('att-responsive', 'navLocalize', $nav_params);
    // Initialize
    wp_enqueue_script('att-global-init', ATT_JS_DIR_URI . '/initialize.js', false, '1.0', true);
}
开发者ID:Vatia13,项目名称:dancesport,代码行数:34,代码来源:scripts.php

示例14: scripts

 /**
  * Edit Scripts
  */
 public function scripts()
 {
     // Remove prettyPhoto CSS
     wp_dequeue_style('woocommerce_prettyPhoto_css');
     // Remove prettyPhoto Init
     wp_dequeue_script('prettyPhoto-init');
 }
开发者ID:sergey-h,项目名称:naman,代码行数:10,代码来源:woocommerce-tweaks-class.php

示例15: kuorinka_child_dev_scripts

/**
 * Enqueue scripts and styles.
 *
 * @since  1.0.0
 */
function kuorinka_child_dev_scripts()
{
    /* Dequeue parent fonts. */
    wp_dequeue_style('kuorinka-fonts');
    /* Enqueue fonts. */
    wp_enqueue_style('kuorinka-child-dev-fonts', kuorinka_child_dev_fonts_url(), array(), null);
}
开发者ID:daisy,项目名称:kuorinka-child-dev,代码行数:12,代码来源:functions.php


注:本文中的wp_dequeue_style函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。