Now I have 2 post titles in home page


#1

hi to all,

after apllying @Mohammad tutorial Overused H2 & Missing H1 Tags in Blogger Posts Titles my homepage looks weird …I think something I am missing. In home page now there are 2 post titles .How can I hide or erase the second one without seo issues. I want to hide no2 but nothing happens when I tried. my site is www.ntsotsos.gr


Custom template ruined my posts section - please help
#2

@Nick, you can add this CSS in your template:

.article_header h2 {
display: none;
}

to hide that 2nd title. I think this will not effect your blog’s SEO because one h2 is still on the first post title.


#3

@Shivansh

Don’t hide h2, he just need to apply the hack correctly. i will try to share how to properly apply the hack.


#4

@Nick

Step: 1 Locate the following code snippet in your template:

<div class='post hentry'>

Step: 2 replace the above snippet with following:

<div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> 
<meta expr:content='data:post.firstImageUrl' itemprop='image_url'/> 

After replacing your code should look like below image:

Step: 3 Now locate the following code in your template: In the template may be you have two snippet, the one is for desktop template and the other one is for mobile template:

 <b:if cond='data:post.title'> 

Your code should look like this:

Step: 4 replace the above code with the following:

<b:if cond='data:post.title'> 
                     <b:if cond='data:blog.pageType == &quot;index&quot;'> 
    <h2 class='post-title entry-title' itemprop='name'> 
     <b:if cond='data:post.link'> 
       <a expr:href='data:post.link' itemprop='url'><data:post.title/></a> 
     <b:else/> 
        <b:if cond='data:post.url'> 
<a expr:href='data:post.url' itemprop='url'><data:post.title/></a> 
<b:else/> 
          <data:post.title/> 
        </b:if> 
     </b:if> 
     </h2>
                       <b:elseif cond='data:blog.pageType == &quot;archive&quot;'/> 
<h2 class='post-title entry-title' itemprop='name'> 
     <b:if cond='data:post.link'> 
       <a expr:href='data:post.link' itemprop='url'><data:post.title/></a> 
     <b:else/> 
        <b:if cond='data:post.url'> 
<a expr:href='data:post.url' itemprop='url'><data:post.title/></a> 
<b:else/> 
          <data:post.title/> 
        </b:if> 
     </b:if> 
      </h2>
<b:else/> 
<h1 class='post-title entry-title' itemprop='name'> 
     <b:if cond='data:post.link'> 
       <data:post.title/> 
     <b:else/> 
        <b:if cond='data:post.url'> 
         <data:post.title/> 
<b:else/> 
          <data:post.title/> 
        </b:if> 
     </b:if> 
      </h1> 
</b:if> 
                    </b:if> 

After replacing your code should look like this:

Step: 5Finally now you just need to stylize your h1 tag on post pages.

I hope the above tips will help, need further help please let me know.


#7

Ok ,

How about another question. How can I move post title from posiion1 to position2 ?I refer to white block with post title


#8

@Nick

You just need to change your heading 1 and 2 Html Snippet placement, follow these steps:

Step: 1 Just take the below code from your template, place it right after closing readmore summary element. Your code must be look like this:

<b:if cond='data:post.firstImageUrl'>
                          <meta expr:content='data:post.firstImageUrl' itemprop='image_url'/>
                        </b:if>
 <b:if cond='data:post.title'> 
                     <b:if cond='data:blog.pageType == &quot;index&quot;'> 
    <h2 class='post-title entry-title' itemprop='name'> 
     <b:if cond='data:post.link'> 
       <a expr:href='data:post.link' itemprop='url'><data:post.title/></a> 
     <b:else/> 
        <b:if cond='data:post.url'> 
<a expr:href='data:post.url' itemprop='url'><data:post.title/></a> 
<b:else/> 
          <data:post.title/> 
        </b:if> 
     </b:if> 
     </h2>
                       <b:elseif cond='data:blog.pageType == &quot;archive&quot;'/> 
<h2 class='post-title entry-title' itemprop='name'> 
     <b:if cond='data:post.link'> 
       <a expr:href='data:post.link' itemprop='url'><data:post.title/></a> 
     <b:else/> 
        <b:if cond='data:post.url'> 
<a expr:href='data:post.url' itemprop='url'><data:post.title/></a> 
<b:else/> 
          <data:post.title/> 
        </b:if> 
     </b:if> 
      </h2>
<b:else/> 
<h1 class='post-title entry-title' itemprop='name'> 
     <b:if cond='data:post.link'> 
       <data:post.title/> 
     <b:else/> 
        <b:if cond='data:post.url'> 
         <data:post.title/> 
<b:else/> 
          <data:post.title/> 
        </b:if> 
     </b:if> 
      </h1> 
</b:if> 
                    </b:if> 

Step: 2 and paste the above code after closing summary conditions, look like below image:

Need further help please let me know. :blush:


#9

@mybloggertricks

I know that is very simple to solve this but with my knowledge I can’t .

I only manage to remove it but I don’t know where to put it…can you help me with it ?


#10

@Nick

Step: 1 Search for the following code in your template:

<div class='post-body entry-content' expr:id='&quot;post-body-&quot; + data:post.id'>
            <data:post.body/>
            <div style='clear: both;'/> <!-- clear for photos floats -->
          </div>

Step: 2 and paste the headings fix just before closing div tag: (After adding Heading fix your code should look like example below)

<div class='post-body entry-content' expr:id='&quot;post-body-&quot; + data:post.id'>
                <data:post.body/>
                <div style='clear: both;'/> <!-- clear for photos floats -->
             
                   Paste your heading fix here

              </div>

:blush: Got any question?


#12

@mybloggertricks I tried above trick but post title isn’t moved at all !! Is readmore feature making problem with your trick ??

All I want is to move Homepage post title above image Please check it


#13

Hi. Can you help me w my blog? I’m having a really hard time w it. I can’t see any of the posts on the homepage… is there a way you can see my blog? Can i tell the address here ?


#14

I completely agree with you Mr. Shivansh, As per my knowledge this way is better and there is no effect on SEO also.