Support

Home Forums Event Espresso Premium [ESPRESSO_GRID_TEMPLATE] is not working properly

[ESPRESSO_GRID_TEMPLATE] is not working properly

Posted: December 29, 2017 at 6:36 pm


saborlatino

December 29, 2017 at 6:36 pm

The code is not loading the grid properly on my website. I don’t know what I’m doing wrong, I need a little help here.

The code “[ESPRESSO_GRID_TEMPLATE]”is loaded all the way to the bottom of the link.
https://saborlatinony.com/events/


Josh

  • Support Staff

December 29, 2017 at 8:05 pm

Hi there,

I checked your website and it appears that the shortcode wasn’t placed into the main content section of the page. The scripts and styles will not load if that’s the case. You can force the styles to load by adding the following code to a functions plugin:

add_action( 'wp_enqueue_scripts', 'my_add_ee_grid_assets' );
function my_add_ee_grid_assets() {
	if ( 
          class_exists( 'EES_Espresso_Grid_Template' )  
          && is_page('events') 
        ){
		add_action( 'wp_enqueue_scripts', array( 
			'EES_Espresso_Grid_Template', 
			'enqueue_scripts' 
		), 11 );
	}
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

The support post ‘[ESPRESSO_GRID_TEMPLATE] is not working properly’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 1 year, 6 months ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!