{"id":34606,"date":"2014-05-29T07:56:49","date_gmt":"2014-05-29T11:56:49","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=34606"},"modified":"2016-02-18T06:51:10","modified_gmt":"2016-02-18T11:51:10","slug":"opencart-how-to-change-slider-dimensions","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-how-to-change-slider-dimensions.html","title":{"rendered":"OpenCart 1.5.x. How to change slider dimensions"},"content":{"rendered":"<p><\/p>\r\n<p>This tutorial is going to show you how to re-size slider images on your OpenCart template.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=FrJm2k22kL8?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart. How to change slider dimensions<\/a><\/p>\r\n<p>For instance, you have a 1200 X 831 px image and you  would like to use it for the banner so its dimensions are kept.<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into your OpenCart administration panel and go to the <strong>&ldquo;Extensions&rdquo; -&gt; &ldquo;Modules&rdquo; menu<\/strong>.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_1-300x126.jpg\" alt=\"opencart_slider_image_resizing_1\" width=\"300\" height=\"126\" class=\"aligncenter size-medium wp-image-34607\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_1-300x126.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_1-150x63.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_1.jpg 1007w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Look for a module\u00a0called <strong>&ldquo;Newcarousel&rdquo;<\/strong> and click <strong>&ldquo;Edit.&rdquo;<\/strong><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_2-300x176.jpg\" alt=\"opencart_slider_image_resizing_2\" width=\"300\" height=\"176\" class=\"aligncenter size-medium wp-image-34608\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_2-300x176.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_2-150x88.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_2.jpg 1006w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>On the next page change the default  dimensions (W + H) to those of your new image (i.e. to 1200 X 831 px). Click  <strong>&ldquo;Save.&rdquo;<\/strong><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_3-300x70.jpg\" alt=\"opencart_slider_image_resizing_3\" width=\"300\" height=\"70\" class=\"aligncenter size-medium wp-image-34609\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_3-300x70.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_3-150x35.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_3.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>\u00a0Go to the <strong>System -&gt; Design -&gt;  Banners<\/strong> menu.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_4-300x89.jpg\" alt=\"opencart_slider_image_resizing_4\" width=\"300\" height=\"89\" class=\"aligncenter size-medium wp-image-34610\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_4-300x89.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_4-150x44.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_4.jpg 1001w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Find <strong>&ldquo;slideshow&rdquo;<\/strong> and click <strong>&ldquo;Edit.&rdquo;<\/strong><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_5-300x69.jpg\" alt=\"opencart_slider_image_resizing_5\" width=\"300\" height=\"69\" class=\"aligncenter size-medium wp-image-34611\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_5-300x69.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_5-150x34.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_5.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>On the next page click <strong>&ldquo;Browse&rdquo;\u00a0<\/strong> under the image you want to replace. In the  window that will pop up, click <strong>&ldquo;Upload&rdquo;<\/strong> and navigate to the directory where the  new image is located. Select the image and click <strong>&ldquo;Open.&rdquo;<\/strong><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_6-300x150.jpg\" alt=\"opencart_slider_image_resizing_6\" width=\"300\" height=\"150\" class=\"aligncenter size-medium wp-image-34612\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_6-300x150.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_6-150x75.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_6.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Once the image is uploaded, you should see this message:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_7-300x150.jpg\" alt=\"opencart_slider_image_resizing_7\" width=\"300\" height=\"150\" class=\"aligncenter size-medium wp-image-34613\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_7-300x150.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_7-150x75.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_7.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Look for the image in the <strong>Image Manager<\/strong> and double click on\u00a0 it.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_8-300x178.jpg\" alt=\"opencart_slider_image_resizing_8\" width=\"300\" height=\"178\" class=\"aligncenter size-medium wp-image-34614\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_8-300x178.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_8-150x89.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_8.jpg 935w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>The thumbnail of the original image  will be changed to that of your image. Click <strong>&ldquo;Save&rdquo;<\/strong> at the top right.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_9.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_9-210x300.jpg\" alt=\"opencart_slider_image_resizing_9\" width=\"210\" height=\"300\" class=\"aligncenter size-medium wp-image-34615\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_9-210x300.jpg 210w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_9-105x150.jpg 105w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_9.jpg 352w\" sizes=\"(max-width: 210px) 100vw, 210px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Open the front page of your site in Mozilla Firefox with the <a target=\"_blank\" href=\"\/help\/firebug-mozilla-firefox-plugin.html\">Firebug<\/a> plugin installed.<\/p>\r\n<\/li>\r\n<li>\r\n<p>In Firebug,\u00a0look for <strong>&lt;div  id=&quot;camera_wrap&quot;&gt;<\/strong> as shown below (the div id may  differ depending on your template number):<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_10.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_10-300x80.jpg\" alt=\"opencart_slider_image_resizing_10\" width=\"300\" height=\"80\" class=\"aligncenter size-medium wp-image-34616\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_10-300x80.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_10-150x40.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_10.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>For instance, it has the following  styles:<\/p>\r\n<pre class=\"brush:css\">\r\n.camera_wrap {\r\ndisplay: none;\r\nfloat: left;\r\nposition: relative;\r\nz-index: 0;\r\n}\r\n<\/pre>\r\n<\/li>\r\n<li>\r\n<p>Add a new property to this class selector like <strong>width: 1200px ! important;<\/strong> (where 1200px is the width of your new banner image). This will prevent your  image from looking stretched.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_11.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_11-300x132.jpg\" alt=\"opencart_slider_image_resizing_11\" width=\"300\" height=\"132\" class=\"aligncenter size-medium wp-image-34617\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_11-300x132.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_11-150x66.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_11.jpg 695w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Remove  <strong>float: left; <\/strong>and<strong> <\/strong>add one more property to the same class selector  like <strong>margin: 0 auto; <\/strong>in order to center  your image.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Now you need to copy the edited  class selector from Firebug and replace the original one in <strong>catalog\/view\/theme\/theme###\/stylesheet\/camera.css<\/strong> with it:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_12.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_12-300x134.jpg\" alt=\"opencart_slider_image_resizing_12\" width=\"300\" height=\"134\" class=\"aligncenter size-medium wp-image-34618\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_12-300x134.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_12-150x67.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_12.jpg 695w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<pre class=\"brush:css\">\r\n.camera_wrap {\r\nwidth: 1200px ! important;\r\nmargin: 0 auto;\r\ndisplay: none;\r\nposition: relative;\r\nz-index: 0;\r\n}\r\n<\/pre>\r\n<\/li>\r\n<li>\r\n<p>Save the changes made to the <strong>camera.css <\/strong><strong>file<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open the <strong>newcarousel.tpl <\/strong>\u00a0file located in <strong>catalog\/view\/theme\/theme###\/module\/<\/strong>\u00a0with Adobe Dreamweaver or any code editor. Look for the initializing script between the two <strong>&lt;script&gt;&lt;\/script&gt;<\/strong> tags:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_13.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_13-300x152.jpg\" alt=\"opencart_slider_image_resizing_13\" width=\"300\" height=\"152\" class=\"aligncenter size-medium wp-image-34619\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_13-300x152.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_13-150x76.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_13.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Since your new image width is 1200px and its height is 600px, the new percentage should be <strong><em>69.25%  (831\/1200*100=69.25)<\/em><\/strong>. Change height: &rsquo;32.86%&rsquo; to height: 69.25%&rsquo;, and save the  changes.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Your banner image should now be  displayed with its dimensions changed.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_14.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_14-300x132.jpg\" alt=\"opencart_slider_image_resizing_14\" width=\"300\" height=\"132\" class=\"aligncenter size-medium wp-image-34620\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_14-300x132.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_14-150x66.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/05\/opencart_slider_image_resizing_14.jpg 1005w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=FrJm2k22kL8?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart. How to change slider dimensions<\/a><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to re-size slider images on your OpenCart template.<\/p>\n","protected":false},"author":30,"featured_media":34624,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1183,1267,1157,816],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/34606"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=34606"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/34606\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/34624"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=34606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=34606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=34606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}