Tue. Jul 2nd, 2024

4. Magento. How to change slider dimensions

1 min read
  1. First, log into Magento admin panel.
  2. Navigate to CMS -> Static Blocks -> Slider block or CMS -> Pages -> Home page -> Content tab that contains the coding for slider:

    Magento.-How-to-change-slider-images-dimensions_1

  3. In the coding look for:
    <div class="fluid_container">

    and replace with:

    <div class="container">
  4. Using Firebug we can find out the width and height of the container:
    Magento.-How-to-change-slider-images-dimensions_2
  5. Let’s replace the images with the new ones, of 1170px*510px size. You should use Photoshop or any other images editor to adjust all images to the new size, in our case I made all images of size 1170px*510px.
  6. Get back to the slider coding in admin panel, and since your new image width is 1170px and its height is 510px, the new percentage should be 43.58% -(510\1170)*100= 43.58. Change height: ‘40.357%’, into height: ‘43.58%’, and save the changes.
  7. Save the changes, clear cache and refresh your website in browser to see the changes.
July 2024
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
293031