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

Magento. How to edit slider

This tutorial shows how to edit slider in Magento templates

1. Open admin section and go to CMS->Pages and open Home page.

2. Open Content tab. There you will find code for slider.

3. Code like

 <a><img src="{{skin url='images/media/slider_img_1.png'}}" alt="" title="#htmlcaption" /></a>

shows image name for slider.

Let’s change slider image.

In this template images for slider are located in \skin\frontend\default\theme291\images\media folder. Images are called like slider_img_1.png, slider_img_2.png etc. You can replace images directly, just use the same image name, extension and dimensions for your image. You can upload images using ftp or hosting file manager.

In order to change image path we should edit code above. Just change slider_img_1.png with your own image name. Modified code should look like

 <a><img src="{{skin url='images/media/slider_img_new.png'}}" alt="" title="#htmlcaption_2" /></a>

Below you will see modified slider image.

4. The following code specifies code for image logo that is used in slider, text for slider with prices and link to product.

<div id="htmlcaption" class="nivo-html-caption">
<a href="'workstations/vpcsa33gx-si-laptop-computer-44.html"><img src="{{skin url='images/media/slider_product_1_logo.png'}}" alt="" /></a>
<h3>VPCSA33GX/SI<br /> Laptop Computer</h3>
<p>Intel Core i5-2430M 2.40GHz, 4GB DDR3, 128GB SSD, DVDRW, 1GB AMD Radeon HD 6630M, Backlit Keyboard, 13.3" Display, Windows 7 Professional 64-bit</p>
<span class="save-price">SAVE $499</span>
<span class="price">$1,299</span>
<button onclick="setLocation(''workstations/vpcsa33gx-si-laptop-computer-44.html')" class="button btn-cart" title="shop" type="button"><span>&nbsp;</span></button>
</div>

4.1. Let’s modify product link. Open particular product on your site and copy part of link highlighted on screenshot below:

4.2. Replace original link like <a href="’at-nulla-pariatur-excepteur-sint-occaecat.html"> with the one copied in previous step. Code with modified link should look like:

<div id="htmlcaption" class="nivo-html-caption">
<a href="'at-nulla-pariatur-excepteur-sint-occaecat.html"><img src="{{skin url='images/media/slider_product_1_logo.png'}}" alt="" /></a>
<h3>VPCSA33GX/SI<br /> Laptop Computer</h3>
<p>Intel Core i5-2430M 2.40GHz, 4GB DDR3, 128GB SSD, DVDRW, 1GB AMD Radeon HD 6630M, Backlit Keyboard, 13.3" Display, Windows 7 Professional 64-bit</p>
<span class="save-price">SAVE $499</span>
<span class="price">$1,299</span>
<button onclick="setLocation(''at-nulla-pariatur-excepteur-sint-occaecat.html')" class="button btn-cart" title="shop" type="button"><span>&nbsp;</span></button>
</div>

4.3. In order to change text you need to edit text in the code specified above. Please keep the same tag structure in order to get correct layout.

4.4. In our template slider has logo specified in the following code:

 <img src="{{skin url='images/media/slider_product_1_logo.png'}}" alt="" />

4.5. Please perform the same actions for all slides.

You can change logo image it the same way as slider image. Below you will see modified code of slider (for the first slide):

<div id="htmlcaption" class="nivo-html-caption">
<a href="{{store url='at-nulla-pariatur-excepteur-sint-occaecat.html'}}"><img src="{{skin url='images/media/slider_product_1_logo.png'}}" alt="" /></a>
<h3>VPCSA33GX/SI<br />New Product</h3>
<p>New configuration!!! 44GB DDR3, Your text Windows 7 Pro x64t</p>
<span class="save-price">SAVE $999</span>
<span class="price">$1,220</span>
<button onclick="setLocation('{{store url='at-nulla-pariatur-excepteur-sint-occaecat.html'}}')" class="button btn-cart" title="shop" type="button"><span>&nbsp;</span></button>
</div>

Check the screenshot with modified slider:

Feel free to check the detailed video tutorial below:

Magento. How to edit slider

  • Junior Desre

    Magento have gone so far, so far from my sight that even my expectations haven’t thought it. This great contribution on the progression of their business will benefit not just their selves but also the community which is struggling on some economic crisis.

    No votes yet.
    Please wait...
  • shyam

    greate turorial

    No votes yet.
    Please wait...
 
Live Chat
We help you to choose the right product.
Start chat