Revolution slider on all pages

Hi there,

I’m trying to add a revslider shortcode to all my pages (except the homepage) so that the slider shows up above the masthead on all my pages. I found this thread about that issue. However the code provided breaks my site.

This is what I’ve tried to add to my wp-header.php file in my childtheme:

<?php if ( is_page( ) ) :?> <?php echo do_shortcode('[rev_slider alias="slider-vervolg"]'); // change the shortcode here ?> <?php else : ?>
<?php x_get_view( 'global', '_slider-above' ); ?>
<?php endif; ?>

I am using the ‘renew’ stack… (o

What am I doing wrong?

Thanks in advance!

-Ka

actually never mind!

I’ve solved the problem. The text in the link told me to replace a bit of code, but when I put that code back, below this new code it worked just fine!

Thanks!

-Ka

Glad to hear that. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.