WordPress.org

Ready to get started?Download WordPress

Forums

WP Socializer
[resolved] How to unload scripts from the frontpage (main page) (4 posts)

  1. hadingr
    Member
    Posted 1 year ago #

    Firstly, I really enjoy your plugin. It's easy to use and lots of features. Thank you for the awesome plugin.
    Anyway, I need to remove the scripts (js and css) on the frontpage. Because I just call the plugin only at my single posts, not on the frontpage. What should I do? Thanks b4

    http://wordpress.org/extend/plugins/wp-socializer/

  2. vaakash
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for using my plugin.
    In the wp-socializer.php file,

    add this line if(is_home()) return ''; after
    this line function wpsr_scripts_adder(){

    That's all...

  3. hadingr
    Member
    Posted 1 year ago #

    Excellent!! It works, thanks man.

  4. vaakash
    Member
    Plugin Author

    Posted 1 year ago #

    Happy that its solved...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic