Slider Revolution: Page Title

Is there a way to build a single slider in Slider Revolution that puts a WP element (Page Title) in the animation so that when the slider is put at the top of a specific page it pulls the correct Page Title into the animation for that page.

Saves having to create many sliders with individual Page Titles entered has hard text.

Thanks
Ken

Hi there,

That is a customization request which is outside of the support scope. We will suggest help here but will not be able to implement and support the code in the future if it breaks for any reason.

You need to create a custom shortcode using the guide below:

To get the current page title inside the shortcode you simply need to use a code like this:

$page_title = $wp_query->post->post_title;

Then you can use that variable to echo it wherever you like.

After that simply use your newly created shortcode inside the Revolution Slider.

Thank you.

Actually, I got it work. Create default slider, add bg image, save, change content source to Current Post/Page and then add {{title]] placeholder. Works fine.

Glad everything is working fine now.

I already try, but it’s not working. I already add text/html layer and insert {{title}}

Edit:
Ah…I got it work to. I forget to save after change to Post/Page.

Glad to know it worked. Have a nice day! :slight_smile: