Move Ethos carousel below rev slider...part 2

Hi!
I had started this thread earlier here but waited too long to reply so it’s closed now: https://theme.co/apex/forum/t/move-ethos-carousel-below-rev-slider/45673

I added the code and although that same code worked on the live site, it is not working on the staging site. I’ve checked with my hosting provider and things are good on that end. Would you be able to provide any feedback on how I can get this to work? I’m trying to update this entire site to Pro and need to make sure this piece works so I can proceed.

Thank you!

Hi Julianne,

Thank you for reaching out to us. I tested the code provided in the thread you shared and it works fine on my local setup.(in both X and Pro) In your staging site if you’re using Pro then first make sure your child theme is active then check the path of the file is correct and that should be in /pro-child/framework/legacy/cranium/headers/views/ethos/ directory. Lastly check if you’re using original header instead of Pro header.

Your wp-header.php file in the child theme should have the following code:.

<?php

// =============================================================================
// VIEWS/ETHOS/WP-HEADER.PHP
// -----------------------------------------------------------------------------
// Header output for Ethos.
// =============================================================================

?>

<?php x_get_view( 'global', '_header' ); ?>

  <?php x_get_view( 'global', '_slider-above' ); ?>

  <header class="<?php x_masthead_class(); ?>" role="banner">
    
    <?php x_get_view( 'global', '_topbar' ); ?>
    <?php x_get_view( 'global', '_navbar' ); ?>
    <?php x_get_view( 'ethos', '_breadcrumbs' ); ?>
  </header>

  <?php x_get_view( 'global', '_slider-below' ); ?>
  <?php x_get_view( 'ethos', '_post', 'carousel' ); ?>
  <?php x_get_view( 'ethos', '_landmark-header' ); ?>

In the above code this line <?php x_get_view( 'ethos', '_post', 'carousel' ); ?> renders the post carousel so you can move it as per your need.

Hope this helps!

Hi Nabeel,

Thanks for verifying that it works. I have noticed that I don’t have some of those folders in the path that you specified, does that mean that something isn’t correct? Or do I just have to add them in myself (which I can do but want to make sure there isn’t a larger issue first.)

The folder path that shows up is /pro-child/framework/views/ethos/

Thanks again!

Hi Julianne,

You will just have to create the missing directories if they do not exist yet in your file directory structure so that the template override will work.

Hope this helps.

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