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

  1. dashaluna
    Posted 4 years ago #

    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,


  2. Matt Martz
    Plugin Author

    Posted 4 years ago #

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

  3. dashaluna
    Posted 4 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,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shadowbox JS
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic