Support » Theme: Max Magazine » Duplicate balise title h1 & H2

  • Hi,
    I realize that my current theme Max Magazine is not really opti for referencing. So I have several problems:

    1) On my articles
    Take for example this one for you to understand. By extending Webdeveloper Firefox, I have a plan of my document that looks like this:

    h1: Hunter Sunday | News from hunting in France
    h2: Man versus nature
    h1: Portrait of hunter Damien Simon
    h2: Damien Simon, Hunter East
    h2: Hunter and proud of it
    h3: Share this article on:
    etc …

    You will therefore notice, the title of my article is Portrait hunter Damien Simon and I have inserted two subtitles in h2 with Damien Simon, Hunter East and Hunter and proud of it

    The first h1 (Hunter Sunday | News from hunting in France) and h2 (Man versus nature) are actually the title of my site and the slogan, which was given in the table edge WordPress Appearance section and Customize.

    The h1 and H2 are found on my home page on the logo (but they are not seen because I think I put invisible). The h1 and h2 are first duplicated on all my items before section h1 and h2 subtitles.

    My first question is: how to remove the h1 and h2 duplicated on my items? I think we should change the header.php but I do not know what. That’s why I put my header.php code below:

    <?php get_header(); ?>
    
    <div id="content">        
    
            <?php if (have_posts()) { ?>
                <?php while (have_posts()) : the_post(); ?>
    
                    <div id="post-<?php the_ID(); ?>" <?php post_class('single-post'); ?>>
    
                        <h1><?php the_title(); ?></h1>
                        <div class="post-meta">                            
    
                            <div class="post-meta">
                                <span class="date"><?php the_time('j F Y'); ?></span>
                                <span class="sep"> - </span>
                                <span class="category"><?php the_category(', '); ?></span>
                                <?php the_tags( '<span class="sep"> - </span><span class="tags">' . __('Mots-clés: ', 'max-magazine' ) . ' ', ", ", "</span>" ) ?>
                                <?php if ( comments_open() ) : ?>
                                    <span class="sep"> - </span>
                                    <span class="comments"><?php comments_popup_link( __('Commentaires', 'max-magazine'), __( '1 commentaire', 'max-magazine'), __('% comments', 'max-magazine')); ?></span>
                                <?php endif; ?>
                            </div>
    
                        </div><!-- /post-meta -->
    
                        <div class="post-entry">
                            <?php the_content(); ?>
                        </div><!-- /post-entry -->
                        <?php if ( ( max_magazine_get_option( 'show_author' ) == 1 ) and ( get_the_author_meta('description') != '' ) ) { ?>
    
                            <div class="author">    
    
                                <h3><?php _e('About the author', 'max-magazine') ?></h3>
                                    <?php if (function_exists('get_avatar')) {
                                        echo get_avatar( get_the_author_meta('email'), '50' );
                                    } ?>
                                <div class="author-meta">
                                    <div class="name"><?php the_author_posts_link(); ?></div>
                                    <p><?php the_author_meta('description') ?></p>
                                </div>
                            </div><!-- /author-meta -->
    
                        <?php } ?>
    
                        </div><!-- post -->
                        <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'max-magazine'), 'after' => '</div>')); ?>
    
                    <?php comments_template( '', true ); ?>
    
                <?php endwhile; ?> 
    
                <?php if (  $wp_query->max_num_pages > 1 ) { ?>
    
                    <div class="navigation">
                        <div class="previous"><?php next_posts_link( __( '‹ Older posts', 'max-magazine' ) ); ?></div>
                        <div class="next"><?php previous_posts_link( __( 'Newer posts ›', 'max-magazine' ) ); ?></div>
                    </div>
                <?php } ?>
    
            <?php } else { ?>
    
                <div id="post-0" class="post">
                    <h2><?php _e( 'Nothing Found', 'max-magazine' ); ?></h2>
                    <p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help.', 'max-magazine'); ?></p>
                    <?php get_search_form(); ?>
                </div>
    
            <?php } ?> <!-- /have_posts -->        
    
    </div><!-- /content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    [Google translated]

  • The topic ‘Duplicate balise title h1 & H2’ is closed to new replies.