{"id":38980,"date":"2015-02-10T04:38:19","date_gmt":"2015-02-10T09:38:19","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=38980"},"modified":"2016-04-14T10:12:59","modified_gmt":"2016-04-14T14:12:59","slug":"wordpress-change-parallax-slider-dimensions","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-change-parallax-slider-dimensions.html","title":{"rendered":"WordPress. How to change Parallax Slider dimensions"},"content":{"rendered":"<p><\/p>\r\n<p>In this tutorial you will find out how to change Parallax Slider dimensions in WordPress.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=OLTzjjfuABo?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to change Parallax Slider dimensions<\/a><\/p>\r\n<p>Let&#8217;s change the dimensions of slider:<\/p>\r\n<ol>\r\n<li>\r\n<p> <a href=\"\/help\/developer-tools.html\" target=\"_blank\">Use developer tool <\/a> (which is firebug for Firefox in our case) to modify the CSS class:<\/p>\r\n<p><a href=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-1.png\"><img loading=\"lazy\" src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-1-300x180.png\" alt=\"Wordpress_How_to_change_Parallax_slider_dimension-1\" width=\"300\" height=\"180\" class=\"aligncenter size-medium wp-image-38983\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-1-300x180.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-1-150x90.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-1-1024x616.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-1.png 1185w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p> Find this code for slider, which should look like this:<\/p>\r\n<pre class=\"brush:css\">.parallax-slider { \r\nheight: 719px; \r\n}\r\n<\/pre>\r\n<p>Change the height and add !important to the end of the new code.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Copy the new code that you have just set. Go to <strong>Appearance->Editor<\/strong> to open stylesheet (<strong>style.css<\/strong>) file, and add that code to the bottom of this file. Then click &#8216;<strong>Update File<\/strong>&#8216; to save it:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-3-300x166.png\" alt=\"Wordpress_How_to_change_Parallax_slider_dimension-3\" width=\"300\" height=\"166\" class=\"aligncenter size-medium wp-image-38981\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-3-300x166.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-3-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-3-1024x567.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-3.png 1274w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Refresh Home page to check the height of slider has been changed. <\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Next, we will change the scaling of slides images so that they will fit the new slider dimensions.<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into <strong>FTP<\/strong> or <strong>File manager<\/strong> from the server.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Go to &#8216;<strong>wp-content\/themeXXXX\/js<\/strong>&#8216; folder to find &#8216;<strong>parallaxSlider.js<\/strong>&#8216; file:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-4-300x169.png\" alt=\"Wordpress_How_to_change_Parallax_slider_dimension-4\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-38982\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-4-300x169.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-4-150x84.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-4-1024x579.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/Wordpress_How_to_change_Parallax_slider_dimension-4.png 1240w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p>Open the file and find this code:<\/p>\r\n<pre class=\"brush:js\">objectResize($('> img', primaryImageHolder), mainImageHolder, \"fill\");<\/pre>\r\n<p>You will need to change &#8220;<strong>fill<\/strong>&#8221; to &#8220;<strong>fit<\/strong>&#8221; and save the file.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Check your site to see the changes.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=OLTzjjfuABo?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to change Parallax Slider dimensions<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>In this tutorial you will find out how to change Parallax Slider dimensions in WordPress.<\/p>\n","protected":false},"author":69,"featured_media":43690,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1183,1724,1773,816,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38980"}],"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\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=38980"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38980\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/43690"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=38980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=38980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=38980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}