How to force caption to use Alt Text, not Image Title

mobilebroadbandblog's Avatar

mobilebroadbandblog

20 Sep, 2018 12:08 PM

Hi Dimitry,

I see this is a common request, and that in 2013, you agreed this should be a standard feature:

http://help.dimsemenov.com/discussions/royalslider-wordpress/3036-use-alt-text-for-alt-text

However, the plugin is still using Image Title, instead of Alt Text in its default setting.

Can we change this gloablly in plugin settings, or do I need to hack some code in somewhere? If the latter, please can you make it a priority for a future update - I think this is a very intuitive, basic functionality that people would expect.

  1. Support Staff 1 Posted by Dmitry Semenov on 20 Sep, 2018 05:28 PM

    Dmitry Semenov's Avatar

    Hello,

    I understand the issue, but I can not modify the core functionality of variables since it'll affect existing users and HTML structure is often used by other types of slider.

    If you're creating image-based galleries, you may create one configuration that controls all galleries. Please refer to http://help.dimsemenov.com/kb/wordpress-royalslider-tutorials/wp-cr...

    To modify markup of images in Slide Markup Editor, replace {{image_tag}} with the desired markup, such as:

    <img src="{{image_url}}" alt="{{alt}}" class="rsImg" />
    

    List of supported variables for default gallery - http://help.dimsemenov.com/kb/wordpress-royalslider-advanced/wp-lis...

  2. 2 Posted by mobilebroadband... on 20 Sep, 2018 07:35 PM

    mobilebroadbandblog's Avatar

    Thanks for the explanation.

    I'm using galleries which are a mix of images, gifs, Youtube so I'm guessing that my only option is to change the slide markup?

  3. Support Staff 3 Posted by Dmitry Semenov on 21 Sep, 2018 05:03 AM

    Dmitry Semenov's Avatar

    For "custom" type of slider with videos/images/gifs, the plugin retrieves alt from a title of a slide. You may add a custom variable that would retrieve data from media library - http://help.dimsemenov.com/kb/wordpress-royalslider-advanced/wp-add...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac