Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to use: wp_dequeue_script


  • vera76
    Participant

    @vera76

    Hi, i dont want buddypress to load on my frontsite.So i have to add this to my functions.php,right?
    Where exactly do i have to put it?

    // Verhinder das Laden von Buddypress auf der Startseite
    if (is_home() || is_front_page())
    wp_dequeue_script( ‚buddypress‘ );????

    THanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)

  • vera76
    Participant

    @vera76

    i use a static site as front page


    shanebp
    Moderator

    @shanebp

    BP is a plugin, not a script. You can’t dequeue it.
    You might be able to hack bp-loader.php to stop BP from autoloading all the BP files on your front page, but you’ll need to be experienced with php and BP.


    vera76
    Participant

    @vera76

    Thanks for you answer. I looking for a way to improve the loading time of the site..its a paid membership site which has to use 20 plugins. I use comet cache and WP Super Simple Speed but the site is super slow..:-(

    also wp asset management was not a solution.

    Thanks for you advice


    vera76
    Participant

    @vera76

    wp Asset clean up..

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar