conexionagenciadigital

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Events Calendar causing error with CM Ad Changer plugin #940293

    Hi 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,

    in reply to: Events Calendar causing error with CM Ad Changer plugin #940287

    Hello 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?

    in reply to: Events Calendar causing error with CM Ad Changer plugin #940233

    Hi there Geoff, I’ll be checking this today and will let you know!

    Thanks,

    in reply to: Events not showing on my theme's mobile version #906421

    Hello 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?

Viewing 4 posts - 1 through 4 (of 4 total)