Last active
June 2, 2021 21:14
-
-
Save mihdan/e1eaca24c3031f7365807bfd6f67a8d3 to your computer and use it in GitHub Desktop.
Add Revolution Slider to one of your WordPress site’s Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<!-- Load the slider with "slider1" alias every time --> | |
<?php putRevSlider("slider1") ?> | |
<!-- Load the slider with "slider1" alias only on the homepage only --> | |
<?php putRevSlider("slider1", "homepage") ?> | |
<!-- Load the slider with "slider1" alias only on a specific page with default permalinks --> | |
<?php putRevSlider("slider1", "2") ?> | |
<!-- Load the slider with "slider1" alias only on a range of pages --> | |
<?php putRevSlider("slider1", "2, 3") ?> | |
<!-- Load the slider with "slider1" alias only on a specific page with permalinks set to "Post Name" --> | |
<?php putRevSlider("slider1", "page_slug") ?> | |
<!-- Load the slider with "slider1" alias on a range of pages --> | |
<?php putRevSlider("slider1", "page_slug, another_page") ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment