Be sure your theme directly or indirectly fires the “wp_head” and “wp_footer” actions. Is your theme a block theme (.html templates) or a classic theme (.php templates)? Some older plugins might not be fully block theme compatible.
If you have trouble with compatibility with a particular plugin, the solution depends on what that plugin is expecting from a theme in order to work. You would either need to examine its source code or ask the plugin’s dev for advice.
Thread Starter
dilhan
(@dilhan)
Thanks for the reply. wp_head and wp_footer included in the header and footer like below.
header.php
<?php wp_head(); ?>
</head>
<body>
<?php wp_body_open(); ?>
footer.php
</footer>
<?php wp_footer(); ?>
</body>
</html>
Theme is a classic theme with .php templates. The plugins I tested are not old, I’m sure it’s something to do with my theme because I tested the same plugin with official wp themes and they work very well with themes like 2023.
Have you made use of common template tags like the_title(); the_content();? They contain filters that plugins frequently use to achieve their functionality.
Plugins do things in many ways. If something isn’t working as expected, the cause will be as varied as plugins vary. You’d need to take each on a case by case basis. For the social buttons plugin for example. If it’s not working for you, what to look for depends on where you’re trying to add the buttons. The plugin uses various techniques depending on where on the page the buttons should appear.
Try to determine from its source code how it injects buttons at the desired location and ensure your theme accommodates that technique. If you have difficulty deciphering the plugin’s code, you could seek guidance from its devs through its dedicated support forum.