Home › Forums › Pro Support › WPSP Pro 1.0 Beta Testing
- This topic has 44 replies, 16 voices, and was last updated 2 years, 11 months ago by
thaice20.
-
AuthorPosts
-
April 6, 2019 at 1:20 am #8571
Jamal
ParticipantAny way to auto scroll the carousel? Thanks
April 7, 2019 at 1:43 am #8580Jamal
ParticipantAny way to auto scroll the carousel? Thanks
Dug around and finally got something working. I added
'autoplay' => 'true',
to core file. I feel like i got a superpower 🙂Now how to do it without editing core file?
April 7, 2019 at 4:48 pm #8585Tom
KeymasterYep! There’s a filter:
add_filter( 'wpsp_carousel_args', function( $args ) { $args['autoplay'] = true; return $args; } );
Let me know if that does the trick 🙂
April 8, 2019 at 9:47 am #8608Jamal
ParticipantThere was never a doubt its gonna work, thank you very much Tom. WPSP is another beast of a plugin, great job man !
April 8, 2019 at 4:50 pm #8619Tom
KeymasterThank you!
April 20, 2019 at 10:00 pm #8861Callista
ParticipantHi Tom,
You mentioned that there is a filter to turn the arrows on. Can you point me to it?
Thank you!
Have a great day!
CallistaApril 21, 2019 at 3:37 pm #8875Tom
KeymasterGive this a shot:
add_filter( 'wpsp_carousel_args', function( $args ) { $args['arrows'] = true; return $args; } );
April 22, 2019 at 7:55 am #8887Callista
ParticipantThanks, Tom.
I’m not sure I’m adding it in the right place. I tried adding it as a code snippet and that didn’t do anything. I also tried adding it right after the php I added in a GP element (hook) to limit the carousel to posts with the same category as the current post. That also had no effect. I blame my lack of knowledge of php.
Sorry to keep bugging you.
Have a great day!
CallistaApril 22, 2019 at 5:39 pm #8897Tom
KeymasterHmm, it should work in Code Snippets.
Can you try this?:
add_action( 'after_setup_theme', function() { add_filter( 'wpsp_carousel_args', function( $args ) { $args['arrows'] = true; return $args; } ); } );
April 23, 2019 at 7:47 am #8914Callista
ParticipantHi Tom,
It was working after all, but hidden by some CSS (slick-min.css). The arrows are not super attractive, but I’ll keep fiddling with it.
Thanks!
CallistaApril 23, 2019 at 6:28 pm #8934Tom
KeymasterNo problem 🙂
May 7, 2019 at 11:29 am #9188sebastien
Participanthey,
Still about the arrows, I would like to replace the arrows (no more request) by some custom content.
Is there a way to code somewhere.. something like that: arrows = customcontent ? =)
thanksMay 7, 2019 at 1:00 pm #9195sebastien
ParticipantI want report an issue I’ve found with style “Overlay – Style 1”.
it only works with post type: Post (from WP core).
If I change by Pages (from WP core) or any other Custom Post Type, then issues happens:
1) with Pages: only one post appear (even if I param X columns & number/page).
2) with custom Post: all post display at the expected position. but the hover effect doesn’t work. Even if the background color change as expected, the text content/others meta is sticky (never desappears/appears).So I had to switch to style Overlay – Style 2 which works perfectly with any Type Post.
Do you have any quick CSS tricks that would fix this issue? =)May 7, 2019 at 1:14 pm #9197sebastien
ParticipantEDIT: after few responsiv tests (by changing the screen size), the Overlay – Style 2 doesn’t display well:
* the content once hovered is out of the image.
* in some positions, the content still is still displayed=/
May 8, 2019 at 6:31 am #9223sebastien
Participantmy solution, was stop to use any cards style, use the “none” and then build my own CSS…
-
AuthorPosts
- You must be logged in to reply to this topic.