Forums

[resolved] Conditional CSS Loading (2 posts)

  1. Xonox
    Member
    Posted 4 months ago #

    Hi,

    I've been trying a lot of ways to do this but I'm not getting it. I'm making a simple widget which has an option to load a CSS file. I need to do two things:

    1. Load (or don't load) CSS file according to widget setting.

    2. Load CSS file only when widget is used and CSS setting is true.

    My widget has the following structure:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I need a hand to figure out, how and where I should make it.

    Thanks,

  2. Xonox
    Member
    Posted 4 months ago #

    Ok...

    Now with the code from pastebin:
    http://pastebin.com/GkvFJLrZ

    Any help would be appreciated.

    Thanks.

Reply

You must log in to post.

About this Topic