{"id":29648,"date":"2013-07-02T04:49:47","date_gmt":"2013-07-02T08:49:47","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=29648"},"modified":"2017-12-13T08:32:49","modified_gmt":"2017-12-13T13:32:49","slug":"wordpress-how-to-change-slider-dimensions","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-change-slider-dimensions.html","title":{"rendered":"WordPress. How to change slider dimensions"},"content":{"rendered":"<p>\r\n<p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=4BNGyCn44RI?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to change slider dimensions<\/a><\/p>\r\n<p>This tutorial shows how to change slider dimensions in WordPress templates (where slider height is specified via custom-function.php file).\r\n<\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-1-300x163.jpg\" alt=\"WordPress. How to change slider dimensions-1\" width=\"300\" height=\"163\" class=\"aligncenter size-medium wp-image-48535\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-1-300x163.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-1-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-1-1024x557.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-1.jpg 1265w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>In order to change slider image dimensions, you should edit \t<strong>\\themes\\themeXXXXX\\includes\\theme-init.php <\/strong>file: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-2-300x114.jpg\" alt=\"WordPress. How to change slider dimensions-2\" width=\"300\" height=\"114\" class=\"aligncenter size-medium wp-image-48536\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-2-300x114.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-2-150x57.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-2-1024x390.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-2.jpg 1188w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p> Find <strong>slider-post-thumbnail <\/strong>and set the desired image size width\/height in pixels. We have set 1170, 263. Original values were 1170, 491:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-3-300x151.jpg\" alt=\"WordPress. How to change slider dimensions-3\" width=\"300\" height=\"151\" class=\"aligncenter size-medium wp-image-48537\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-3-300x151.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-3-150x75.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-3-1024x514.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-3.jpg 1243w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Save changes and upload the modified file. Go to slides section and re-upload slider images for all slides. You should upload images that have the same size or aspect ratio as you have defined in theme-init.php file. Be sure to re-upload images for all slides:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-4-300x171.jpg\" alt=\"WordPress. How to change slider dimensions-4\" width=\"300\" height=\"171\" class=\"aligncenter size-medium wp-image-48538\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-4-300x171.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-4-150x86.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-4-1024x584.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-4.jpg 1234w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Refresh page. We have changed image dimensions. Now we should adjust height for slider area:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-5-300x185.jpg\" alt=\"WordPress. How to change slider dimensions-5\" width=\"300\" height=\"185\" class=\"aligncenter size-medium wp-image-48539\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-5-300x185.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-5-150x93.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-5.jpg 998w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <\/p>\r\n<\/li>\r\n<li>\r\n<p>Download and open <strong>\\themes\\themeXXXXX\\includes\\custom-function.php<\/strong> file for editing. Find function <strong>child_slider_params<\/strong> and adjust height in percents. Save changes and upload modified file:\r\n\t\t<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-6-300x168.jpg\" alt=\"WordPress. How to change slider dimensions-6\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-48540\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-6-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-6-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-6-1024x572.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/07\/WordPress.-How-to-change-slider-dimensions-6.jpg 1240w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Clear browser cache, cookies and refresh the page. We have changed slider dimensions.<\/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=4BNGyCn44RI?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to change slider dimensions<\/a><\/p>\r\n<\/p>\r\n<p><\/p>\r\n<p>In the event you might need templates to choose from, go ahead and see <a href=\"https:\/\/www.templatemonster.com\/category\/business-wordpress-themes\/\">responsive business wordpress themes<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to change slider dimensions in WordPress.<\/p>\n","protected":false},"author":39,"featured_media":29657,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1183,1267,816,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/29648"}],"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\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=29648"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/29648\/revisions"}],"predecessor-version":[{"id":83493,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/29648\/revisions\/83493"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/29657"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=29648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=29648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=29648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}