WordPress.org

Ready to get started?Download WordPress

Forums

WPtouch Mobile Plugin
WPTouch is disabling all my javascript scripts? (20 posts)

  1. amit2602
    Member
    Posted 7 months ago #

    Hi,
    When I activate WPTouch, it disabling all of my javascripts. why is it happening? :\

    http://wordpress.org/plugins/wptouch/

  2. amit2602
    Member
    Posted 7 months ago #

    btw this is the website:
    http://realdeal.co.il/

    theme is Gridly.
    Masonry + infinite scroll + every other javascript is just disappeared when activating WPTouch.

  3. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 7 months ago #

    I don't see an active installation of WPtouch on your site when viewing with a mobile device. However, once activated, it replaces your site's desktop theme with its own set of templates when viewing the site with a mobile device.

  4. amit2602
    Member
    Posted 7 months ago #

    Hi, thank you.

    i didnt mean to the mobile theme, I know its being replaced, that is the main idea abotu wptouch.
    I'm talking about my regular theme (pc, desktop), it still showing my default theme, but all the scripts (js) are disabled...

    I can activate wptouch, and it looks PERFECT on mobile. but the desktop theme is messed up because of the javascripts disabling.. this is why I disabled WPTouch, dont want my pc visitors to run away...

  5. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 7 months ago #

    We'll need to see the behaviour in action in order to help work out what might be going on here. Can you give us a time window in which you can have WPtouch enabled for us to see?

  6. amit2602
    Member
    Posted 7 months ago #

    Sure I'd love to.
    you know what, I'll leave it activated for the next 5 hours. I'll lose some clients but thats worth your solution.

    I think the problem is that WPTouch overrides my function.php file + some other files of my main theme. this shouldnt happen...

    ok, I'll leave it to you guys.

    Thank you!

    (btw, if you'll solve this for me, I'll buy the pro version tomorrow)

  7. amit2602
    Member
    Posted 7 months ago #

    p.s
    it disables all my plugins, as I said, here is a list of my plugins that are now disappered (wptouch activated):
    Masonry
    Infinite Scroll
    Shadow Box
    Cyclon Slider

    and all other javascript files.
    you wont see them in the source of the website because they just not there when wptouch is on....

  8. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 7 months ago #

    Out of curiosity, do you have WPtouch's setting to use jQuery 2.0 enabled (Core Settings > Tools & Debug, with Admin Mode set to Advanced)?

  9. amit2602
    Member
    Posted 7 months ago #

    no. should i turn it on? I didnt even turn the advance settings on..

  10. amit2602
    Member
    Posted 7 months ago #

    thats not the problem though, just tried it on and off...

    look, when I put the masonry script for example in my header.php file, it works.
    when I leave it in the functions.php:
    wp_enqueue_script('jquery.masonry', get_template_directory_uri().'/js/masonry.pkgd.min.js', array( 'imagesLoaded'), null, true );

    it just disappered.

    let me point you to the right solution - wptouch is overriding my theme files. it overrides the functions.php file which include the majority of my scripts. and other then that, it overrides some of my plugins scripts that are loaded from their own files...

    I hope you understand me, please excuse my english.

  11. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 7 months ago #

    OK – can you disable WPtouch again?

  12. amit2602
    Member
    Posted 7 months ago #

    DONE :)

  13. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 7 months ago #

    WPtouch does not selectively override other plugins or theme files – it only acts when it receives a mobile request (or the WPtouch preview parameter is passed in the request, which is not the case here). When it does step in, it completely replaces your desktop theme for the active request.

    WordPress plugins often load in an unpredictable order. Sometimes conflicts become apparent only when another, unrelated plugin is activated and changes that order. It looks like that is what happening here.

    Should you want to continue using WPtouch, we would suggest following the usual WordPress debug procedure of disabling your other plugins one at a time to see which might be causing the underlying problem. Our Pro support team are great at helping solve challenges like this.

  14. amit2602
    Member
    Posted 7 months ago #

    Thank you, but what do you except me to do? I DO want to use wptouch and DO want to buy the PRO version, but first I want to see it working perfectly with my other plugins.

    I cant understand how disabling the plugins one by one can help me fix the problem. I know which plugins are not working when I activate WPTouch.. what should I do next? is it the plugins load order?

    If I'll buy the pro version, will your support team fix this problem for me? without telling me to delete some of my plugins that do not work with wptouch?

    thank you again you are great and this plugin is great, just please help me solve this before I spend 50$ on the pro version.

  15. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 7 months ago #

    As mentioned, the problem you're seeing is something that is not caused directly by WPtouch – the plugin simply doesn't make those types of changes. Disabling other plugins will reveal the actual cause of the problem, which will allow you to resolve the issue and be able to keep using WPtouch. Our Pro support team will certainly be happy to help you do so.

  16. amit2602
    Member
    Posted 7 months ago #

    ok, i just tried to disable my plugins one by one. no luck. nothing works. there is no specific plugin that is causing this.

    is there anything else i should try?

  17. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 7 months ago #

    Our Pro support team are probably best suited to help you from here – they'll work with you to review your installation to determine where the issue is occurring, and if a fix is needed in the plugin we can make that adjustment. Of course, if they can't solve the problem for you you'll be welcome to a full refund.

  18. mbrsolution
    Member
    Posted 7 months ago #

    Hello @amit2602 try to change your theme to WordPress default theme. See if that reveals that your problem might be a theme conflict with the plugin.

    Kind regards

  19. amit2602
    Member
    Posted 7 months ago #

    Hi @mbrsolution,
    this is not a good test, becasue the default theme doesnt include any of the plugins. they all in the theme files like "header.php" "functions.php" and "single.php"..

    my problem should be solved within my main theme with all these plugins inserted..

    I think I'll just buy the PRO version and try to fix it with the support team.

    Thank you guys :)

  20. mbrsolution
    Member
    Posted 7 months ago #

    Hi @amit2602 that sounds like a great idea. As @BraveNewCode Inc. stated if they can't fix the problem you will be refunded.

    I wish you all the best.

    Kind regards

Reply

You must log in to post.

About this Plugin

About this Topic