Carousel for mobile version.
-
I want to display two blog post in my blog carousel for mobile version. How to setup?
Attachments:
You must be
logged in to view attached files.
Hello,
Add two Blog posts elements and configure different categories. If I misunderstood you, please clarify.
Best Regards
i mean, a blog carousel function can only show 1 post on the mobile version, i want to show 2 blog post on the mobile version screen.
Hello,
Add this code to the functions.php of the child theme.
add_filter(
'woodmart_blog_shortcode_custom_sizes',
function() {
return array(
'desktop' => 4,
'tablet_landscape' => 4,
'tablet' => 3,
'mobile' => 2,
);
}
);
Best Regards
I am sorry, the code not working.
Please, send us a screenshot where you added this code and a link where we can test it.
Maybe I explain that the mobile version on the desktop can display 2 articles, but only one article can be displayed on the mobile phone.
Attachments:
You must be
logged in to view attached files.
Sorry, but we can’t see your website now to check this https://gyazo.com/a823c69917e28aff54a721ca189eb56d
Sorry, our site is not launch, please try to paste link in your browser directly.
Yes, the code works and now you have two items per view on mobile devices. We tested it with real device.
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘Carousel for mobile version.’ is closed to new replies.