Home › Forums › Calendar Products › Events Calendar PRO › View As button issue cont.
- This topic has 5 replies, 2 voices, and was last updated 10 years, 1 month ago by
Josh.
-
AuthorPosts
-
February 22, 2016 at 11:47 am #1080097
Chris
ParticipantHi there
Further to this post:
…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! CFebruary 22, 2016 at 9:22 pm #1080438Josh
ParticipantHey 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!
February 23, 2016 at 9:02 am #1080827Chris
ParticipantHi 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=0It’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.
ChrisFebruary 24, 2016 at 9:43 am #1081551Josh
ParticipantHey 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!
March 1, 2016 at 6:02 pm #1084128Chris
ParticipantUgh, 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!
ChrisMarch 2, 2016 at 6:29 am #1084283Josh
ParticipantHey 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!
-
AuthorPosts
- The topic ‘View As button issue cont.’ is closed to new replies.
