wp_deregister if is home

This topic contains 8 reply and 2 voices, and was last updated by Tareq Hasan 11 years, 4 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
July 9, 2013 at 3:50 pm 5751
Tareq Hasan Speed up Page. It´s not necessary. wpuf css and javascript in every page. I want to deregister all. Example: If is home i need no plupload. I want to deregister all css and js wpuf. What´s the best way. - It´s possible to degegister all wpuf or musst i show an deregister every file. How can I do that? Only if is page. register wpuf.
July 9, 2013 at 6:20 pm 5758
Tareq Hasan Tareq Hasan

Download the latest plugin, it only loads scripts/styles only to specific pages that uses only WP User Frontend.

July 10, 2013 at 5:08 pm 5836
zellermaniac zellermaniac

I Update:-)

– German language file
– CSS
– Changes upload.js

How can I Override? ChildPlugin? Is there an Solution.

Now.

-plugin
– wp-user-frontend-pro
– wp-user-frontend-pro – 2.15
– wp-user-frontend-pro – 2.14

I copy manualy.

You forget? home

July 10, 2013 at 9:22 pm 5841
Tareq Hasan Tareq Hasan

Can you be more detailed? As you needed, it doesn’t load the plugin js/css in every pages, only loads where it requires.

July 11, 2013 at 3:28 am 5847
zellermaniac zellermaniac

You forgot.

July 11, 2013 at 3:28 am 5848
zellermaniac zellermaniac

`
type=’text/javascript’ src=’http://maps.google.com/maps/api/js?sensor=true&ver=3.5.2’>

July 11, 2013 at 3:29 am 5849
zellermaniac zellermaniac

maps/api/js?sensor=true&ver=3.5.2

July 11, 2013 at 3:35 am 5852
zellermaniac zellermaniac

   /**
     * Enqueues Styles and Scripts when the shortcodes are used only
     *
     * @uses has_shortcode()
     * @since 0.2
     */
    function enqueue_scripts() {
        $path = plugins_url( '', __FILE__ );


     $scheme = is_ssl() ? 'https' : 'http';
        wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?sensor=true' );

Is there any reason, why it is outside the if wpuf_has_shortcode ?

July 11, 2013 at 4:06 am 5853
Tareq Hasan Tareq Hasan

Yes, there are reasons. If you are using map shortcode, google maps script needs everywhere in your site.

Viewing 8 Posts - 1 through 8 (of 8 total)