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
I'm loading a page with get_post() combined with apply_filters() into my frontpage of a custom theme, but when I load Otter's slider block all of the images are underneath eachother.
How to reproduce:
Make page with a slider from Otter
Load page in frontpage with get_post
Expected behaviour:
A slider like in the gutenberg
Current behaviour:
All of the images are shown underneath eachother
Reference:
Technical info
WordPress version: 6.1.1
Plugin version: 2.1.3
I tried adding this to my frontpage (index.php):
use ThemeIsle\GutenbergBlocks\CSS as OtterBlockCSS;
$css = new OtterBlockCSS\Block_Frontend();
$css->enqueue_styles("18", true)
Activity
joey-kwl commentedon Nov 19, 2022
I found a workaround. Create a Post (not a page but a post) with a slider and you can publish it as private. The plugin will load all the css/js.
HardeepAsrani commentedon Nov 25, 2022
Hey @chineseouchie,
Could you send us the custom theme that you've made so we could reproduce on it? Thank you!
joey-kwl commentedon Nov 25, 2022
@HardeepAsrani I have added you to a temporary repo. If you go into the /dist folder you will see a zip and instructions file
HardeepAsrani commentedon Dec 1, 2022
Hey @chineseouchie,
In the index.php file, I used the get_posts function to make a loop like:
And it seems to work properly with the slider. Am I missing something you are doing?