Ethos 1 post carousel

Hi,

I have a quick question abot the post carousel - I want to move it to the footer or just above the footer. What snippet of code do I need to move and where will I find it please?

Thanks

Daniel

Hi @oliluke,

Thanks for writing in.

  1. Please install and activate a child theme

  2. Create this empty file in that child theme,

\framework\legacy\cranium\headers\views\ethos\wp-header.php

And add this content to that file

<?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', '_landmark-header' ); ?>
  1. Create this empty file to your child theme too

\framework\views\footer\colophon.php

Then add this content

<?php

// =============================================================================
// VIEWS/FOOTER/COLOPHON.PHP
// -----------------------------------------------------------------------------
// Colophon markup.
// =============================================================================

$atts = x_atts( apply_filters( 'x_colophon_atts', array(
  'class' => 'x-colophon',
  'role'  => 'contentinfo'
) ) );

?>

<?php x_get_view( 'ethos', '_post', 'carousel' ); ?>

<?php do_action( 'x_before_colophon_begin' ); ?>

  <footer <?php echo $atts; ?>>

    <?php do_action( 'x_after_colophon_begin' ); ?>

    <?php do_action( 'x_colophon' ); ?>

    <?php do_action( 'x_before_colophon_end' ) ?>

  </footer>

<?php do_action( 'x_after_colophon_end' ); ?>

Hope this helps.

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