SOLVE THEME INCOMPATIBILITIES
As everybody knows, WordPress have thousands of different themes, and all them work in a different way.
Chronosly fits in the vast majority of WordPress themes. Nevertheless, some of them may cause some issues and misfunctions.
In order to deal with this recurrent comment generator (since Chronosly v1.5) we found a solution to this problem by using two different approaches:
1- FAST, no programming needed.
2- ADVANCED, for developers or users with programming skills.
1- FAST, NO PROGRAMMING NEEDED
Basically, we created an option in Chronosly settings that solves this issue. There is a button that automatically generates a "theme structure".
This "theme structure" creates new page:
and inserts the Chronosly shortcodes absolutely adapted to client theme. This new page uses client template with theme based in client pages.php.
So, with this new option, you only need to click "Create Base" button and new page will be created with your theme and design already applied.
You can find it in Chronosly > Settings > Themes
You just need to click on the "Create Base" button to solve the problem.
2- ADVANCED, FOR DEVELOPERS OR USERS WITH PROGRAMMING SKILLS
This other approach is tricky, but also more "clean" from a developer point of view.
You can add the theme files in each template views that are located in /templates/ folder.
Chronosly has 9 template views to be precise, but you can only overwrite those files that you want and apply headers, sidebars, html that your theme has in particular.
Note : If 9 theme files are the same for all, you only need to add a chronosly.php file with theme layout you want to apply.
Tip: With Chronosly you can layout each theme pages differently adding sidebars, titles and whatever you want.
If you want to edit those views we only need the view name, this way we can create our own template php file in our active theme directory.
- archive-chronosly.php for main event list view
- single-chronosly.php for single event view
- calendar-chronosly.php for calendar view
- archive-category-chronosly.php for category list view
- single-category-chronosly.php for single category view
- archive-organizer-chronosly.php for organizers list view
- single-organizer-chronosly.php for single organizer view
- archive-places-chronosly.php for places list view
- single-places-chronosly.php for single place view
All those files must contain one of yours theme template structure without the loop process and changed for the following source code:
<?php echo do_shortcode("[chronoslybase]"); ?>
With this code Chronosly will know which content must be inserted depending on your settings.
Shortcodes can also be used, e.g., shortcode [chronosly] with filter parameters that you wish. There is a downside, because Chronosly base will be filtered by the parameter you have used with the shortcode. If you want a non filtered content, we suggest to create a new page with the same shortcode without filters.
So, this ADVANCED approach is quite much more "powerful". And for future theme modifications you just need to adapt those Chronosly pages that you added.