logo

Optimasi Heading Tag Wordpress SEO Friendly

Optimasi Heading Tag Wordpress SEO Friendly

SEO Tag Heading H1 H2 H3 H4 di WordPress
Hirarki heading tag wordpress seo friendly:

    Home-page (halaman utama)
    * H1 untuk judul/nama blog
    * H2 untuk judul artikel/posting
    Kategori, tag, arsip dan halaman pencarian (search pages)
    * H4 untuk judul/nama blog
    * H1 untuk kategori, tag, judul arsip atau kata kunci pencarian
    * H2 untuk judul artikel
    Halaman artikel (single post page)
    * H4 untuk judul blog
    * H1 untuk judul artikel/posting
    * H2 untuk judul artikel terkait (kalau ada)
    * H3-H4 untuk link kategori dan tag

File Core Themes WordPress yang perlu diedit dengan kombinasi hirarki seperti di atas:

    header.php (edit the tags for the blog title)

Cari Kode ini:

    <h1><a href=”<?php echo get_option(‘home’); ?>/”><?php bloginfo(‘name’); ?></a></h1>

ganti dengan ini:

    <?php if(is_home()) { ?>
    <h1><a href=”<?php echo get_option(‘home’); ?>/”><?php bloginfo(‘name’); ?></a></h1>
    <?php } else { ?>
    <h4><a href=”<?php echo get_option(‘home’); ?>/”><?php bloginfo(‘name’); ?></a></h4>
    <?php } ?>

2. Archive.php (category, tags, author, archive pages)

Cari kode

    <h2>Archive for the…</h2>

Ganti dengan:

    <h1>Archive for the…</h1>

3. Single.php (single post page)

Cari kode:

    <h2><?php the_title(); ?></h2>

ganti dengan:

    <h1><?php the_title(); ?></h1>

4. Search.php (search results pages)

Cari:

    <h2>Search Results</h2>

ganti dengan:

    <h1>Search Results</h1>

atau ganti dengan ini:

    <?php $key = wp_specialchars($s, 1); ?>
    <h1>Search Results for &quot;<?php print $key; ?>&quot;</h1>



Atau, Anda bisa dengan kombinasi Hirarki seperti ini:

Di home-page (halaman utama)
* H1 untuk judul/nama blog
* H2 untuk judul artikel/posting

Di single post.
* H1 untuk judul artikel/posting
* H2 untuk judul/nama blog

Caranya dengan:

1. Langkah Pertama di Single.php

Cari kode:

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <h2><a href=”<?php echo get_permalink() ?>” rel=”bookmark” title=”Permanent Link: <?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2>

Ganti dengan:

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <h1><a href=”<?php echo get_permalink() ?>” rel=”bookmark” title=”Permanent Link: <?php the_title_attribute(); ?>”><?php the_title(); ?></a></h1>

2. Langkah kedua di header.php

Cari kode:

    <h1><a href=”<?php echo get_option(‘home’); ?>”><?php bloginfo(‘name’); ?></a></h1>

ganti dengan kode:

    <?php if(is_home()) : ?>
    <h1><a href=”<?php echo get_option(‘home’); ?>”><?php bloginfo(‘name’); ?></a></h1>
    <?php else : ?>
       <span id=”blogTitle”>
        <a href=”<?php echo get_option(‘home’); ?>”><?php bloginfo(‘name’); ?></a>
        </span>
    <?php endif; ?>

3. Ganti dan edit file style.php

    span#blogTitle {
        display: block;
        font-size: 4em;
        text-align: center;
        padding-top: 70px;
        font-weight: bold;
        font-family: ‘Trebuchet MS’,'Lucida Grande’,Verdana,Arial,Sans-Serif;
    }
    span#blogTitle a {
        color: white;
        text-decoration: none;
    }
    span#blogTitle a:hover {
        text-decoration: none;
    }
    
    .post h1 {
        color: #333333;
        text-decoration: none;
        font-size: 1.6em;
        text-align: left;
        padding-top: 0;
    }



Semoga Sukses…

0 komentar:

Posting Komentar