WordPress.org

Ready to get started?Download WordPress

Forums

SyntaxHighlighter Evolved
[resolved] Only load on single pages? (3 posts)

  1. Steven Jones
    Member
    Posted 1 year ago #

    Hi,

    Is there anyway of only loading the plugin on single pages. I don't want all the js/css to be included on my homepage and other pages that don't require any code.

    Any help would be greatly appreciated.

    Cheers,
    Steve

    http://wordpress.org/extend/plugins/syntaxhighlighter/

  2. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 1 year ago #

    Have you checked the source of your non-single pages? ;)

    The plugin is already smart enough to not output any CSS or JavaScript into your footer if none of its shortcodes are being rendered on the current page.

    For example view a single post that doesn't have any code in it and the CSS/JS won't be there.

  3. Steven Jones
    Member
    Posted 1 year ago #

    Hi Alex,

    It's loading all of the JS in the footer on all the pages although I only use it on single pages, so not sure why it's doing that?

    Anything I should check?

    http://www.stomptheweb.co.uk

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.