Support

Home Forums Event Espresso Premium Table View Addon

Table View Addon

Posted: May 1, 2018 at 2:07 pm


Drio LLC

May 1, 2018 at 2:07 pm

Hello, my table add on is not displaying correctly. I see in the css that the class sidebar is added to the <tr> class. I didn’t see in the plugin where this class is added and I have an issue with the existing css for the .sidebar on the theme.


Josh

  • Support Staff

May 1, 2018 at 3:01 pm

I’m not aware of a .sidebar class that’s added to the table view add-on template. May I ask can you post a link to the page in question so we can investigate?


Drio LLC

May 2, 2018 at 8:13 am

Here is the page:
http://capitalwineschool.flywheelsites.com/wset-classes/


Josh

  • Support Staff

May 2, 2018 at 1:57 pm

I see no table on that page, is there another page you can link to?


Drio LLC

May 2, 2018 at 1:59 pm

Sorry, I had to take it down, but it’s back on that page. You should be able to see it now!


Josh

  • Support Staff

May 2, 2018 at 3:10 pm

That’s really strange, there must be some JavaScript running on that page (either from the theme or another plugin) that’s manipulating the DOM there.

Here’s how to override it:

You add the following code to a site specific plugin, then activate the plugin.

add_action(
    'wp_enqueue_scripts', 
    'my_add_inline_script_override_avada', 
    40
);
function my_add_inline_script_override_avada() {
    $custom_js = 'jQuery(document).ready(function($){
      jQuery(".espresso-table tr").removeClass("sidebar").css("display","table-row");
    });';
    wp_add_inline_script('espresso_events_table_template', $custom_js);
}


Drio LLC

May 7, 2018 at 9:10 am

Thank you, that did it!

The support post ‘Table View Addon’ 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