I need to some quick assistance on how I can insert a simple image slideshow within the description area on a product page.
The majority of products are movies. Usually product images are 1 vertical movie case artwork and a few horizontal stills from scenes in the movie. The horizontal stills just don’t work with the product image dimensions since the main image is vertical. The horizontal stills end up being to small. So, I would rather put them in the description section as a clickable slideshow (no autoplay).
Right now the product images are on the left, price/qty/order on the right, and then below those is the product description area.
I think I’m going to opt for an online slideshow generator where it gives me the code to place and is exactly what I need. However I’m running into a small issue.
It gives me HTML to insert into Head, HTML to paste to Body, and CSS to save as my-slider.css.
So, I created a new .css Asset as my-slider.css and pasted that code in. Then I paste the HTML into the product description and linked to the necessary image files. Now, I’m not sure where to put the “HTML to insert into Head” which is:
The first method using full html tags(,) lets you exercise more control over the html tags attributes if you need that.
It’s easier to spot the file types in themes when scanning.
The second method using the filters (stylesheet_tag,script_tag) take the full url returned by the asset_url filter and put in the right type of html tag.
And lets the template renderer worry about the syntax of the html tags, because seriously who ever remembers that CSS files use the tag and there is actually no tag at all.
This thread is super helpful. Thank you everyone! I am a content writer by profession and I had a query similar to this which I was able to solve with your aid. Special thanks to the one who asked this question