• Resolved korynorthrop

    (@korynorthrop)


    I have searched through the plugin Settings page and the help docs, but can’t seem to find any mention or way to set default settings for the Carousel Slider plugin so each new instance of a slider block uses the same desired settings (e.g. Slides Per View, Autoplay, etc.). Is there any way to do this? I looked through the plugin code as well and couldn’t find any hooks that could be targeted in PHP with add_filter().

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Virgildia

    (@virgildia)

    Hi @korynorthrop

    There isn’t a setting for defining default Carousel Slider block settings and it is not something that will be added.

    With Gutenberg blocks, the recommended approach is to create a Carousel Slider block with your desired settings (Slides Per View, Autoplay, etc) and then save it as a Pattern. You can then insert that pattern whenever you need a new carousel, ensuring the same settings are used each time. https://developer.wordpress.org/themes/patterns/introduction-to-patterns/

    WordPress also provides block filters/hooks that can be used but this requires custom development.

    • This reply was modified 6 days, 3 hours ago by Virgildia.
    Thread Starter korynorthrop

    (@korynorthrop)

    Thanks for the reply. I was thinking about using a Pattern if you did not in fact have any built-in hooks that can be used. So, that works fine. I am a developer as well, so I can explore using the block filters if that seems like a better option for my client.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.