Thu. Jul 4th, 2024

9. Magento. How to add more slides to slider

1 min read

This tutorial is going to show you how to add more slides to slider in Magento.

Magento. How to add more slides to slider

In order to add more slides to slider, you should perform the following steps:

    1. Open admin section, go to CMS->Static Blocks:

      Magento_How_to_add_slide-1

    2. Find Slideshow block and open it:

      Magento_How_to_add_slide-2

    3. Open Content field. There you will find code for slider:

      Magento_How_to_add_slide-3

    4. In order to add new slide, you need to copy part of the code that is related to the slide. Copy the following code and locate it above or below of the existing code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div data-src=”{{skin url=’images/camera/slides/slide3.jpg’}}”>
    <div class=”camera_caption fadeIn”>
      <a href=”{{store url=’headphones.html’}}”>
       <div class=”container”>
        <div class=”camera_caption_txt”>
          <p>The Best</p>
           <h6>Musical Instruments</h6>
            <span>Mes cuml dia sed inenias ingerto lot aliiqt dolore ipsumcommete.</span>
            </div>
            </div>
            </a>
          </div>
        </div>

Magento_How_to_add_slide-4

  1. In order to display new image in slider, start from the new line. Navigate to the Top menu and click on Insert Image button. Press Browse button and click on Upload button in order to download a new image from your computer:

    Magento_How_to_add_slide-5

  2. Select new image and press Insert File in the right corner of the form:
    Magento_How_to_add_slide-6
  3. After that steps you will get directory for new image:
    Magento_How_to_add_slide-7
  4. In order to display the new image in slider, replace “{{skin url=’images/camera/slides/slide3.jpg’}}”> with newly created directory “{{media url=”wysiwyg/new_image.jpg”}}” alt=”” />. Keep original coding structure:

    Magento_How_to_add_slide-8

    Magento_How_to_add_slide-9

  5. Remove all parts of code that we will not use: <img src.
  6. After all changes, code should look in such a way:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    <div data-src=”{{media url=”wysiwyg/new_image.jpg”}}” alt=”” />
        <div class=”camera_caption fadeIn”>
          <a href=”{{store url=’headphones.html’}}”>
           <div class=”container”>
            <div class=”camera_caption_txt”>
              <p>The Best</p>
               <h6>Musical Instruments</h6>
                <span>Mes cuml dia sed inenias ingerto lot aliiqt dolore ipsumcommete.</span>
                </div>
                </div>
                </a>
              </div>
            </div>
  7. Save changes and refresh your website. Now we can see that slide is added.

Also you can add a new slide in the following way:

  1. Change name of image in skin url directory for example from slide3.jpg to slide4.jpg .<div data-src=”{{skin url=’images/camera/slides/slide4.jpg’}}”>. Keep original coding structure:

    Magento_How_to_add_slide-10

  2. Upload new image with name slide4.jpg in the following directory: skin/frontend/themes/themeXXX/images/camera/slides/.
  3. Save changes. Now we can see that new slide is added.

Feel free to check the detailed video tutorial below:

Magento. How to add more slides to slider

July 2024
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
293031