Adding A Video In The Multirow or multicolumn Section in Dawn Theme

The final output of our today’s journey! You can follow video guide as well. You might find some issues like blurry poster, not looping, watch this video as well:)

image 21
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 15
image 19
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 16

How to add video in the multirow section

📍First, we are going to implement video uploading system using schema.

1. Open multirow.liquid file and search for schema ( ctrl + f )

image 4
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 17

2. Inside the schema search for blocks

image 6
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 18

3. Inside the blocks you will find settings, inside the settings you need to paste the below code ( this is schema for video. ) Make sure you put comma after closing tag.

{
  "type": "video",
  "id": "video",
  "label": "t:sections.video.settings.video.label"
},
image 8
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 19

Save the file, go to your dashboard, and refresh:) Now, besides the image, we can upload video as well.

📍Final Step, now we need to show the video on the screen via liquid.

1. Inside the multirow.liquid we need to search for image-with-text__media ( find out exact same class name )

image 12
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 20

The above div or block is the starting of our existing image picker. We need to put the code before the closing tag of this div or block. Follow below image and put the code after where it says end.

{% comment  %} video  {% endcomment %}
  {% if block.settings.video %}
     {{
       block.settings.video | video_tag: image_size: '300x',
       autoplay: true,
       loop:true,
       controls:true,
       muted:true,
       style: "height:100%;width:100%;max-width:100%"
     }}
  {% endif %}
image 13
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 21

All done! But as we have two items, we need to add a bit of code. On the video code, you can see there are two terms called if block and endif block. The first block ( if ) says if the video exists show the video on the website and endif basically ends of if block. As we have an image block beside the video we need to tell the image that if image exists show image on the website.
Note: we can use two blocks at a time but it won’t look good as we are focused on adding one element at a time.

image 15
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 22

To add if block for the image block we need to search for image-with-text__media-item. Add if block before where it says start and add endif after where it says end.

image 16
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 23

How to add video in the multicolumn section

1. Open multicolumn.liquid file and follow steps 1 to 3 of the multirow section to enable the video uploading system using schema.

📍Final Step, now we need to show the video on the screen via liquid.

1. Inside the multicolumn.liquid file search for multicolumn-card. Inside this div or block, we need to put the code, If you notice there is if block after the div or block where it says block.settings.image , this is for the image block, we need to find the ending of this if block so that we can put our video code after that.

image 17
Adding A Video In The Multirow or multicolumn Section in Dawn Theme 24

Put below code after where it says end

{% comment  %} video  {% endcomment %}
   {%- if block.settings.video != null -%}
     {{
        block.settings.video | video_tag: image_size: '1100px',
        autoplay: true,
        controls:true,
        muted:false,
        style: "height:100%;width:100%;max-width:100%"
      }}
  {%- endif -%}

All set! The summary is that the process is the same for both multirow and multicolumn, you just need to identify where to put the code. I hope you enjoyed it:) Let me know if you find it helpful.

Frequently Asked Questions

How do I add video to multicolumn Shopify?

1. Write schema for video
2. Identify where to put the code
* Please follow the above guidelines.

How to add Video In The “Multicolumn” Section Within The Dawn Theme?

It’s possible to add video to the multicolumn section in Shopify. Follow the blog post.

Can I add video plus text Shopify?

Follow this blog post and you can either use multirow or multicolumn as you require.

Can I add video to multirow shopify?

Yeah, you can add video to Mulirow in Shopify.

guest

16 Comments
Oldest
Newest
Inline Feedbacks
View all comments
michael
michael
2 months ago

it doesnt show up on mobile what to do?

michael
michael
Reply to  Jak
2 months ago

https://thebattie.com/products/heatless-curler

heres the url link to the product, only videos with headlines show up on mobile?

michael
michael
Reply to  Jak
2 months ago

man u are a G thank u very much! also do you know how to make the videos start automatically in loop without sound? i want to do it for another product but in multirows. Thank you for your free content too btw it helps a lot!

michael
michael
Reply to  Jak
2 months ago

do you have a tutorial on how to do video looping?

Dawood Junaid
Dawood Junaid
Reply to  Jak
1 month ago

Hi, I was wondering the same. I want autoplay, loop and hide play controls. Could you help me out?

Sufiyan Sidat
2 months ago

Hi, I am having an issue with mine, the video has worked but now the heading paragraph and link have disappeared https://www.sidandhawa.com/blogs/news/qatar-destination-review?_pos=1&_sid=0a7221e2a&_ss=r

Angela
1 month ago

Jak, I added the code but when I add the video, it’s tiny, no matter what size video I use. How can I make the video the regular size of an image in a multicolumn set of 3? I would like to chat with you directly and perhaps hire to you help me fix this. It has been way too time consuming and I’d like it to be solved. Please get in touch with me! 🙂 Thanks!!

Henry
Henry
14 days ago

hello, thank you. it works great, but can you help solve the thumbnail blurry problem also? appreciate it

Scroll to Top