Home › Forums › WoodMart support forum › Changing the infobox carousels items’ numbers per row
Changing the infobox carousels items’ numbers per row
- This topic has 7 replies, 2 voices, and was last updated 3 years, 10 months ago by
Elise Noromit.
-
AuthorPosts
-
October 25, 2021 at 4:19 pm #327490
edaphonParticipantHello
I would like to change the infobox carousels items’ numbers per row at main page of edapro.ch –> “Anwendungsgebiete Komposttee”
I found an old thread about it here:
https://xtemos.com/forums/topic/information-box-carousel-mobile-view/But I couldnt figure out where to fill the code snippet from the thread, in global CSS or JS? Can you help me out?
Thanks and best
LorenzOctober 25, 2021 at 11:34 pm #327524
Elise NoromitMemberHello,
Please add this code to the functions.php file of the child theme:
add_filter('woodmart_info_box_shortcode_custom_sizes', function() { return array( 'desktop' => 6, 'tablet_landscape' => 4, 'tablet' => 3, 'mobile' => 1, ); } );
This code would apply to all the Infobox carousels.
Best Regards
October 28, 2021 at 6:58 pm #328293
edaphonParticipantHi
Thanks for your response.
I added this code to the functions.php of child theme and also parent theme (wp-content>themes>woodmart>functions.php), but it seems that it does not react.Can you figure out why?
Thanks and best
LorenzOctober 28, 2021 at 9:36 pm #328321
Elise NoromitMemberHello,
Please try this one:
add_filter('wd_info_box_shortcode_custom_sizes', function() { return array( 'desktop' => 6, 'tablet_landscape' => 4, 'tablet' => 3, 'mobile' => 1, ); } );
Ad the code to functions.php file of the child theme
Best Regards
October 29, 2021 at 11:05 am #328437
edaphonParticipantThanks, I added it to the functions.php. But still, it does not work :/
October 30, 2021 at 10:48 am #328633
Elise NoromitMemberHello,
You have inserted in the Theme Settings > Custom JS, you need to insert in the functions.php of the child theme, I have inserted already, please delete the code from the Theme Settings. https://gyazo.com/5409db267091b4889bd21b7dbffed58b
Best Regards
October 30, 2021 at 4:32 pm #328690
edaphonParticipantHi
Thank you a lot. I added the code to the functions.php on FTP client site and additonally in Custom JS. Now after adding it at wordpress site it is working perfectly.
Is it possible to change these settings individually and not globally? In this case, just for the carousel at edapro.ch –> “Anwendungsgebiete Komposttee”.
Best
LorenzOctober 30, 2021 at 8:26 pm #328705
Elise NoromitMemberHello,
Unfortunately, this code would be applied to all the inbox carousels and it is not possible to set the different settings for different inbox carousels.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register