Support

Home Forums Event Espresso Premium Grid View Add-On not working properly

Grid View Add-On not working properly

Posted: May 23, 2018 at 4:20 pm

Viewing 2 reply threads


brandonsmartin

May 23, 2018 at 4:20 pm

The Grid View on this page (https://www.avenuefive.com/workshops/) is not showing properly. Why? It seems to be missing JS or CSS. How to verify and ensure they get loaded?


Tony

  • Support Staff

May 24, 2018 at 7:11 am

Hi there,

Have you placed those shortcodes directly in the WP editor, page editor or a template file?


Josh

  • Support Staff

May 24, 2018 at 7:23 am

Hi brandonsmartin,

Usually whenever this happens it’s the result of a theme conflict. I checked, and it’s also missing CSS and JS for the table template too.

You can add the following code to your child theme’s functions.php file to ensure they get loaded:

add_action(
    'wp_enqueue_scripts', 
    'my_force_ee_shortcode_templates_assets',
    11 
);
function my_force_ee_shortcode_templates_assets() {
    wp_enqueue_style(
        'espresso_events_table_template',
        EE_EVENTS_TABLE_TEMPLATE_URL . 'css' . DS . 'espresso_events_table_template.css'
    );
    wp_enqueue_script(
        'espresso_events_table_template',
        EE_EVENTS_TABLE_TEMPLATE_URL . 'scripts' . DS . 'espresso_events_table_template.js',
        array('jquery'),
        EE_EVENTS_TABLE_TEMPLATE_VERSION,
        true
    );
    wp_enqueue_style(
        'espresso_grid_template',
        EE_GRID_TEMPLATE_URL . 'css' . DS . 'espresso_grid_template.css'
    );
    wp_enqueue_script(
        'espresso_grid_template',
        EE_GRID_TEMPLATE_URL . 'scripts' . DS . 'espresso_grid_template.js',
        array('jquery'),
        EE_GRID_TEMPLATE_VERSION,
        true
    );
}

Alternatively, you can add the above to a functions plugin.

Viewing 2 reply threads

The support post ‘Grid View Add-On 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.

Event Espresso