---
title: Change the Scrset and Rel Attributes For Slide Images
description: "You can manipulate the anchor and image tag attributes by using [MetaSlider's available filters](https://www.metaslider.com/docs/metaslider_type_slider_image_attributes/). That documentation article has sample code showing how to add a \"rel\" attribute of \"lightbox\" to each slide in a slideshow. [Update the CSS on your…"
url: "https://www.metaslider.com/docs/change-scrset-and-rel-attributes/"
updated: "2023-01-30"
category: "Slideshow: Code Samples"
---

# Change the Scrset and Rel Attributes For Slide Images

You can manipulate the anchor and image tag attributes by using [MetaSlider's available filters](https://www.metaslider.com/docs/metaslider_type_slider_image_attributes/). That documentation article has sample code showing how to add a "rel" attribute of "lightbox" to each slide in a slideshow.

[Update the CSS on your website using one of these recommended methods](https://www.metaslider.com/docs/how-do-i-add-custom-css-to-my-theme/).

This code sample shows how to change "_self" to _blank" for links on the slides:

This next code sample shows how to change the scrset attributes for MetaSlider slides:

---

We hope that this code will be useful, but do not make guarantees. If you need troubleshooting help, or modifications to this code, please contact MetaSlider Pro support.
