Hello I would like to add a header title to my blog. I can’t figure out how to do it in the current stack which is Ethos. I know how to change it in X but not within Pro can you please help me to achieve this? thanks
Hi @Oasis,
Thanks for reaching out.
Regretfully, currently, there is no such option available to add the Blog Page header or title for the stack Ethos.
If you still want to add the Blog Page title, you need to follow the steps explained below:
- Please setup up a child theme.
- Copy the file wp-index.php from wordpress installation folder wp-content\themes\pro\framework\views\ethos\wp-index.php
- Then paste it to wp-content\themes\pro-child\framework\views\ethos\wp-index.php
- Open the file using a text editor and replace the entire code with the following:
`
<?php
$is_filterable_index = is_home() && x_get_option( 'x_ethos_filterable_index_enable' ) == '1';
get_header();
?>
<div class="x-container max width main">
<?php
//BLOG TITLE SECTION
if ( is_home() )
{
?>
<header class="x-header-landmark x-container max width">
<h1 class="h-landmark entry-title"><span><?php echo "BLOG TITLE GOES HERE"; ?></span></h1>
</header>
<?php
}
?>
<?php x_get_view( 'ethos', '_post', 'slider' ); ?>
<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(); ?>
`
Remember that the above code will work if copied as it is and don’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.
Thanks
thank you soo much!!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.