Post Slider - Custom Page

Hi,

I’m currently working on adding the Ethos Post Slider to a custom page. This page is a navigation page for all of our various news posts split into categories, we would like it to feature the slider as it displays the latest posts nicely and is automated saving us time when new posts are added.

I’ve found a couple posts on this forum with instructions and based on these I have created a child theme. I have then added ‘post_slider.php’ and ‘wp-header.php’ (from x/framework/legacy/cranium/footer/views/ethos/) to the following path \x-child\framework\views\ethos.

To the ‘wp-header.php’ file I have added the below code to the bottom of the page.

  <?php if (is_page( 8954 )  ): ?>
  <div class="x-container max width"><?php x_get_view( 'ethos', '_post', 'slider' ); ?></div>
  <?php endif; ?>

To the ‘post_slider.php’ I have changed the below lines to include my page (page id is 8954).

if ( $is_blog || $is_archive || is_front_page() || is_page(8954)  ) :

  if ( $is_blog || is_page(8954) ) {

I’ve uploaded and activated the child theme but it doesn’t appear to have done anything.

Any ideas why? I’ve spent a while messing around with this and we really want to create this feature if possible so any help is really appreciated!

Thanks.

Hey Benjamin,

Regretfully, we do not provide support for theme customization. Please use Slider Revolution for your custom pages instead to avoid custom code problems. Slider Revolution has a post based slider so you’ll still be able to display a post slider. Use the Slider Below Masthead Page Setting to display the slider just below the header.

If you wish to continue using the custom code, please have a developer fix the code because please note that the codes we provide here in the forum are only to provide guidance. We do not fix issues that arise from the use of them nor further enhance them.

Hope that helps a bit and thank you for understanding.

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