Enqueue magnific-popup?

About this forum
These forums have not been active for several years. They're available for search and reference, but a lot of this information is likely out of date.

For current information, try visiting our Knowledge Base.

Home / Support / Custom Module Development / Enqueue magnific-popup?

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #108389

    Nicolas
    Participant

    Hi.
    Is their a way to enqueue default BBplugin magnific-popup.js and css in a custom module?

    #108443

    Josh C
    Participant

    Add these two lines after your constructor:

    $this->add_js('jquery-magnificpopup');
    $this->add_css('jquery-magnificpopup');
    #108604

    Nicolas
    Participant

    Hi josh. So simple: thanks !

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Custom Module Development’ is closed to new topics and replies.