• Resolved roeeyossef

    (@roeeyossef)


    Hey – Thanks for the great plugin..

    I try to load the styles and scripts only on specific page via functions.php and whatever i do i cannot manage to do so.

    I manage to dequeue the assets but cannot enqueue them again.. Can you please direct me to a solution?

    Much appriciated,
    Roee Yossef

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, looks like you never got a response. Did you end up solving it? Can you share how you dequeued the styles and scripts?

    Thread Starter roeeyossef

    (@roeeyossef)

    Yes, You can achieve it with the following code:

    function sv_remove_my_action()
    {
        if (is_front_page() ) {
            remove_action('wp_enqueue_scripts', 'nb_cpf_embedCssJs');
        }
    }
    
    add_action('wp', 'sv_remove_my_action');
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load on specific pages’ is closed to new replies.