March 10, 2018 at 10:21 am
Hi,
I am trying to use Toolset plugins. Whenever I activate their layout plugin, the CSS for Virtue breaks. When I contacted them, they said the problem was with the Virtue Premium theme.
Here is what they said:
“If you analyse the code of that theme, you’ll notice that the templates are very particular.
For example, they never call the mandatory get_header or get_footer, or a loop in general.
Please compare the theme’s files with something like Twenty Seventeen, to see what I mean.
You can pick the “single.php” for example.
Notice how TwentySeventeen calls properly the header and footer functions so other plugins can hook their code in there (for example) but also WordPress itself can work as expected.
I also see in their header.php for example:
– Force plugins to stop stating incorrect errors –
<?php wp_head(); ?>
*/
This is definitely wrong, it will produce issues.
Plugins exactly need that to hook their functions.
If you disable this in a theme – it’s up to the developer to be aware of the consequences:
*Login to see link
Is this correct? Is there any plan to add these hooks (get_header, get_footer) in the future?