Results 1 to 3 of 3

Thread: H1, H2 titles on blog

  1. #1
    Thread Starter
    buzzpop's Avatar
    Join Date
    Jun 2014
    Location
    Belgium
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    H1, H2 titles on blog

    On the blog of the Flatter theme I would like to make better use of H1 and H2 title tags for SEO reasons. Below is what I would like to achieve with these title tags:

    Main blog page

    On the main blog page (/blog/) I would like to add an H1 title entitled "Blog" before the blog post loop. The blogpost titles on this page should then be H2 titles.

    Blogpost page

    On the blogpost page (example: /hello-world/) there should just be the blogpost title in H1 tags.

    Halfway there

    I've managed to get a "Blog" title in H1 tags on the main blog page with the blog post titles in H2 tags on this page, but then the blogpost titles on the blogpost's single page are also H2 titles. Here's the code I'm using for this:

    PHP Code:
                        <div class="blog">
                        
                        <?php if ( ! is_single() ) {?>

     <h1>Blog</h1>

    <?php ?>
                        
                            <?php appthemes_before_blog_post_title(); ?>

                            <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

                            <?php appthemes_after_blog_post_title(); ?>
    Any ideas on how to make adapt my solution so my blogpost's single post pages display the blogpost title in H1 tag as well?

  2. #2
    Marketplace Seller mohsinoffline's Avatar
    Join Date
    Dec 2011
    Location
    Algeria
    Posts
    1,575
    Thanks
    44
    Thanked 213 Times in 192 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need content that helps to rank your website better on Google? Check out https://aicontently.com

    Create a website like Retailmenot with FlatterPro Theme , Check out the demo here Retailmenot





  3. #3
    Thread Starter
    buzzpop's Avatar
    Join Date
    Jun 2014
    Location
    Belgium
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Long Blog Titles Not Pushing Down Body Text or Images
    By vivcheng in forum Vantage General Discussion (Legacy)
    Replies: 3
    Last Post: May 7th, 2013, 08:19 AM
  2. Long Blog Titles Not Pushing Down Body Text or Images
    By vivcheng in forum Report Vantage Bugs (Legacy)
    Replies: 1
    Last Post: May 3rd, 2013, 01:26 PM
  3. titles ads
    By ribetos in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 15th, 2011, 11:51 AM
  4. titles ads
    By ribetos in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: November 15th, 2011, 11:51 AM
  5. How to display full blog posts or summary titles at blog page
    By hafihz in forum ClassiPress General Discussion
    Replies: 5
    Last Post: March 27th, 2011, 11:11 AM