{"id":16067,"date":"2012-03-21T07:38:52","date_gmt":"2012-03-21T11:38:52","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=16067"},"modified":"2017-02-22T03:33:16","modified_gmt":"2017-02-22T08:33:16","slug":"prestashop-tmslider","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-tmslider.html","title":{"rendered":"PrestaShop 1.4.x. TMSlider"},"content":{"rendered":"<p>\r\n<p>The tutorial explains how to edit tmslider module in template<\/p>\r\n<p>To add\/remove\/update slides we should edit slider source file which is located in modules\/tmslider folder. The file name is tmslider.tpl<\/p>\r\n<p>Please open the file using Adobe Dreamweaver in code view. You should see the following code<\/p>\r\n<p><a class=\"darkbox\" href=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/tmslider_code.jpg\"><img loading=\"lazy\" src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/tmslider_code-300x123.jpg\" alt=\"\" title=\"tmslider_code\" width=\"300\" height=\"123\" class=\"aligncenter size-medium wp-image-16068\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/tmslider_code-300x123.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/tmslider_code-1024x422.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/tmslider_code.jpg 1204w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Each line of code represents 1 slide<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;li class=\"item1\"&gt;&lt;a href=\"product.php?id_product=33\"&gt;&lt;img alt=\"\" src=\"{$module_dir}img\/img_1.png\"  \/&gt;&#038;lt\/a&gt;&#038;lt\/li&gt;\r\n<\/pre>\r\n<\/p>\r\n<p>product.php?id_product=33 is the URL for the slide. We can link each slide to any page on our site or even to external site. Just update the URL here.<\/p>\r\n<p>{$module_dir}img\/img_1.png is the path to the slide image. {$module_dir} means \/modules\/tmslider folder. You can update it to your own image path.<\/p>\r\n<p>Please note that you should clean smarty cache after applying any changes to source file.<br \/>Go to tools\/smarty\/compile folder and remove all the files except index.php<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"\/help\/files\/prestashop\/34394_slider_editing.htm\" target=\"blank\">PrestaShop. TMSlider<\/a><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p> <\/p>","protected":false},"excerpt":{"rendered":"<p>The tutorial explains how to edit tmslider module in template<\/p>\n","protected":false},"author":38,"featured_media":16069,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[2564,552,816,1166],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/16067"}],"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\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=16067"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/16067\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/16069"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=16067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=16067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=16067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}