If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

WordPress. How to change slider dimensions

WordPress. How to change slider dimensions

This tutorial shows how to change slider dimensions in WordPress templates (where slider height is specified via custom-function.php file).

WordPress. How to change slider dimensions-1

  1. In order to change slider image dimensions, you should edit \themes\themeXXXXX\includes\theme-init.php file:

    WordPress. How to change slider dimensions-2

  2. Find slider-post-thumbnail and set the desired image size width/height in pixels. We have set 1170, 263. Original values were 1170, 491:

    WordPress. How to change slider dimensions-3

  3. 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:

    WordPress. How to change slider dimensions-4

  4. Refresh page. We have changed image dimensions. Now we should adjust height for slider area:

    WordPress. How to change slider dimensions-5

  5. Download and open \themes\themeXXXXX\includes\custom-function.php file for editing. Find function child_slider_params and adjust height in percents. Save changes and upload modified file:

    WordPress. How to change slider dimensions-6

  6. Clear browser cache, cookies and refresh the page. We have changed slider dimensions.

Feel free to check the detailed video tutorial below:

WordPress. How to change slider dimensions

In the event you might need templates to choose from, go ahead and see responsive business wordpress themes.