PHP in Slider

I’d like to display some PHP in the Sydney slider, as:
<?php echo($variable); ?>
Is there a simple way to do that? Do I have to remove esc_html(); from slider.php or edit something else?
Thank you!

Hello there,

The best way to edit the main slider block is through either child theme’s functions.php of functionality plugin like Code Snippets. You can override the default slider by reproducing the sydney_slider_template() function as it’s wrapped with plugable function.

> Do I have to remove esc_html();?

Depending on your need, that tag wrapper is typically used to secure the output. For more details, read on here: