Home › Forums › Calendar Products › Events Calendar PRO › Disable zooming from scroll (again)
- This topic has 2 replies, 3 voices, and was last updated 9 years, 11 months ago by
Support Droid.
-
AuthorPosts
-
April 21, 2016 at 10:14 am #1105512
Eric
ParticipantHi There,
I know there have been several posts regarding this issue, including this recent one: https://theeventscalendar.com/support/forums/topic/google-maps-disable-scroll/ . There is an older thread that had a working solution for this: https://theeventscalendar.com/support/forums/topic%2Fturn-off-auto-scrolling-on-google-maps/?source=tri.be&q=/support/forums/topic/turn-off-auto-scrolling-on-google-maps/
However as of 4.0+, that no longer will work. I am familiar with the themer’s guide and how the templating system works. My question is, does that same theming process work for the files that are held within /admin-views folder, and also what about files in resources/js?
The reason I ask is… I have duplicated the /admin-views/tribe-options-general.php, which contains all the options settings, including stuff for the google maps like the zoom level. But when I added additional fields for the scrollwheel zoom, I do not see them showing in my wordpress admin. I even tried changing the text label of the current existing options, just as a test, and I don’t see any changes.
So it’s making me wonder if the themer’s guide template system does not work for files inside the admin-views folder? I am also curious about the resources/js files, because I know I would need to modify embedded-map.js to add scrollwheel: false, to the intialization.
Thanks.
April 21, 2016 at 11:12 pm #1105782Brook
ParticipantHowdy Eric,
I would love to help you with this. That’s a great question, we could certainly make the guide a little more specific here.
No, it is not possible to override the admin-views folder. We are however considering making this possible, at the very least we would like to make all admin-views that are used in Community Events plugin overridable, if not all of them in general.
However, it is possible to add your settings to the filter ‘tribe_general_settings_tab_fields’. You’ll note at the very end of tribe-options-general.php it runs this filter, and passes the $generalTabFields array. So you can add your items to that array via the filter.
You can also use the WP script enqueue/dequeue system to override and JavaScript, including ours. Those two links elaborate quite a bit on the topic.
Does that answer your question? Are you able to do your customization now?
Cheers!
– Brook
May 6, 2016 at 9:35 am #1111544Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Disable zooming from scroll (again)’ is closed to new replies.
