View Single Post
  #1032  
Old 08-14-2015, 12:39 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Originally Posted by johngwms
Hi Phil

That fix works but unfortunately it also converts all blog titles on the blog home page to H1 tags also. It seems that the is_singular() funtion on line 146 is not functioning as it should.
Hi John and Phil,

We were having the same issue on the blog home page with no H1 but all other pages are showing H1 just fine. We use the Yoast SEO Plugin recommended by Phil.

I've been working on this on and off for a little while and I think I've found a solution today. The code below will add your WordPress Tagline as an H1 on your blog's homepage.

In file /blog/wp-content/themes/alienship/index.php

add the following red line of code as shown below
Code:
<?php /** * The main template file. * * @package Alien Ship * @since Alien Ship 0.1 */ get_header(); ?> <div id="primary" class="<?php echo apply_filters( 'alienship_primary_container_class', 'content-area col-sm-8' ); ?>"> <?php do_action( 'alienship_main_before' ); ?> <main id="main" class="site-main" role="main"> <h1><?php bloginfo('description'); ?></h1><br /> <?php if ( have_posts() ) {
Hope this helps!

Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote