Custom Cart Icon Not Showing

Custom Cart Icon Not Showing

MidwestPatriot
New Member
7 0 0

I am using the Refresh theme. When I save my edited code for a cart SVG icon (for icon-cart and icon-cart-empty) the icon disappears completely. Capture.PNGCapture2.PNG

Capture3.PNG

Custom cart icon should be to the right of the account icon.

Replies 10 (10)

Huptech-Web
Shopify Partner
909 186 189

Hello @MidwestPatriot , Try replacing the below code in your "icon-cart.liquid".

<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-cart" viewBox="0 0 40 40"><path fill="currentColor" fill-rule="evenodd" d="M20.5 6.5a4.75 4.75 0 0 0-4.75 4.75v.56h-3.16l-.77 11.6a5 5 0 0 0 4.99 5.34h7.38a5 5 0 0 0 4.99-5.33l-.77-11.6h-3.16v-.57A4.75 4.75 0 0 0 20.5 6.5m3.75 5.31v-.56a3.75 3.75 0 1 0-7.5 0v.56zm-7.5 1h7.5v.56a3.75 3.75 0 1 1-7.5 0zm-1 0v.56a4.75 4.75 0 1 0 9.5 0v-.56h2.22l.71 10.67a4 4 0 0 1-3.99 4.27h-7.38a4 4 0 0 1-4-4.27l.72-10.67z"/></svg>

 

AT...

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
MidwestPatriot
New Member
7 0 0

That is what I have been replacing, but when I do the cart icon disappears. 

Huptech-Web
Shopify Partner
909 186 189

Hi @MidwestPatriot , Can you share your store URL?

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
MidwestPatriot
New Member
7 0 0

Of course, here you go.

 

https://midwestpatriot.shop

Huptech-Web
Shopify Partner
909 186 189

Hello @MidwestPatriot, Could you kindly specify the location where you intend to display this icon, and have you rendered this snippet within your section?

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
MidwestPatriot
New Member
7 0 0

I want it to just replace the default cart icon, same place. To the right of the account icon. I'm not sure what your second question means, as I'm not too familiar with Shopify code. I'm going to say I haven't because the only thing I edited was the "icon-cart-empty.liquid" and "icon-cart/liquid"

Huptech-Web
Shopify Partner
909 186 189

Okay got it! You want to replace the default icon. Can you please share the SVG code you are using to replace the default icon? It will help me to understand what's issue is.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
MidwestPatriot
New Member
7 0 0

Sure Thing.

 

This is the code for "icon-cart-empty.liquid":

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="6717px" height="5145px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
<g><path style="opacity:0.995" fill="#fefffe" d="M 2398.5,-0.5 C 3032.5,-0.5 3666.5,-0.5 4300.5,-0.5C 4441.64,8.47404 4554.48,69.1407 4639,181.5C 4690.43,254.132 4717.77,335.132 4721,424.5C 4721.5,631.5 4721.67,838.5 4721.5,1045.5C 5247.83,1045.33 5774.17,1045.5 6300.5,1046C 6425.64,1054.32 6529.47,1105.16 6612,1198.5C 6673.83,1272.2 6708.66,1357.2 6716.5,1453.5C 6716.5,1683.83 6716.5,1914.17 6716.5,2144.5C 6706.23,2215.9 6668.56,2267.07 6603.5,2298C 6582.41,2306.95 6560.41,2311.95 6537.5,2313C 6520.17,2313.5 6502.84,2313.67 6485.5,2313.5C 6485.67,3106.17 6485.5,3898.83 6485,4691.5C 6483.06,4758.88 6469.72,4823.88 6445,4886.5C 6399.2,4993.97 6321.7,5068.47 6212.5,5110C 6160.1,5129.65 6106.1,5141.15 6050.5,5144.5C 4259.17,5144.5 2467.83,5144.5 676.5,5144.5C 537.939,5137.31 426.105,5079.31 341,4970.5C 288.873,4901.57 252.206,4824.9 231,4740.5C 230.5,3931.5 230.333,3122.5 230.5,2313.5C 213.497,2313.67 196.497,2313.5 179.5,2313C 112.021,2308.36 60.5209,2277.53 25,2220.5C 11.1496,2195.79 2.64965,2169.45 -0.5,2141.5C -0.5,1913.83 -0.5,1686.17 -0.5,1458.5C 10.8267,1321.65 70.8267,1211.82 179.5,1129C 250.193,1078.32 329.193,1050.65 416.5,1046C 937.167,1045.5 1457.83,1045.33 1978.5,1045.5C 1978.33,835.833 1978.5,626.166 1979,416.5C 1988.82,276.313 2049.66,164.48 2161.5,81C 2232.56,31.0347 2311.56,3.86802 2398.5,-0.5 Z M 2404.5,188.5 C 3040.17,188.333 3675.83,188.5 4311.5,189C 4397.59,198.596 4463.09,240.096 4508,313.5C 4529.29,351.333 4540.29,392 4541,435.5C 4541.5,638.833 4541.67,842.166 4541.5,1045.5C 4487.5,1045.5 4433.5,1045.5 4379.5,1045.5C 4379.67,843.5 4379.5,641.5 4379,439.5C 4373.02,397.529 4350.52,368.363 4311.5,352C 4303.05,349.055 4294.39,347.055 4285.5,346C 3975.83,345.833 3666.17,345.667 3356.5,345.5C 3046.83,345.667 2737.17,345.833 2427.5,346C 2380.82,352.754 2350.32,378.588 2336,423.5C 2334.61,429.436 2333.61,435.436 2333,441.5C 2332.5,642.833 2332.33,844.166 2332.5,1045.5C 2280.17,1045.5 2227.83,1045.5 2175.5,1045.5C 2175.33,836.833 2175.5,628.166 2176,419.5C 2184.35,336.245 2223.18,271.745 2292.5,226C 2327.03,204.874 2364.36,192.374 2404.5,188.5 Z M 2529.5,538.5 C 3081.83,538.5 3634.17,538.5 4186.5,538.5C 4186.5,707.5 4186.5,876.5 4186.5,1045.5C 3634.17,1045.5 3081.83,1045.5 2529.5,1045.5C 2529.5,876.5 2529.5,707.5 2529.5,538.5 Z M 418.5,1238.5 C 2378.17,1238.33 4337.83,1238.5 6297.5,1239C 6380.65,1248.57 6443.48,1289.07 6486,1360.5C 6504.25,1393.82 6514.25,1429.49 6516,1467.5C 6516.5,1686.5 6516.67,1905.5 6516.5,2124.5C 6173.5,2123.52 5830.5,2123.19 5487.5,2123.5C 5487.67,2033.17 5487.5,1942.83 5487,1852.5C 5476.07,1773.91 5433.23,1721.41 5358.5,1695C 5346.72,1691.51 5334.72,1689.18 5322.5,1688C 5128.17,1687.33 4933.83,1687.33 4739.5,1688C 4665.78,1697.92 4614.62,1737.08 4586,1805.5C 4580.04,1821.32 4576.37,1837.65 4575,1854.5C 4574.5,1944.17 4574.33,2033.83 4574.5,2123.5C 3765.17,2123.5 2955.83,2123.5 2146.5,2123.5C 2146.67,2036.5 2146.5,1949.5 2146,1862.5C 2139.97,1786.56 2102.47,1732.73 2033.5,1701C 2016.49,1694 1998.83,1689.66 1980.5,1688C 1883.33,1687.83 1786.17,1687.67 1689,1687.5C 1589.14,1687.34 1489.31,1687.84 1389.5,1689C 1320.64,1701.21 1272.47,1739.38 1245,1803.5C 1238.32,1821.25 1234.32,1839.58 1233,1858.5C 1232.5,1946.83 1232.33,2035.17 1232.5,2123.5C 888.497,2123.19 544.497,2123.52 200.5,2124.5C 200.333,1902.83 200.5,1681.17 201,1459.5C 211.281,1364.71 259.447,1297.21 345.5,1257C 369.043,1247.2 393.377,1241.03 418.5,1238.5 Z M 1481.5,1875.5 C 1620.17,1875.33 1758.83,1875.5 1897.5,1876C 1923.96,1879.3 1942.46,1893.14 1953,1917.5C 1954.8,1922.37 1956.14,1927.37 1957,1932.5C 1957.67,2191.5 1957.67,2450.5 1957,2709.5C 1952.85,2733.64 1939.69,2750.81 1917.5,2761C 1911.07,2763.61 1904.4,2765.28 1897.5,2766C 1758.83,2766.67 1620.17,2766.67 1481.5,2766C 1448.78,2761.28 1428.95,2742.78 1422,2710.5C 1421.33,2450.83 1421.33,2191.17 1422,1931.5C 1429.12,1899.21 1448.96,1880.54 1481.5,1875.5 Z M 4822.5,1875.5 C 4961.5,1875.33 5100.5,1875.5 5239.5,1876C 5263.85,1879.26 5281.69,1891.76 5293,1913.5C 5296.22,1920.5 5298.22,1927.83 5299,1935.5C 5299.67,2192.5 5299.67,2449.5 5299,2706.5C 5295.74,2730.85 5283.24,2748.69 5261.5,2760C 5254.5,2763.22 5247.17,2765.22 5239.5,2766C 5100.5,2766.67 4961.5,2766.67 4822.5,2766C 4787.78,2759.94 4767.94,2739.44 4763,2704.5C 4762.33,2448.83 4762.33,2193.17 4763,1937.5C 4768.12,1902.55 4787.96,1881.88 4822.5,1875.5 Z M 419.5,2313.5 C 690.5,2313.5 961.5,2313.5 1232.5,2313.5C 1232.33,2470.17 1232.5,2626.83 1233,2783.5C 1240.85,2859.98 1280.02,2913.15 1350.5,2943C 1365.69,2948.7 1381.35,2952.37 1397.5,2954C 1591.83,2954.67 1786.17,2954.67 1980.5,2954C 2043.27,2946.38 2090.77,2915.55 2123,2861.5C 2136.96,2835.94 2144.63,2808.61 2146,2779.5C 2146.5,2624.17 2146.67,2468.83 2146.5,2313.5C 2955.83,2313.5 3765.17,2313.5 4574.5,2313.5C 4574.33,2471.5 4574.5,2629.5 4575,2787.5C 4581.77,2848.2 4610.6,2895.03 4661.5,2928C 4685.47,2942.66 4711.47,2951.32 4739.5,2954C 4933.83,2954.67 5128.17,2954.67 5322.5,2954C 5397.03,2943.79 5448.53,2903.95 5477,2834.5C 5482.07,2819.88 5485.4,2804.88 5487,2789.5C 5487.5,2630.83 5487.67,2472.17 5487.5,2313.5C 5757.5,2313.5 6027.5,2313.5 6297.5,2313.5C 6297.67,3100.17 6297.5,3886.83 6297,4673.5C 6296.64,4723.29 6287.31,4771.29 6269,4817.5C 6250.44,4860.5 6220.94,4893.67 6180.5,4917C 6133.87,4941.57 6084.21,4954.74 6031.5,4956.5C 4245.54,4955.67 2459.54,4955.17 673.5,4955C 606.093,4950.05 549.927,4922.55 505,4872.5C 466.302,4826.46 437.969,4774.46 420,4716.5C 419.5,3915.5 419.333,3114.5 419.5,2313.5 Z"/></g>
</svg>
 
This is the code for "icon-cart.liquid":
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="6255px" height="6403px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
<g><path style="opacity:0.995" fill="#fefffe" d="M 1488.5,-0.5 C 1576.17,-0.5 1663.83,-0.5 1751.5,-0.5C 1823.83,0.833333 1896.17,0.833333 1968.5,-0.5C 2047.17,-0.5 2125.83,-0.5 2204.5,-0.5C 2224.85,0.674564 2242.69,8.0079 2258,21.5C 2265.11,30.3946 2270.11,40.3946 2273,51.5C 2274.96,65.429 2276.29,79.429 2277,93.5C 2283.69,127.679 2304.52,145.012 2339.5,145.5C 2369.96,143.217 2389.13,127.217 2397,97.5C 2401.2,77.7192 2405.86,58.0526 2411,38.5C 2416.44,16.7207 2430.28,4.55406 2452.5,2C 2462.65,1.11737 2472.65,0.284036 2482.5,-0.5C 2541.17,-0.5 2599.83,-0.5 2658.5,-0.5C 2719.74,0.872004 2771.24,23.872 2813,68.5C 2843.78,106.168 2859.12,149.502 2859,198.5C 2861.28,366.843 2860.94,535.176 2858,703.5C 2849.21,776.294 2812.04,828.794 2746.5,861C 2715.17,874.11 2682.51,880.11 2648.5,879C 2584.82,879.9 2521.16,879.566 2457.5,878C 2428.81,874.916 2410.98,859.416 2404,831.5C 2402.41,814.068 2400.08,796.735 2397,779.5C 2389.33,750.166 2370.33,735.499 2340,735.5C 2311.95,734.601 2292.62,746.934 2282,772.5C 2278.72,782.924 2276.72,793.59 2276,804.5C 2275.61,829.889 2274.28,855.223 2272,880.5C 2270.89,892.611 2266.89,903.611 2260,913.5C 2252.71,921.062 2243.88,925.896 2233.5,928C 2224.92,929.892 2216.25,931.226 2207.5,932C 2191.5,933 2175.5,934 2159.5,935C 2150.95,935.846 2143.45,939.012 2137,944.5C 2133.91,948.682 2131.91,953.349 2131,958.5C 2130.62,1497.83 2130.28,2037.17 2130,2576.5C 2130.17,2587.19 2132.17,2597.53 2136,2607.5C 2143.03,2619.44 2153.53,2625.94 2167.5,2627C 2183.51,2627.3 2199.51,2627.3 2215.5,2627C 2250.87,2626.72 2272.2,2643.72 2279.5,2678C 2280.61,2684.13 2281.45,2690.29 2282,2696.5C 2283.56,2875.16 2283.89,3053.83 2283,3232.5C 2282.7,3264.5 2282.2,3296.5 2281.5,3328.5C 2281.34,3339.25 2282.17,3349.91 2284,3360.5C 2285.42,3368.18 2288.59,3375.01 2293.5,3381C 2470.83,3381.67 2648.17,3381.67 2825.5,3381C 2830.51,3373.63 2833.35,3365.47 2834,3356.5C 2834.55,3349.17 2835.05,3341.84 2835.5,3334.5C 2833.28,3089.34 2832.94,2844.17 2834.5,2599C 2834.33,2567.83 2834.17,2536.67 2834,2505.5C 2832.09,2485.84 2823.92,2469.34 2809.5,2456C 2782.56,2438.73 2755.9,2421.06 2729.5,2403C 2576.78,2289.44 2482.62,2138.6 2447,1950.5C 2419.43,1786.47 2444.1,1630.81 2521,1483.5C 2591.59,1355.58 2691.75,1258.08 2821.5,1191C 2884.13,1163.56 2918.97,1183.73 2926,1251.5C 2927.31,1392.82 2927.98,1534.15 2928,1675.5C 2929.91,1745.13 2956.08,1803.63 3006.5,1851C 3060.28,1894.78 3121.61,1911.11 3190.5,1900C 3280.71,1882.65 3339.54,1830.15 3367,1742.5C 3374.11,1715.64 3377.44,1688.3 3377,1660.5C 3378.81,1547 3378.98,1433.5 3377.5,1320C 3377.32,1294.79 3378.15,1269.63 3380,1244.5C 3381.7,1227.03 3387.36,1211.03 3397,1196.5C 3412.05,1180.89 3430.22,1175.73 3451.5,1181C 3468.24,1185.03 3484.24,1191.03 3499.5,1199C 3662.1,1288.96 3773.27,1422.12 3833,1598.5C 3881.78,1754.81 3879.78,1910.48 3827,2065.5C 3773.98,2211.82 3683.48,2328.99 3555.5,2417C 3534.97,2429.1 3515.3,2442.43 3496.5,2457C 3480.37,2472.69 3471.54,2491.86 3470,2514.5C 3469.83,2535 3469.67,2555.5 3469.5,2576C 3470.82,2817.33 3470.82,3058.67 3469.5,3300C 3469.67,3317.83 3469.83,3335.67 3470,3353.5C 3470.43,3363.46 3473.27,3372.63 3478.5,3381C 3675.17,3381.67 3871.83,3381.67 4068.5,3381C 4073.19,3373.92 4075.69,3366.09 4076,3357.5C 4076.17,3316.67 4076.33,3275.83 4076.5,3235C 4075.36,2733.5 4075.19,2232 4076,1730.5C 4074.95,1708.23 4069.95,1686.9 4061,1666.5C 4055.92,1656.01 4050.59,1645.68 4045,1635.5C 4030.94,1614.43 4017.27,1593.1 4004,1571.5C 3967.23,1500.8 3961.23,1427.47 3986,1351.5C 3989.47,1340.76 3993.14,1330.09 3997,1319.5C 4020.1,1263.87 4041.43,1207.53 4061,1150.5C 4091.67,1057.14 4122.34,963.811 4153,870.5C 4170.9,831.202 4201.57,813.202 4245,816.5C 4276.16,817.435 4307.33,818.102 4338.5,818.5C 4377.83,817.636 4417.17,817.136 4456.5,817C 4492.36,820.863 4516.53,839.697 4529,873.5C 4588.01,1050.21 4648.01,1226.54 4709,1402.5C 4716.01,1419.86 4720.17,1437.86 4721.5,1456.5C 4721.08,1470.83 4717.25,1484.16 4710,1496.5C 4662.43,1562.82 4631.76,1636.49 4618,1717.5C 4606.75,1787.38 4601.92,1857.71 4603.5,1928.5C 4606.54,2267.5 4607.2,2606.5 4605.5,2945.5C 4698.5,2945.5 4791.5,2945.5 4884.5,2945.5C 4901.37,2874.69 4918.87,2804.03 4937,2733.5C 4945.98,2700.4 4940.31,2670.07 4920,2642.5C 4815.39,2514.63 4770.72,2367.96 4786,2202.5C 4806.57,2034.47 4882.73,1898.3 5014.5,1794C 5144.18,1698.57 5289.51,1659.24 5450.5,1676C 5594.58,1694.45 5715.75,1756.62 5814,1862.5C 5941.2,2005.82 5991.2,2172.82 5964,2363.5C 5929.89,2544.15 5834.73,2681.98 5678.5,2777C 5649.94,2792.45 5620.94,2807.12 5591.5,2821C 5569.94,2836.6 5557.44,2857.77 5554,2884.5C 5518.22,3040.28 5480.55,3195.62 5441,3350.5C 5438.43,3360.13 5438.1,3369.8 5440,3379.5C 5711.29,3381.5 5982.79,3382.17 6254.5,3381.5C 6254.5,4237.5 6254.5,5093.5 6254.5,5949.5C 6252.03,6010.01 6240.87,6069.01 6221,6126.5C 6179.96,6237.21 6105.12,6315.71 5996.5,6362C 5939.61,6385.27 5880.61,6398.77 5819.5,6402.5C 4028.17,6402.5 2236.83,6402.5 445.5,6402.5C 311.971,6395.82 202.805,6341.15 118,6238.5C 61.7726,6167.04 22.2726,6087.04 -0.5,5998.5C -0.5,5126.17 -0.5,4253.83 -0.5,3381.5C 208.209,3382.16 416.709,3381.5 625,3379.5C 625.727,3367.19 624.061,3355.19 620,3343.5C 513.867,2975.97 408.2,2608.3 303,2240.5C 292.732,2205.16 286.066,2169.16 283,2132.5C 279.322,2034.39 312.822,1951.56 383.5,1884C 473.96,1804.47 577.627,1780.47 694.5,1812C 788.177,1844.01 854.677,1905.51 894,1996.5C 899.591,2010.27 904.591,2024.27 909,2038.5C 995.806,2340.42 1082.31,2642.42 1168.5,2944.5C 1282.5,2945.5 1396.5,2945.83 1510.5,2945.5C 1510.33,2866.17 1510.5,2786.83 1511,2707.5C 1511.15,2692.14 1513.48,2677.14 1518,2662.5C 1522.89,2649.55 1531.73,2640.38 1544.5,2635C 1552.95,2632.05 1561.61,2630.05 1570.5,2629C 1586.82,2627.83 1603.15,2626.83 1619.5,2626C 1637.81,2623.58 1646.97,2613.08 1647,2594.5C 1646.4,2051.5 1646.4,1508.5 1647,965.5C 1646.4,956.004 1642.9,947.838 1636.5,941C 1633.45,938.806 1630.11,937.139 1626.5,936C 1607.52,935.305 1588.52,934.638 1569.5,934C 1547.51,930.264 1531.01,918.764 1520,899.5C 1513.49,885.957 1508.15,871.957 1504,857.5C 1493.19,834.055 1477.69,814.222 1457.5,798C 1378.16,738.103 1288.5,706.103 1188.5,702C 1095.32,697.369 1007.32,716.369 924.5,759C 882.582,781.576 847.415,812.076 819,850.5C 792.944,881.11 762.111,886.944 726.5,868C 709.048,855.073 699.882,837.573 699,815.5C 695.105,705.64 715.105,600.307 759,499.5C 831.323,337.182 942.823,209.016 1093.5,115C 1214.88,41.5999 1346.54,3.09993 1488.5,-0.5 Z M 1606.5,129.5 C 1772.5,129.769 1938.5,129.769 2104.5,129.5C 2113.26,129.346 2121.93,130.179 2130.5,132C 2139.76,134.551 2147.26,139.718 2153,147.5C 2160.19,159.882 2166.86,172.549 2173,185.5C 2210.34,247.022 2265.34,278.022 2338,278.5C 2409.63,278.038 2463.63,247.371 2500,186.5C 2506.4,172.025 2514.07,158.358 2523,145.5C 2534.75,135.025 2548.58,129.859 2564.5,130C 2595.87,129.081 2627.2,129.748 2658.5,132C 2673.32,133.204 2687.32,137.204 2700.5,144C 2715.31,155.439 2723.47,170.606 2725,189.5C 2727.88,215.076 2729.22,240.742 2729,266.5C 2729.9,402.505 2729.57,538.505 2728,674.5C 2726.36,721.809 2701.86,745.976 2654.5,747C 2623.66,747.243 2592.83,747.743 2562,748.5C 2541.97,748.989 2526.97,740.656 2517,723.5C 2475.87,632.172 2405.37,592.672 2305.5,605C 2229.75,620.078 2179.59,664.244 2155,737.5C 2151.92,750.899 2148.59,764.232 2145,777.5C 2139.43,793.407 2128.26,802.24 2111.5,804C 2094.82,804.286 2078.15,804.953 2061.5,806C 2043.12,806.614 2027.29,813.114 2014,825.5C 2005.99,836.522 2001.32,848.855 2000,862.5C 1999.07,870.477 1998.4,878.477 1998,886.5C 1997.67,1459.5 1997.33,2032.5 1997,2605.5C 1996.88,2616.62 1991.38,2623.12 1980.5,2625C 1940.83,2625.67 1901.17,2625.67 1861.5,2625C 1846.99,2624.8 1832.66,2623.13 1818.5,2620C 1801.41,2615.91 1790.58,2605.41 1786,2588.5C 1781.47,2567.42 1779.47,2546.09 1780,2524.5C 1779.67,1976.17 1779.33,1427.83 1779,879.5C 1778.77,863.128 1775.44,847.461 1769,832.5C 1760.05,819.261 1747.55,811.428 1731.5,809C 1703.3,805.218 1674.97,803.218 1646.5,803C 1633.92,801.459 1623.76,795.626 1616,785.5C 1517.38,651.086 1384.21,579.92 1216.5,572C 1134.37,569.347 1053.37,577.681 973.5,597C 964.5,600 955.5,603 946.5,606C 916.167,618.5 885.833,631 855.5,643.5C 863.362,605.742 875.195,569.075 891,533.5C 962.693,378.473 1075.86,264.64 1230.5,192C 1298.64,161.132 1369.97,142.132 1444.5,135C 1498.62,132.181 1552.62,130.348 1606.5,129.5 Z M 4299.5,947.5 C 4320.85,947.303 4342.18,947.803 4363.5,949C 4377.97,949.16 4391.64,952.493 4404.5,959C 4411.43,963.925 4416.93,970.092 4421,977.5C 4428.44,992.376 4434.77,1007.71 4440,1023.5C 4483.35,1153.21 4527.68,1282.54 4573,1411.5C 4582.87,1436.21 4581.54,1460.21 4569,1483.5C 4526.8,1545.05 4498.8,1612.72 4485,1686.5C 4474.29,1746.85 4469.12,1807.68 4469.5,1869C 4471.48,2003.16 4472.64,2137.32 4473,2271.5C 4473.71,2498.83 4473.55,2726.17 4472.5,2953.5C 4410.33,2974.17 4369.5,3015.84 4350,3078.5C 4346.97,3089.65 4344.97,3100.98 4344,3112.5C 4343.5,3202.17 4343.33,3291.83 4343.5,3381.5C 4301.83,3381.67 4260.17,3381.5 4218.5,3381C 4213.16,3372.64 4209.99,3363.47 4209,3353.5C 4207.99,3341.02 4207.49,3328.52 4207.5,3316C 4208.31,3188.33 4208.98,3060.67 4209.5,2933C 4208.31,2614.17 4207.81,2295.33 4208,1976.5C 4208.66,1923.32 4209.83,1870.15 4211.5,1817C 4212.12,1753.13 4203.29,1690.63 4185,1629.5C 4177.56,1607.19 4168.56,1585.52 4158,1564.5C 4144.25,1540.67 4130.25,1517 4116,1493.5C 4102.68,1459.81 4102.01,1425.81 4114,1391.5C 4162.98,1257.57 4208.98,1122.57 4252,986.5C 4257.73,969.439 4268.9,957.606 4285.5,951C 4290.28,949.751 4294.94,948.584 4299.5,947.5 Z M 2794.5,1366.5 C 2795.33,1476.33 2795.83,1586.33 2796,1696.5C 2801.43,1785.65 2834.43,1862.65 2895,1927.5C 2972.23,2002.66 3065.06,2038.16 3173.5,2034C 3281.49,2028.1 3368.32,1982.6 3434,1897.5C 3488.1,1822.48 3513.44,1738.48 3510,1645.5C 3510.45,1552.5 3510.45,1459.5 3510,1366.5C 3656.32,1483.83 3731.16,1636.83 3734.5,1825.5C 3732.79,1981.89 3678.96,2116.89 3573,2230.5C 3522.4,2281.76 3464.56,2322.93 3399.5,2354C 3362.73,2375.68 3342.23,2407.84 3338,2450.5C 3337.01,2463.15 3336.51,2475.81 3336.5,2488.5C 3337.23,2773.5 3338.06,3058.5 3339,3343.5C 3338.5,3353.16 3336.5,3362.49 3333,3371.5C 3331.22,3374.94 3329.06,3378.11 3326.5,3381C 3208.5,3381.67 3090.5,3381.67 2972.5,3381C 2966.97,3372.37 2964.13,3362.87 2964,3352.5C 2964.15,3074 2964.65,2795.5 2965.5,2517C 2965.33,2494.83 2965.17,2472.67 2965,2450.5C 2962.83,2417.32 2949.33,2389.82 2924.5,2368C 2916.69,2361.59 2908.35,2355.92 2899.5,2351C 2741.39,2272.88 2637.56,2149.04 2588,1979.5C 2548.35,1829.73 2564.01,1686.06 2635,1548.5C 2668.4,1487.95 2711.23,1434.79 2763.5,1389C 2774.25,1381.97 2784.59,1374.47 2794.5,1366.5 Z M 5364.5,1803.5 C 5521.61,1802.15 5648.45,1862.82 5745,1985.5C 5835.35,2110.62 5860.69,2247.95 5821,2397.5C 5773.27,2547.56 5675.11,2648.73 5526.5,2701C 5475.46,2724.52 5444.63,2764.02 5434,2819.5C 5421.3,2878.31 5407.96,2936.98 5394,2995.5C 5364.35,3115.43 5335.02,3235.43 5306,3355.5C 5303.73,3364.99 5299.57,3373.49 5293.5,3381C 5281.17,3381.5 5268.84,3381.67 5256.5,3381.5C 5256.67,3291.17 5256.5,3200.83 5256,3110.5C 5245.07,3031.91 5202.23,2979.41 5127.5,2953C 5115.72,2949.51 5103.72,2947.18 5091.5,2946C 5067.5,2945.5 5043.5,2945.33 5019.5,2945.5C 5038.88,2864.32 5059.05,2783.32 5080,2702.5C 5089.1,2669.16 5084.1,2638.16 5065,2609.5C 5044.52,2585.87 5024.52,2561.87 5005,2537.5C 4905.08,2400.5 4886.42,2252.84 4949,2094.5C 5017.01,1927.88 5140.51,1832.38 5319.5,1808C 5334.62,1806.16 5349.62,1804.66 5364.5,1803.5 Z M 582.5,1930.5 C 632.763,1928.76 678.096,1942.59 718.5,1972C 744.849,1993.52 763.682,2020.35 775,2052.5C 866.323,2370.13 957.49,2687.79 1048.5,3005.5C 1023.35,3034.14 1008.18,3067.48 1003,3105.5C 1001.53,3197.48 1001.03,3289.48 1001.5,3381.5C 926.499,3381.67 851.499,3381.5 776.5,3381C 761.502,3365.18 751.002,3346.68 745,3325.5C 735.825,3287.63 727.158,3249.63 719,3211.5C 621.155,2869.79 523.155,2528.12 425,2186.5C 395.403,2083.9 425.903,2005.07 516.5,1950C 537.429,1939.44 559.429,1932.94 582.5,1930.5 Z M 5373.5,2101.5 C 5443.44,2104.2 5494.27,2136.53 5526,2198.5C 5553.57,2268 5541.4,2329.5 5489.5,2383C 5435.72,2429.45 5375.72,2439.45 5309.5,2413C 5249.29,2382.46 5217.96,2333.29 5215.5,2265.5C 5218.15,2198.67 5248.82,2149.5 5307.5,2118C 5328.53,2108.08 5350.53,2102.58 5373.5,2101.5 Z M 1676.5,2756.5 C 1822.83,2757.62 1969.17,2757.79 2115.5,2757C 2136.55,2758.38 2148.05,2769.55 2150,2790.5C 2150.17,2797.5 2150.33,2804.5 2150.5,2811.5C 2149.17,2987.67 2149.17,3163.83 2150.5,3340C 2151.12,3351.38 2149.95,3362.55 2147,3373.5C 2145.88,3376.25 2144.38,3378.75 2142.5,3381C 2066.83,3381.5 1991.17,3381.67 1915.5,3381.5C 1915.97,3290.15 1915.47,3198.82 1914,3107.5C 1903.14,3035.59 1864.31,2985.42 1797.5,2957C 1782,2951.17 1766,2947.5 1749.5,2946C 1714.17,2945.5 1678.83,2945.33 1643.5,2945.5C 1643.24,2909.67 1642.91,2873.83 1642.5,2838C 1642.37,2819.13 1642.87,2800.3 1644,2781.5C 1648.67,2765.09 1659.5,2756.76 1676.5,2756.5 Z M 1250.5,3133.5 C 1389.17,3133.33 1527.83,3133.5 1666.5,3134C 1692.96,3137.3 1711.46,3151.14 1722,3175.5C 1723.8,3180.37 1725.14,3185.37 1726,3190.5C 1726.67,3449.5 1726.67,3708.5 1726,3967.5C 1721.85,3991.64 1708.69,4008.81 1686.5,4019C 1680.07,4021.61 1673.4,4023.28 1666.5,4024C 1527.83,4024.67 1389.17,4024.67 1250.5,4024C 1217.78,4019.28 1197.95,4000.78 1191,3968.5C 1190.33,3708.83 1190.33,3449.17 1191,3189.5C 1198.12,3157.21 1217.96,3138.54 1250.5,3133.5 Z M 4591.5,3133.5 C 4730.5,3133.33 4869.5,3133.5 5008.5,3134C 5032.85,3137.26 5050.69,3149.76 5062,3171.5C 5065.22,3178.5 5067.22,3185.83 5068,3193.5C 5068.67,3450.5 5068.67,3707.5 5068,3964.5C 5064.74,3988.85 5052.24,4006.69 5030.5,4018C 5023.5,4021.22 5016.17,4023.22 5008.5,4024C 4869.5,4024.67 4730.5,4024.67 4591.5,4024C 4556.78,4017.94 4536.94,3997.44 4532,3962.5C 4531.33,3706.83 4531.33,3451.17 4532,3195.5C 4537.12,3160.55 4556.96,3139.88 4591.5,3133.5 Z M 188.5,3569.5 C 459.5,3569.5 730.5,3569.5 1001.5,3569.5C 1001.33,3726.83 1001.5,3884.17 1002,4041.5C 1009.85,4117.98 1049.02,4171.15 1119.5,4201C 1134.69,4206.7 1150.35,4210.37 1166.5,4212C 1360.83,4212.67 1555.17,4212.67 1749.5,4212C 1812.27,4204.38 1859.77,4173.55 1892,4119.5C 1905.96,4093.94 1913.63,4066.61 1915,4037.5C 1915.5,3881.5 1915.67,3725.5 1915.5,3569.5C 2724.83,3569.5 3534.17,3569.5 4343.5,3569.5C 4343.33,3728.17 4343.5,3886.83 4344,4045.5C 4350.77,4106.2 4379.6,4153.03 4430.5,4186C 4454.47,4200.66 4480.47,4209.32 4508.5,4212C 4702.83,4212.67 4897.17,4212.67 5091.5,4212C 5166.03,4201.79 5217.53,4161.95 5246,4092.5C 5251.07,4077.88 5254.4,4062.88 5256,4047.5C 5256.5,3888.17 5256.67,3728.83 5256.5,3569.5C 5526.5,3569.5 5796.5,3569.5 6066.5,3569.5C 6066.67,4356.83 6066.5,5144.17 6066,5931.5C 6065.64,5981.29 6056.31,6029.29 6038,6075.5C 6019.44,6118.5 5989.94,6151.67 5949.5,6175C 5902.87,6199.57 5853.21,6212.74 5800.5,6214.5C 4014.54,6213.67 2228.54,6213.17 442.5,6213C 375.093,6208.05 318.927,6180.55 274,6130.5C 235.302,6084.46 206.969,6032.46 189,5974.5C 188.5,5172.83 188.333,4371.17 188.5,3569.5 Z"/></g>
<g><path style="opacity:0.993" fill="#fefffe" d="M 5354.5,1971.5 C 5465.59,1966.31 5554.09,2007.98 5620,2096.5C 5670.75,2174.38 5684.08,2258.38 5660,2348.5C 5633.9,2434.55 5580.07,2496.38 5498.5,2534C 5422.48,2565.51 5345.81,2567.18 5268.5,2539C 5169.6,2497.41 5109.43,2423.91 5088,2318.5C 5071.75,2209.91 5103.25,2118.07 5182.5,2043C 5232.14,2000.94 5289.48,1977.11 5354.5,1971.5 Z M 5373.5,2101.5 C 5350.53,2102.58 5328.53,2108.08 5307.5,2118C 5248.82,2149.5 5218.15,2198.67 5215.5,2265.5C 5217.96,2333.29 5249.29,2382.46 5309.5,2413C 5375.72,2439.45 5435.72,2429.45 5489.5,2383C 5541.4,2329.5 5553.57,2268 5526,2198.5C 5494.27,2136.53 5443.44,2104.2 5373.5,2101.5 Z"/></g>
<g><path style="opacity:0.989" fill="#fefffe" d="M 596.5,2067.5 C 620.524,2065.93 640.024,2074.59 655,2093.5C 683.302,2132.04 692.636,2174.71 683,2221.5C 673.444,2244.38 656.277,2257.21 631.5,2260C 611.858,2262.84 594.858,2257.51 580.5,2244C 561.361,2224.56 548.861,2201.4 543,2174.5C 538.248,2153.84 537.914,2133.18 542,2112.5C 550.647,2086.02 568.814,2071.02 596.5,2067.5 Z"/></g>
</svg>
 
manan123
Pathfinder
154 1 11

Hii i have an issue please help me , i have slideshow section which support both video & image format but perhaps its does not have a option to upload video & images for mobile devices. I want you to optimized it for mobile devices also , so that i'll able to upload video & images for mobile & desktop seperately . I'll be very thankful to you . Below is the code :

 

My webiste link: https://mansaroverfurnishings.com/

 

{% comment %}
© Sections Pro. You are free to use this section in your store. You may not redistribute this section in another Shopify app.
{% endcomment %}
<style>
{{ section.settings.text_font | font_face }}

{% assign short_id = section.id | slice: -3, 3 %}

@keyframes slpProgressBar {
0% { width: 0; }
100% { width: 100%; }
}

#sp-slideshow-{{ section.id }}.sp-slideshow-wrap p,
#sp-slideshow-{{ section.id }}.sp-slideshow-wrap a {
font-size: {{ section.settings.text_size }}px;
font-family: {{ section.settings.text_font.family }}, {{ section.settings.text_font.fallback_families }};
font-weight: {{ section.settings.text_font.weight }};
line-height: 1.15;
}

#sp-slideshow-{{ section.id }}.sp-slideshow-wrap {
background-image: {{ section.settings.background_color }};
width: 100%;
}

#sp-slideshow-{{ section.id }} .sp-slideshow {
position: relative;
margin: 0 auto;
max-width: {{ section.settings.max_width }}px;
padding: {{ section.settings.padding_top }}px {{ section.settings.padding_right }}px {{ section.settings.padding_bottom }}px {{ section.settings.padding_left }}px;
}

#sp-slideshow-{{ section.id }} .sp-slideshow .sp-slideshow-grid {
position: relative;
margin: 0 auto;
padding: 0;
display: block;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-col {
margin: 0;
padding: 0;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-carousel {
display: grid;
grid-auto-columns: 100%;
grid-auto-flow: column;
width: 100%;
overflow-x: scroll;
scroll-snap-type: x mandatory;
border-radius: {{ section.settings.media_radius }}px;
{% if section.settings.media_shadow %}box-shadow: 0 0 5px 0 rgba(0,0,0,0.20);{% endif %}
margin: 0;
padding: 0;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-carousel::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}

#sp-slideshow-{{ section.id }} .sp-slideshow-carousel .sp-slideshow-slide {
scroll-snap-align: start;
position: relative;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-slide {
position: relative;
width: 100%;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-content video {
position: relative;
width: 100%;
height: 100%;
object-fit: cover;
aspect-ratio: {{ section.settings.media_aspect_ratio }};
display: block;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-content img {
position: relative;
width: 100%;
height: 100%;
object-fit: cover;
aspect-ratio: {{ section.settings.media_aspect_ratio }};
display: block;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-slide-text {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
z-index: 2;
background: {{ section.settings.caption_background_color }};
}

#sp-slideshow-{{ section.id }} .sp-slideshow-slide-text p {
color: {{ section.settings.text_color }};
font-weight: normal;
margin: 0;
padding: 10px 20px;
text-align: center;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-slide-text p a,
#sp-slideshow-{{ section.id }} .sp-slideshow-slide-text p a:visited {
font-weight: bold;
text-decoration: underline;
color: {{ section.settings.text_color }};
}

#sp-slideshow-{{ section.id }} .sp-slideshow-snap-links {
display: block;
width: 100%;
padding: 10px;
margin: 0;
text-align: center;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-snap-links a {
display: inline-block;
background-color: {{ section.settings.indicator_color }};
width: 12px;
height: 12px;
border-radius: 50%;
text-indent: -9999px;
padding: 0;
margin: 0 2.5px;
cursor: pointer;
opacity: 0.25;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-snap-links a:hover {
{{ section.settings.indicator_color }};
opacity:1;
}

#sp-slideshow-{{ section.id }} .sp-slideshow-snap-links a[active] {
{{ section.settings.indicator_color }};
opacity:1;
}

#sp-slideshow-{{ section.id }}[autoplaying] #sp-slideshow-snap-links-{{ section.id }} a[active] {
background: {{ section.settings.progress_background_color }};
opacity: 1;
width: 25px;
transition: all .5s;
border-radius: 10px;
overflow: hidden;
}

#sp-slideshow-{{ section.id }}[autoplaying] #sp-slideshow-snap-links-{{ section.id }} a[active]>span {
display: block;
background: {{ section.settings.progress_foreground_color }};
height: 100%;
animation: slpProgressBar {{ section.settings.autoplay_time }}ms ease-in-out;
animation-fill-mode: both;
}

</style>

<div id="sp-slideshow-{{ section.id }}" class="sp-slideshow-wrap">
<div class="sp-slideshow ">
<div class="sp-slideshow-grid">
<div class="sp-slideshow-col">
<div id="sp-slideshow-carousel-{{ section.id }}" class="sp-slideshow-carousel">
{% for block in section.blocks %}
<div class="sp-slideshow-slide" data-index="{{ forloop.index | minus: 1 }}">
<div class="sp-slideshow-content">
{% if block.type == 'video' %}
{{
block.settings.video
| video_tag:
image_size: '1100x',
playsinline: block.settings.video_inline,
autoplay: block.settings.video_autoplay,
loop: block.settings.video_loop,
controls: block.settings.video_controls,
muted: block.settings.video_muted
}}
{% endif %}
{% if block.type == 'image' %}
{% if block.settings.image %}
<img loading="lazy"
src="{{ block.settings.image | image_url: width: 600 }}"
srcset="{{ block.settings.image| image_url: width: 600 }} 600w,
{{ block.settings.image | image_url: width: 800 }} 800w,
{{ block.settings.image | image_url: width: 1000 }} 1000w,
{{ block.settings.image | image_url: width: 1100 }} 1100w">
{% endif %}
{% endif %}
</div>

<div class="sp-slideshow-slide-text">
<p>
{{ block.settings.slide_text }}
<a href="{{block.settings.cta_link}}">{{ block.settings.cta_text }}</a>
</p>
</div>
</div>
{% endfor %}
</div>
<!-- /.sp-slideshow-carousel -->

<div id="sp-slideshow-snap-links-{{ section.id }}" class="sp-slideshow-snap-links">
{% for block in section.blocks %}
<a data-index="{{ forloop.index | minus: 1 }}"><span></span></a>
{% endfor %}
</div>
</div>
<!-- /.sp-slideshow-col -->
</div>
<!-- /.sp-slideshow-container -->
</div>
<!-- /.sp-slideshow -->
</div>
<!-- /.sp-slideshow-wrap -->

<script>

// create new Sections Pro slideshow
class SpSlideShow_{{ short_id }} {

constructor(section, carousel, enable_autoplay, autoplay_time, slides, links) {

console.log(`[spslideshow] setup`);

this.section = section;
this.carousel = carousel;
this.slides = slides;
this.links = links;
this.index = 0;
this.interval = null;
this.observer = null;
this.direction = 'up';
this.autoplay_time = autoplay_time;
this.autoplay_is_setup = false;

// enable autoplay
if(enable_autoplay) {
console.log(`[spslideshow] enable auotplay`);
this.setupAutoplayObserver();
this.setupClearEvents();
}

// setup links and observer
this.setupLinks();
this.setupObserver();
}

// don't start autoplay until the slideshow is visible
setupAutoplayObserver() {
var context = this;

// use intersection observer to render dots
this.observer = new IntersectionObserver(function(entries, observer) {

// Loop over the entries
entries.forEach(entry => {
// If the element is visible
if (entry.isIntersecting) {
if(context.autoplay_is_setup == false) {
context.setupAutoplay();
context.autoplay_is_setup = true;
}
}
});

}, {
threshold: 0.5
});

for (var i = 0; i < this.slides.length; i++) {
this.observer.observe(this.carousel);
}
}

// setup autoplay
setupAutoplay() {

var autoplay_time = this.autoplay_time;

console.log(`[spslideshow] setup autoplay time = ${autoplay_time}`);

var context = this;
context.section.setAttribute('autoplaying', '');

this.interval = setInterval(function() {

// handle next
if(context.direction == 'up') context.index++;
else context.index--;

// rewind
if(context.index == context.slides.length) {
context.direction = 'down';
context.index--;
}
else if(context.index < 0) {
context.direction = 'up';
context.index++;
}

// get slide
var slide = context.slides[context.index];

if(slide) {
context.carousel.scroll({
behavior: 'smooth',
left: slide.offsetLeft
});
}
else {
clearInterval(context.interval);
}

}, autoplay_time);
}

// setup events
setupClearEvents() {
var context = this;

this.carousel.addEventListener('mousedown', (e) => {
context.clearInterval();
});

this.carousel.addEventListener('touchstart', (e) => {
context.clearInterval();
});
}

// cancel the interval timer
clearInterval() {
if(this.interval) clearInterval(this.interval);
this.section.removeAttribute('autoplaying');
}

// setup navigation links
setupLinks() {

var context = this;

for(var x=0; x<this.links.length; x++) {

// handle click of links
this.links[x].addEventListener('click', (e) => {

// clear interval
context.clearInterval();

var index = parseInt(e.target.getAttribute(`data-index`));
var slide = null;

for(x=0; x<context.slides.length; x++) {
var i = parseInt(context.slides[x].getAttribute('data-index')) || 0;
if(i==index) slide = context.slides[x];
}

if(slide) {
context.carousel.scroll({
behavior: 'smooth',
left: slide.offsetLeft
});
}

e.preventDefault();
});
}

}

// set active link
setActiveLink(index) {
for(var y=0; y<this.links.length; y++) this.links[y].removeAttribute('active');

// set all active
for(var y=0; y<this.links.length; y++) {
if(this.links[y].hasAttribute('data-index')) {
var i = parseInt(this.links[y].getAttribute('data-index'));
if(i == index) this.links[y].setAttribute('active', '');
}
}

}

// setup observer
setupObserver() {

var context = this;

// use intersection observer to render dots
this.observer = new IntersectionObserver(function(entries, observer) {

// Loop over the entries
entries.forEach(entry => {
// If the element is visible
if (entry.isIntersecting) {
var index = parseInt(entry.target.getAttribute('data-index')) || 0;
context.setActiveLink(index);
}
});

}, {
root: context.carousel, threshold: 0.5
});

for (var i = 0; i < this.slides.length; i++) {
this.observer.observe(this.slides[i]);
}

}

}
// end SpSlideShow class

var section_{{ short_id }} = document.querySelector('#sp-slideshow-{{ section.id }}');
var carousel_{{ short_id }} = document.querySelector(`#sp-slideshow-carousel-{{ section.id }}`);
var slides_{{ short_id }} = section_{{ short_id }}.querySelectorAll('.sp-slideshow-slide');
var links_{{ short_id }} = section_{{ short_id }}.querySelectorAll('.sp-slideshow-snap-links a');

new SpSlideShow_{{ short_id }}(section_{{ short_id }}, carousel_{{ short_id }}, {{ section.settings.enable_autoplay }}, {{ section.settings.autoplay_time }}, slides_{{ short_id }}, links_{{ short_id }});

</script>

{% schema %}
{
"name": "

manan123_0-1725006182137.png

 

SP - Slideshow",
"settings": [
{
"type": "header",
"content": "Text",
"info": "Set the text size for your widget"
},
{
"type": "font_picker",
"id": "text_font",
"label": "Text Font",
"default": "helvetica_n4"
},
{
"type": "range",
"id": "text_size",
"min": 10,
"max": 50,
"step": 1,
"unit": "px",
"label": "Text Size",
"default": 15
},
{
"type": "header",
"content": "Colors",
"info": "Set colors for the section."
},
{
"type": "color",
"id": "text_color",
"default": "#111",
"label": "Text Color"
},
{
"type": "color_background",
"id": "background_color",
"default": "transparent",
"label": "Background Color"
},
{
"type": "color_background",
"id": "caption_background_color",
"default": "linear-gradient(177deg, rgba(255, 255, 255, .5) 3%, rgba(255, 255, 255, .85) 100%)",
"label": "Caption Background Color"
},
{
"type": "color_background",
"id": "progress_background_color",
"default": "linear-gradient(177deg, rgba(17, 17, 17, .25) 3%, rgba(17, 17, 17, 0.25) 100%)",
"label": "Progress Background Color"
},
{
"type": "color_background",
"id": "progress_foreground_color",
"default": "linear-gradient(177deg, rgba(17, 17, 17, 1) 3%, rgba(17, 17, 17, 1) 100%)",
"label": "Progress Foreground Color"
},
{
"type": "color",
"id": "indicator_color",
"default": "#111",
"label": "Indicator Color"
},
{
"type": "header",
"content": "Dimensions",
"info": "Set the section dimensions in pixels."
},
{
"type": "number",
"id": "max_width",
"default": 1000,
"label": "Max Width of Section"
},
{
"type": "number",
"id": "padding_top",
"default": 25,
"label": "Padding Top"
},
{
"type": "number",
"id": "padding_bottom",
"default": 25,
"label": "Padding Bottom"
},
{
"type": "number",
"id": "padding_left",
"default": 10,
"label": "Padding Left"
},
{
"type": "number",
"id": "padding_right",
"default": 10,
"label": "Padding Right"
},
{
"type": "header",
"content": "Slideshow",
"info": "Set settings for your slideshow"
},
{
"type": "range",
"id": "media_radius",
"min": 0,
"max": 50,
"step": 1,
"unit": "px",
"label": "Round Borders on Media",
"default": 5
},
{
"type": "checkbox",
"id": "media_shadow",
"default": true,
"label": "Subtle Shadow on Media"
},
{
"type": "select",
"id": "media_aspect_ratio",
"default": "4 / 3",
"label": "Media Aspect Ratio",
"options": [
{
"value": "21 / 9",
"label": "21:9"
},
{
"value": "16 / 9",
"label": "16:9"
},
{
"value": "4 / 3",
"label": "4:3"
},
{
"value": "1 / 1",
"label": "1:1"
}
],
"default": "4 / 3"
},
{
"type": "checkbox",
"id": "enable_autoplay",
"default": true,
"label": "Enable Autoplay?"
},
{
"type": "select",
"id": "autoplay_time",
"label": "Autoplay Time",
"options": [
{
"value": "10000",
"label": "Slowest (10s)"
},
{
"value": "7500",
"label": "Slower (7.5s)"
},
{
"value": "5000",
"label": "Normal (5s)"
},
{
"value": "3000",
"label": "Faster (3s)"
},
{
"value": "2000",
"label": "Fastest (2s)"
}
],
"default": "5000"
}
],
"blocks": [
{
"name": "Image",
"type": "image",
"settings": [
{
"type": "image_picker",
"id": "image",
"label": "Image"
},

{
"type": "inline_richtext",
"id": "slide_text",
"label": "Caption",
"default": "Use this field to caption your slide"
},
{
"type": "text",
"id": "cta_text",
"label": "Call to Action Text",
"default": "Lets go"
},
{
"type": "url",
"id": "cta_link",
"label": "Call to Action Link"
}
]
},
{
"name": "Video",
"type": "video",
"settings": [
{
"type": "video",
"id": "video",
"label": "Video"
},
{
"type": "inline_richtext",
"id": "slide_text",
"label": "Caption",
"default": "Use this field to caption your slide"
},
{
"type": "text",
"id": "cta_text",
"label": "Call to Action Text",
"default": "Lets go →"
},
{
"type": "url",
"id": "cta_link",
"label": "Call to Action Link"
},
{
"type": "checkbox",
"id": "video_inline",
"label": "Play Inline",
"default": true
},
{
"type": "checkbox",
"id": "video_autoplay",
"label": "Autoplay",
"default": true
},
{
"type": "checkbox",
"id": "video_loop",
"label": "Loop Video",
"default": true
},
{
"type": "checkbox",
"id": "video_controls",
"label": "Show Video Controls",
"default": false
},
{
"type": "checkbox",
"id": "video_muted",
"label": "Mute Video",
"default": true
}
]
}
],
"presets": [
{
"name": "

manan123_1-1725006182141.png

 

SP - Slideshow",
"blocks": [
{
"type": "image"
},
{
"type": "image"
},
{
"type": "image"
}
]
}
]
}
{% endschema %}

Huptech-Web
Shopify Partner
909 186 189

Hi @MidwestPatriot , There is an issue in the CSS property in the style of your SVG. To fix the issue Follow the below steps and it will display your cart icon.

1. Add the below images to your asset folder in the code editor.

icon-cart.pngicon-cart-empty.png

 

2. Replace the below code in your "icon-cart-empty.liquid" and "icon-cart.liquid"

icon-cart-empty.liquid

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="6717px" height="5145px" class="icon icon-cart-empty" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
                <image href="{{ 'icon-cart-empty.png' | asset_url }}" width="40" height="40" image-rendering="optimizeQuality"/>
              </svg>

 

icon-cart.liquid

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="6255px" height="6403px" class="icon icon-cart" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
                <image href="{{ 'icon-cart.png' | asset_url }}" width="40" height="40" image-rendering="optimizeQuality"/>
              </svg>

 

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required