Forum Replies Created
-
AuthorPosts
-
February 5, 2015 at 10:09 am in reply to: Events Calendar causing error with CM Ad Changer plugin #940293
conexionagenciadigital
ParticipantHi again Geoff,
Nevermind my last post, that file belongs to a plugin we are not longer using. I found the following code on my theme’s functions.php file:
$http = 'http'; if (is_ssl()) $http = 'https'; wp_register_script('et-googlemap-api', $http . '://maps.googleapis.com/maps/api/js?sensor=true', '3.0', true);This is inside a function being called with the “init” action. How can I dequeue the script just for the Events page?
Thanks,
February 5, 2015 at 9:48 am in reply to: Events Calendar causing error with CM Ad Changer plugin #940287conexionagenciadigital
ParticipantHello Geoff,
As you pointed out, the problem is that the Google Maps API is being called twice. Once by the CM ad changer plugin and the other by The Events Calendar. Can I dequeue the one from Events Calendar? I found the following code in module-map.php
class TB_Map_Module extends Themify_Builder_Module { function __construct() { parent::__construct(array( 'name' => __('Map', 'themify'), 'slug' => 'map' )); add_action( 'wp_enqueue_scripts', array( $this, 'load_map_script' ) ); } function load_map_script() { //Register map scripts wp_register_script( 'themify-builder-map-script', themify_https_esc( 'http://maps.google.com/maps/api/js' ) . '?sensor=false', array(), false, true ); } }How can I dequeue the script?
February 5, 2015 at 7:36 am in reply to: Events Calendar causing error with CM Ad Changer plugin #940233conexionagenciadigital
ParticipantHi there Geoff, I’ll be checking this today and will let you know!
Thanks,
conexionagenciadigital
ParticipantHello Brian,
I managed to create a new Events page for mobile (/events-mobile) where I use a page template and tribe_get_events() function to get a list of upcoming events. This is working Ok now.
The problem is, when I click on a single event, it takes me to …/events/this-event-name but I get the same problem, the theme doesn’t find the right file. Do you have any ideas to get this to work?
-
AuthorPosts
