Help getting slider in header

Can someone please help me with getting a slider into my header section of my theme? It’s a basic 600X300 gallery slider. I’d like it positioned where the image shows. I’m running X-child theme. I can’t figure out where it goes. I’m assuming I need to move template files over, but it’s been awhile. The code for the slider is:

<?php echo do_shortcode('[smartslider3 slider=2]'); ?>

Hello Sean,

Thanks for writing in!

Since the child theme is set up, please add the following code in your child theme’s functions.php file

// Displaying custom slider on the right of the logo
// =============================================================================
function add_custom_slider(){ ?>
  
  <div class="custom-image right">
    <?php echo do_shortcode('[smartslider3 slider=2]'); ?>
  </div>

<?php }
add_action('x_after_view_global__brand', 'add_custom_slider');

We would loved to know if this has work for you. Thank you.

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