Archived topic
Conflict generatepress and The Events Calendar (archive tags)
7 replies · Started by Hans-Gerd on December 30, 2020
Hello,
I have relaunched the website on generatepress yesterday. I really like the theme.
However, we currently still have some layout issues related to the archive pages (tag):
If I set the option "Show posts in columns" to 2 in the lower area for columns under Your customisations for ▸ Layout > Blog, the layout is destroyed on the archive pages with keywords. For exmaple please see here on our development environment: http://test4.haurand.com/tag/belgien/page/14/.
Same
The cause is probably a conflict with the plugin "The Events Calendar". On the tag archive pages, both posts and events are shown with the keyword. When I activate Health Check, the appearance is ok until I activate the plugin "The Events Calendar".
To rule out a cache problem, we first disabled WP Rocket and even deleted the corresponding folder on the server to be on the safe side. In addition, of course, we also tested this in another browser for safety's sake, to rule out a problem with the browser cache.
The appearance worked perfectly with the previously used theme Enfold. We have also tested this again here in Health Check's troubleshooting mode.
Screenshots below:
https://ibb.co/8zf9Q68
https://ibb.co/bbBVjZB
Thanks for assistance and best regards,
Hans-Gerd
Hi there,
Try adding this:
add_filter( 'generate_blog_columns', function( $columns ) {
if ( ! is_singular() && 'tribe_events' === get_post_type() && ! is_post_type_archive( 'tribe_events' ) ) {
$columns = true;
}
return $columns;
} );
Let me know if that fixes it or not :)
Hi Tom,
seems to work really well. We will continue to test it on different devices and get back to you if there are any issues.
A big thank you.
Best regards and all the best for 2021
Hans-Gerd
Thank you! You too :)
Hi Tom,
I am very sorry if I need to open the topic again:
I have now tested this further and I have noticed that when using the function, the list of events is no longer displayed correctly, please see here on our development environment:
http://test4.haurand.com/events/kategorie/terminanzeige/
Best regards,
Hans-Gerd
Can you try the updated function above?
Let me know :)
Hi Tom,
seems to work perfectly now. We will continue to test it on different devices and get back to you if there are any issues. If there are no more issues related to this topic, then I will mark the topic as resolved shortly.
Thank you very much.
Best regards
Hans-Gerd
Glad I could help! :)