Categories

Featured templates

Magento. How to edit slider

Ryan DeWitt May 29, 2012
Rating: 5.0/5. From 3 votes.
Please wait...

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

Magento Themes
This entry was posted in Magento Tutorials and tagged edit, Magento, NivoSlider, slider. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket