How to add a slider without using a shortcode or widget

A Revolution Slider can be added to your site via PHP using the code examples below.



Inside WordPress, select “Appearance -> Editor” from the main menu. Then inside your theme’s “page.php” file, paste one of the examples below where you want the slider to appear on your page.


  • With great power comes great responsibility.
    This technique is only recommended for users comfortable with editing WordPress theme files.
    Always create backups of your theme’s files before editing!