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.