Support

Home Forums Event Espresso Premium EE4 Events Grid View – Works From Menu choice but not with short code in page

EE4 Events Grid View – Works From Menu choice but not with short code in page

Posted: December 22, 2016 at 5:57 pm

Viewing 5 reply threads


Dave Renshaw

December 22, 2016 at 5:57 pm

I’m trying to get the Grid view to work normally when using a short code on a page.

The menu choice works fine:
http://shiptic.com/?page_id=1540

But the short code version displays the hover info below the image:
http://shiptic.com/?tour=tall-ship-lianas-ransom

Any ideas on how to get the hover to work as per the Grid View Menu choice (Text on image hover)?


Josh

  • Support Staff

December 22, 2016 at 6:13 pm

Those shortcodes like the ones for the grid view really only work if they’re added to page content. It looks like in that tour page you’re using a page builder. If that’s the case, can you put the short code in the main tour page content?


Dave Renshaw

December 22, 2016 at 6:47 pm

It works good in a new page:
http://shiptic.com/?page_id=1540

Any thoughts on how to get it working in a page builder? This part is integral to the user’s theme click flow.


Josh

  • Support Staff

December 23, 2016 at 8:37 am

One way would be to load the scripts on every page of the front end of the page by adding a custom function to your theme or a little plugin:

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

If you prefer to conditionally load those scripts and styles only where needed, you can add additional conditional checks to the above code.


Dave Renshaw

December 23, 2016 at 12:38 pm

Hi Josh, that worked perfectly 🙂

I followed the “function plugin” link you offered and made my first plugin. I’m feeling pretty good about this fix and I was educated a tiny bit long the way too.

Thanks again!


Josh

  • Support Staff

December 23, 2016 at 1:10 pm

Way to go!

Viewing 5 reply threads

The support post ‘EE4 Events Grid View – Works From Menu choice but not with short code in page’ 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