Bootstrap not parsing / applying within WooCommerce
-
Hi,
I am using a local/dev environment, so I can’t paste a URL example, but I’d like to explain the issue I’ve just found using the latest WordPress/WooCommerce and your plugin version.
I’m creating reusable blocks (standard Gutenberg blocks) e.g. those that can be found using: /wp-admin/edit.php?post_type=wp_block
And then calling them within the header.php & footer.php e.g.
<?php $reuse_block = get_post(99); $reuse_block_content = apply_filters( 'the_content', $reuse_block->post_content); echo $reuse_block_content; ?>
This works great sidewide using your Bootstrap editor/code when creating resuable elements, the only issue I am facing is with your Bootstrap-created elements when specifically viewing a WooCommerce category index/page e.g. ‘/product-cat/running-shoes/
I’m finding that the contents of the block editor e.g. images/ paragraphs etc. get displayed, but NONE of your Bootstrap code, so everything looks unfortmatted/not right at all! When inspecting the source code, the elements no longer contain any Bootstrap markup and has fully stripped the code your plugin produces.
Can you assist/investigate further please and help with a fix?
- The topic ‘Bootstrap not parsing / applying within WooCommerce’ is closed to new replies.