Home Forums WoodMart support forum Carousel for mobile version.

Carousel for mobile version.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #97460

    wonglui
    Participant

    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.
    #97503

    Hello,

    Add two Blog posts elements and configure different categories. If I misunderstood you, please clarify.

    Best Regards

    #97510

    wonglui
    Participant

    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.

    #97539

    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

    #97973

    wonglui
    Participant

    I am sorry, the code not working.

    #98018

    Artem Temos
    Keymaster

    Please, send us a screenshot where you added this code and a link where we can test it.

    #98108

    wonglui
    Participant

    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.
    #98135

    Artem Temos
    Keymaster

    Sorry, but we can’t see your website now to check this https://gyazo.com/a823c69917e28aff54a721ca189eb56d

    #98146

    wonglui
    Participant

    Sorry, our site is not launch, please try to paste link in your browser directly.

    #98149

    Artem Temos
    Keymaster

    Yes, the code works and now you have two items per view on mobile devices. We tested it with real device.

    #98162

    wonglui
    Participant

    Thank you very much.

    #98173

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘Carousel for mobile version.’ is closed to new replies.