Blog Slider Fixes

Hello! I am looking for two fixes for the blog slider that exists on this page:

I’m looking to make the slider full width without making the entry content below it full width (I believe it’s because it’s in a container, but I’m not sure how to fix it.)

Also, I am looking to speed up the load of the slider, so is there a simple way to do this? It takes a while to buffer on initial page load.

Please let me know if you have any fixes for me.

Thanks!

Hi there,

This is possible but will involve customization through a child theme. First, login through FTP then go to wp-content/themes/pro-child/framework/views/ethos then create the file wp-index.php. Please note that if any of those directories is not create, you may manually create them.

Then add this code to the file:

<?php

// =============================================================================
// VIEWS/ETHOS/WP-INDEX.PHP
// -----------------------------------------------------------------------------
// Index page output for Ethos.
// =============================================================================

$is_filterable_index = is_home() && x_get_option( 'x_ethos_filterable_index_enable' ) == '1';

get_header();

?>
<?php x_get_view( 'ethos', '_post', 'slider' ); ?>
  <div class="x-container max width main">

    

    <div class="offset cf">
      <div class="<?php x_main_content_class(); ?>" role="main">

        <?php if ( $is_filterable_index ) : ?>
          <?php x_get_view( 'ethos', '_index' ); ?>
        <?php else : ?>
          <?php x_get_view( 'global', '_index' ); ?>
        <?php endif; ?>

      </div>

      <?php get_sidebar(); ?>

    </div>
  </div>

<?php get_footer(); ?>

You may try to optimize the size of the image you are using as it might take longer to load if you are using huge images.

Hope this helps.

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