Sat. Jun 7th, 2025

2. Magento 2. How to change Camera slider dimensions

1 min read
  1. Connect to your server using any FileManager.
  2. Open the app/design/frontend/TemplateMonster/themeXXX/web/js/theme.js file using any text editor.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    $(‘.home_slider’).camera({
    height: ‘47.8%’,
    pagination: false,
    loader: ‘none’,
    time: 5000,
    transPeriod: 1000,
    fx: ‘scrollHorz’,
    navigationHover: false,
    playPause: false
    });
  3. Locate the Home page slider script and change the height value.
  4. In order to determine the correct height %, we can use the following formula: images height/images width*100%
    magento2_how_to_change_slider_dimensions1
  5. Make changes and re-upload theme.js file to the server.
    magento2_how_to_change_slider_dimensions2
  6. Upload your new images to the media\wysiwyg folder on the server.
  7. Reload your site to see the changes.
  8. Note that you may need to clean your Magento cache to see the changes.

Thank you for taking the time to check this tutorial.

Do you want to see more templates? It’s time to look through our selection of top-quality Magento Themes.

June 2025
M T W T F S S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
30