You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the plugin displays the Testimonials using the archive page on the users website. This would normally be using the archive.php template file, which would not do a job job of displaying the Testimonials. So we use the template_redirect hook to check for an archive-kbte_testimonials.php in the child and parent themes, if none is found it then uses one inside the plugin.
The problem with this is that I cannot predict all formats of HTML and how the CSS is/should be applied to them. This occasionally results in a badly formatted display (for example, the twentythirteen theme).
I would like to attempt a different strategy, which involves checking for a custom archive-kbte_testimonials.php file in the child/parent theme, and if none are found using the page.php from the theme. This would mean I have to parse the data returned from the query, create the page content html output, and then pass this as a single post to the page.php template.
If possible, this should ensure that the default display of Testimonials always fits in with the users theme.
The text was updated successfully, but these errors were encountered:
Currently, the plugin displays the Testimonials using the archive page on the users website. This would normally be using the archive.php template file, which would not do a job job of displaying the Testimonials. So we use the template_redirect hook to check for an archive-kbte_testimonials.php in the child and parent themes, if none is found it then uses one inside the plugin.
The problem with this is that I cannot predict all formats of HTML and how the CSS is/should be applied to them. This occasionally results in a badly formatted display (for example, the twentythirteen theme).
I would like to attempt a different strategy, which involves checking for a custom archive-kbte_testimonials.php file in the child/parent theme, and if none are found using the page.php from the theme. This would mean I have to parse the data returned from the query, create the page content html output, and then pass this as a single post to the page.php template.
If possible, this should ensure that the default display of Testimonials always fits in with the users theme.
The text was updated successfully, but these errors were encountered: