How to Use Slider Triggers in WordPress with Cornerstone

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 22

  • @moneybernd2003
    @moneybernd2003 3 месяца назад +2

    wonderfully done josh! very helpful for future projects.

  • @michaelpiercy
    @michaelpiercy 3 месяца назад +1

    Really useful! Keep 'em coming! ❤

    • @yourthemeco
      @yourthemeco  3 месяца назад +1

      Thank-you Michael and will do!

  • @dlukefinch
    @dlukefinch 3 месяца назад +1

    This is very cool. Thanks Josh!

  • @larrybradshaw992
    @larrybradshaw992 3 месяца назад +1

    Thank you! Very useful!!!

  • @bogometanftmetaverse6733
    @bogometanftmetaverse6733 3 месяца назад +1

    Thank you 🎉

  • @bill-hodgson
    @bill-hodgson 3 месяца назад +2

    So useful

  • @chrisk9667
    @chrisk9667 3 месяца назад +1

    As always, Thanks Josh. Very much appreciated 😊

  • @Schauk
    @Schauk 3 месяца назад +2

    wow

  • @SeanHart-y7e
    @SeanHart-y7e 3 месяца назад

    Is there a way to change the default state of the element a user clicks on? for the sake of better accessibility.

    • @yourthemeco
      @yourthemeco  3 месяца назад

      We have color controls called "Interaction" that handle the hover look and feel. We place the class x-active on any toggleable Element that is currently active. Besides that I think you can target the styling through $el:active {} in custom css. Is that what you were referring to?

  • @donovansmith7310
    @donovansmith7310 23 дня назад

    Hey Josh, how would we keep the column one hover state constant until they hover another column?

    • @yourthemeco
      @yourthemeco  22 дня назад

      Hey Donovan! Check out "data-x-slide-goto-keep-active" in this docs article: theme.co/docs/sliders#custom-attributes

    • @donovansmith7310
      @donovansmith7310 22 дня назад +1

      @@yourthemeco As always Josh, you are seriously the best.

  • @marchydecreative
    @marchydecreative 3 месяца назад

    How do we make the "hover color" stay on when that slide is selected? So that if you're looking at slide 3, slide 3's trigger has the background color shown

    • @yourthemeco
      @yourthemeco  3 месяца назад

      This is possible with our Slider API (theme.co/docs/slider-api) checking the current slide on the slider and adding the class "x-active" if it is the current slide is also the goto trigger. We're considering adding this as the default behavior to our sliders as well. If you use the Element "Slider Pagination" this could possibly achieve what you are trying to do. Thanks for the feedback.

  • @Mellenology
    @Mellenology 3 месяца назад

    Josh, thoughts on how to make it hover on desktop and tablets, but click activated on mobile? The hover doesnt work if they scroll

    • @yourthemeco
      @yourthemeco  3 месяца назад

      Currently the trigger is setup only for one event, but we can set up a special event trigger for touch devices.