• I want to remove

    <link rel=’stylesheet’ id=’wr-pb-font-icomoon-css’ href=’wp-content/plugins/wr-pagebuilder/assets/3rd-party/font-icomoon/css/icomoon.css’ type=’text/css’ media=’all’ />
    <link rel=’stylesheet’ id=’wr-pb-bootstrap-css’ href=’wp-content/plugins/wr-pagebuilder/assets/3rd-party/bootstrap3/css/bootstrap_frontend.min.css’ type=’text/css’ media=’all’ />
    <link rel=’stylesheet’ id=’wr-pb-joomlashine-frontend-css’ href=’wp-content/plugins/wr-pagebuilder/assets/woorockets/css/jsn-gui-frontend.css’ type=’text/css’ media=’all’ />
    <link rel=’stylesheet’ id=’wr-pb-frontend-css’ href=’wp-content/plugins/wr-pagebuilder/assets/woorockets/css/front_end.css’>

    <script type=’text/javascript’ src=’wp-content/plugins/wr-pagebuilder/assets/3rd-party/bootstrap3/js/bootstrap_frontend.min.js?ver=3.0.2′></script>
    <script type=’text/javascript’ src=’wp-content/plugins/wr-pagebuilder/assets/3rd-party/scrollreveal/scrollReveal.js?ver=0.1.2′></script>
    <script type=’text/javascript’ src=’wp-content/plugins/wr-pagebuilder/assets/3rd-party/stellar/stellar.js?ver=0.6.2′></script>

    All these files from all other pages only show them on page where page builder is used.

    How to do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I have exactly the same question.

    I already use Bootstrap CSS & JS with my theme, so I d’ont want to use theses files, even if the builder is used.

    I guess we need to enqueued / deregister something via functions.php ?
    Something like that ? ??

    Thanks in adavce for your help !

    Ok, I’ve juste find the solution for the styles :

    function my_deregister_styles() {
    	wp_deregister_style( 'wr-pb-font-icomoon' );
    	wp_deregister_style( 'wr-pb-joomlashine-frontend' );
    	wp_deregister_style( 'wr-pb-frontend' );
    	wp_deregister_style( 'wr-pb-frontend-responsive' );
    }

    Didn’t try for the scri^ts yet, but it must be something like :

    add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
    
    function my_deregister_javascript() {
    	wp_deregister_script( 'THE_HANDLE' );
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove stylesheets and javascript on which pagebuilder is not used’ is closed to new replies.