Hi @trishahdee
Thanks for reaching out. I will get a local site setup with Picostrap next week and give this a test. In the meantime please could you send a link to an example or provide me with a little more detail around this bit “and then your blocks don’t work right on the frontend“? In what way don’t they work right? Are they displaying but not styled? Not displaying at all? etc
This will help me debug and find the right solution for you.
Thanks
Miles
With the Tabs Block, the first two tabs work fine but when I try to add a third the ID numbers are different between the tab link and the content. With the Accordion Block, they open but don’t close. I can’t get OffCanvas to work at all as it won’t show up on the page.
I hope this is enough information to help you.
Hi @trishahdee
Ah ok. When including the All Bootstrap Blocks CSS/JS there is some custom JS that gets added to make all of the Bootstrap JS functionality work in WordPress. I think if you disable the All Bootstrap Blocks CSS/JS (rely on the Picostrap for styling etc) then add the following into your functions.php file to include just the additional JS that is needed:
function areoi_enqueue_custom_scripts() {
wp_enqueue_script(
'bootstrap-extra',
AREOI__PLUGIN_URI . 'assets/js/bootstrap-extra.js',
array('jquery'),
null,
true
);
}
add_action('wp_enqueue_scripts', 'areoi_enqueue_custom_scripts');
Please can you give that a go and see if it resolves your issue?
Thanks
Miles
Hi @trishahdee
I haven’t had any more follow up on this ticket, hopefully that means it’s resolved so I’m going to mark this as complete.
Feel free to open the ticket back up if the problem continues.
Thanks
Miles