Search code examples
wordpressrevolution-slider

how to put automatically title of page on a slider revolution in wordpress


I am using a slider revolution (in wordpress) in my header. I would like to put automatically the name of each page inside the slider without doing in manually...

I tried to had {{title}} on my slider but does not seem to work...

Any idea ? Thanks


Solution

  • Updated:

    Try this:

    1.) Give the layer that will contain the title a class (for example LayerTitle). As I remember, the class of the layer can be set under Advanced option.

    2.) All that is left is to add the following jQuery code to set the title to that class:

    jQuery(document).ready(
        function() {
            var title = jQuery(this).attr('title');
            $('.LayerTitle').text(title);
        }
    );