Support » Plugin: WP Swiper » Block alignment and custom classes no longer work

  • Resolved Mark Jansen

    (@mark-jansen)


    Hi,

    me again ๐Ÿ˜‰ It appears that since the last updates block alignment such as alignwide and alignfull no longer take any effect. Also adding a custom classes doesn’t work.

    I think this is related to WP swiper, since other blocks seem to have no issue with this.

    I have tested this with the most recent release.

    • This topic was modified 9 months, 1 week ago by Mark Jansen.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author digitalapps

    (@digitalapps)

    Hi @mark-jansen

    Thanks for your post, I fixed the issue with full and wide alignment, check the version .25.

    Let me know how it works for you.

    Thread Starter Mark Jansen

    (@mark-jansen)

    Hi @digitalapps. Thanks again for the fast response.

    I have updated to 1.0.25 but unfortunately it doesn’t make a difference. I have tested with the block alignment button and als added a custom class.

    <!-- wp:da/wp-swiper-slides {"align":"wide","effect":"fade","tabsData":[{"slug":"slide-1"},{"slug":"slide-2"}],"pagination_type":"fraction","className":"MyCustomClass"} -->

    This is the output in the Code Editor, but it doesn’t reflect it in the outputted HTML both in the block editor and the front-end.

    I’d expect the first

    to contain the classes alignwide and MyCustomClass

    Thread Starter Mark Jansen

    (@mark-jansen)

    Apparently the parser here won’t play nice with the HTML ๐Ÿ™‚

    This is this is the code it generates. And I’d expect the first div to have the classes appended to them

    https://gist.github.com/YourMark/4e461175e1ae55c609b9cabd310c941f

    • This reply was modified 9 months, 1 week ago by Mark Jansen.
    • This reply was modified 9 months, 1 week ago by Mark Jansen.
    Plugin Author digitalapps

    (@digitalapps)

    ah I see how you are using the classes. Version .25 I introduced new custom align classes, but after seeing how you are using these, I released a new version .26. now we are using .alignfull, .alignwide. I didnt add any css rules with that. let me know how it goes.

    PS: for the changes to take effect, you would probably need to reload/resave the page .

    Thread Starter Mark Jansen

    (@mark-jansen)

    I am using the default WordPress core way. So the block alignment option. (which seemed to work before 1.0.24).

    I have now updated to 1.0.26 and it looks like it’s working great again.

    Thanks!

    Thread Starter Mark Jansen

    (@mark-jansen)

    Small update: I’m not using it currently for the WP Swiper plugin, but the custom class under extra CSS classes is not being applied.

    Plugin Author digitalapps

    (@digitalapps)

    nice catch .27 fixes the issue, now you can assign custom classes

    Thread Starter Mark Jansen

    (@mark-jansen)

    Confirmed, this works now.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Block alignment and custom classes no longer work’ is closed to new replies.