Home Forums WoodMart support forum Changing the infobox carousels items’ numbers per row

Changing the infobox carousels items’ numbers per row

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #327490

    edaphon
    Participant

    Hello

    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
    Lorenz

    #327524

    Hello,

    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

    #328293

    edaphon
    Participant

    Hi

    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
    Lorenz

    #328321

    Hello,

    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

    #328437

    edaphon
    Participant

    Thanks, I added it to the functions.php. But still, it does not work :/

    #328633

    Hello,

    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

    #328690

    edaphon
    Participant

    Hi

    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
    Lorenz

    #328705

    Hello,

    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

Viewing 8 posts - 1 through 8 (of 8 total)