WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox JS
Enable Smart Loading if 'rel' is within a template (3 posts)

  1. dashaluna
    Member
    Posted 2 years ago #

    Hello,
    Enable Smart Loading is a great feature to have! However, it looks at the posts content to determine whether it need to do its magic.

    How can I customize the plugin to also to the smart loading of css and scripts if my rel="shadowbox" attribute is specified within a template code instead of post's content?

    Many thanks,
    Dasha

    http://wordpress.org/extend/plugins/shadowbox-js/

  2. Matt Martz
    Member
    Plugin Author

    Posted 2 years ago #

    Currently you cannot. If it is not in the post content, smart loading has to be disabled.

  3. dashaluna
    Member
    Posted 2 years ago #

    Thanks Matt,

    Any advice how to correctly include plugin's css and js only on specific pages myself?

    I know how to queue css and js for specific pages - using the wp_enqueue_style and wp_enqueue_script .. however, I'm not sure what exactly files to include.

    I would really appreciate any tips!

    Many thanks,
    Dasha

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic