How can I add a slider to the blog page I tried to just create it and add it using the raw code element and nothing showed up…
Hello @rotation,
Thanks for asking.
This will require change in code and I suggest you to setup child theme. Please use following resources to download and setup child theme.
https://theme.co/apex/child-themes
After that please add following code in child theme function.php file to display slider on blog page.
function my_custom_slider() {
if ( is_home() ) {
?>
<div class="x-container max width">
<?php echo do_shortcode('[rev_slider alias="agency-home"]'); ?>
</div>
<?php
}
}
add_action( 'x_after_site_begin', 'my_custom_slider' );
Please replace agency-home in above code with your own Revolution Slider Alias.
Thanks.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.