Hello, I’m using Icon stack. The archive pages don’t show the title. Any advice?
Hi @dcheese,
Thank you for writing in, while that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
Then add this to your child theme’s functions.php file.
/**
Landmark to the icon stack archive pages
*/
function custom_landmark() {
if(is_archive()) : ?>
<h1 class="h-landmark max width center-text mts mbn"><span><?php echo single_cat_title( '', false ); ?></span></h1>
<?php endif;
}
add_action('x_after_site_begin','custom_landmark', 90);
Hope it helps,
Cheers!
1 Like
Thank you so much!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.