Above Masthead slider for all pages

Hi there,

I would like to implement the above-masthead rev slider for all pages please. How can this be done?

Hi there,

Our theme does not have such a functionality out of the box and you will need to use the Above/Below masthead functionality of each page to add a slider:

The only way to be able to add the slider on all pages and posts is to customize the theme. This is outside of our support scope, we will be able to give you the startup guide but the actual implementation of the code is on your shoulders.

Our theme has few filters and actions that you can use to add different stuff in different places via code. For more information:

https://theme.co/apex/forum/t/customizations-actions-and-filters-in-x/208

You will need to install a Child Theme and add the code below to the functions.php file:

// Add custom content below the masthead
// =============================================================================
function custom_content_above_masthead() { ?>
    <div class="custom-shortcode">
      <?php echo do_shortcode('[rev_slider alias="church-home"]'); ?>
    </div>
<?php }
add_action('x_after_view_global__slider-above', 'custom_content_above_masthead');
// =============================================================================

In the code above you will need to change the [rev_slider alias="church-home"] with the code of your slider. To find out your slider code you will click on the down arrow of the Revolution slider, slide and click on embed:

That will make the slide go to the top of every page and post.

Thank you.

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