View As button issue cont.

Home Forums Calendar Products Events Calendar PRO View As button issue cont.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1080097
    Chris
    Participant

    Hi there

    Further to this post:

    Clicking "view as" doesn't invoke the drop down

    …I’m still running into the same issue getting the “view as” dropdown to work. (Same site info, etc.)
    As Brook suggested, I placed the code:
    jQuery('a[href*=#]').off('click');
    into the footer, but still not getting the “view as” functionality to work on the events page(s) I’m not sure if I’m adding the javascript correctly, but I think so.

    Adding the javascript in the browser console does indeed get the button to work again, of course until reload is hit, then it’s back to the same old issue.

    Can you help to see if I’ve added it correctly to the footer.php file… just before the closing body tag? I’m not sure what else would be preventing it from working.
    thanks! C

    #1080438
    Josh
    Participant

    Hey Chris,

    Thanks for following up here.

    Would you mind providing the code that you’re currently using to include that particular js element onto your site?

    Thanks!

    #1080827
    Chris
    Participant

    Hi Josh

    Thanks… Yes, I placed this code:
    <script type="text/javascript" src="http://ccfinstall.wpengine.com/wp-content/themes/Canvas/event-menu-fix.js"></script>
    into the footer.

    And the corresponding file “event-menu-fix.js” is located as indicated in the source file path, with this code in it:
    jQuery('a[href*=#]').off('click');
    That it!
    https://www.dropbox.com/s/q5mo4tao6007dqt/Screenshot%202016-02-23%2011.56.26.png?dl=0

    It’s been driving me mad getting to the bottom of this, and I need to keep the “Page Builder” plugin by Pootlepress because the client and I need that for design and layout.

    Thanks for any help you can muster.
    Chris

    #1081551
    Josh
    Participant

    Hey Chris,

    Try adding the following to your theme’s functions.php file:

    https://gist.github.com/BeardedGinger/2f764dbcc05c9863d3ac

    and change the js file to be:

    https://gist.github.com/BeardedGinger/12f6b5e30325928486e3

    You may have to modify the URL for the wp_enqueue_script to get directly to the js file. You can check the source to ensure it’s getting loaded correctly by utilizing the browsers developer tools.

    Let me know if this helps.

    Thanks!

     

    #1084128
    Chris
    Participant

    Ugh, thanks for the assistance. It didn’t work. I ended up jumping ship and abandoned the free plugin, pootlepress page builder, for something else. No conflict now, and no need for extraneous tentative code.

    I appreciate your willingness to work through this with me… But the bleeding edge was too painful in the end. 🙂

    Thanks again. Cheerio for now!
    Chris

    #1084283
    Josh
    Participant

    Hey Chris,

    No problem. I’m sorry we weren’t able to get to the bottom of this particular conflict for you. Hopefully we’ll be a good fit for you on a future project.

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘View As button issue cont.’ is closed to new replies.