Hello,
I could use the help of our community with schema.org. I run clean SEO on my website and I realized that my site just not performs and got kicked out of the rankings. Since I am employed as a SEO Manager, I analyzed the schema.org codes and realized that the structure of the newsmag theme is not easy to understand.
I think this issues is really important for everybody who is using the theme. A good, clean (seo)-site struture is important in our time!
Basically I want to change:
header.php
index.php
single.php
page.php
footer.php
sidebar.php
Sounds simple at the beginning. So, my goal is that searchengines should understand our pages better.
This article has a simple instructions, but when I looked at our Theme … just stopped by.
This is the article: http://www.bloggingspell.com/add-schema-org-markup-wordpress/
Would be nice if somebody of you or ever theme-creator can help me and the unexperienced community to improve our rankings. I would like know where i can change the following items ->
Greetings from Germany
Editing header.php (Header Template)
Find:
<body <?php body_class(); ?>>
Replace with:
<body <?php body_class(); ?> itemscope=”itemscope” itemtype=”http://schema.org/WebPage”>
Find:
<header id=”masthead” class=”site-header” role=”banner”>
Replace with:
<header id=”masthead” class=”site-header” itemscope=”itemscope” itemtype=”http://schema.org/WPHeader” role=”banner”>
Find:
<h1 class=”site-title”>
Replace with:
<h1 class=”site-title” itemprop=”headline”>
Find:
<h2 class=”site-description”>
Replace with:
<h2 class=”site-description” itemprop=”description”>
Find:
<nav id=”site-navigation” class=”main-navigation” role=”navigation”>
Replace with:
<nav id=”site-navigation” class=”main-navigation” itemscope=”itemscope” itemtype=”http://schema.org/SiteNavigationElement” role=”navigation”>
Editing index.php (Homepage Template)
Open up your theme index.php and edit these lines:
Find:
<main id=”main” class=”site-main” role=”main”>
Replace with:
<main id=”main” class=”site-main” role=”main” itemprop=”mainContentOfPage” itemscope=”itemscope” itemtype=”http://schema.org/Blog”>
Find:
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
Replace with:
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?> itemscope=”itemscope” itemtype=”http://schema.org/BlogPosting” itemprop=”blogPost”>
Find:
<h2 class=”entry-title”>
Replace with:
<h2 class=”entry-title” itemprop=”headline”>
Find:
<div class=”entry-thumb”>
Replace with:
<div class=”entry-thumb” itemprop=”image”>
Find:
<time class=”entry-time published” datetime=”<?php the _time(‘c’); ?>>
Replace with:
<time class=”entry-time published” datetime=”<?php the _time(‘c’); ?>” itemprop=”datePublished”>
Find:
<span class=”author-link”>
Replace with:
<span class=”author-link” itemscope=”itemscope” itemtype=”http://schema.org/Person” itemprop=”author”>
Find:
<span class=”author vcard”>
Replace with:
<span class=”author vcard” itemprop=”name”>
Find:
<div class=”entry-summary”>
Replace with:
<div class=”entry-summary” itemprop=”text”>
Find:
<div class=”entry-content”>
Replace with:
<div class=”entry-content” itemprop=”text”>
Editing single.php (Post Template)
Open up your single.php and make these changes:
Find:
<main id=”main” class=”site-main” role=”main”>
Replace with:
<main id=”main” class=”site-main” role=”main” itemprop=”mainContentOfPage” itemscope=”itemscope” itemtype=”http://schema.org/Blog”>
Find:
<h1 class=”entry-title”>
Replace with:
<h1 class=”entry-title” itemprop=”headline”>
Find:
<div class=”entry-content”>
Replace with:
<div class=”entry-content” itemprop=”text”>
Find:
<time class=”posted-on published” datetime=”<?php the _time(‘c’); ?>>
Replace with:
<time class=”posted-on published” datetime=”<?php the _time(‘c’); ?>” itemprop=”datePublished”>
Find:
<span class=”author-link”>
Replace with:
<span class=”author-link” itemscope=”itemscope” itemtype=”http://schema.org/Person” itemprop=”author”>
Find:
<span class=”author vcard”>
Replace with:
<span class=”author vcard” itemprop=”name”>
Find:
<div class=”entry-thumb”>
Replace with:
<div class=”entry-thumb” itemprop=”image”>
Find:
<div class=”entry-content”>
Replace with:
<div class=”entry-content” itemprop=”text”>
Editing page.php (Page Template)
Open up your page.php and edit these lines:
Find:
<main id=”main” class=”site-main” role=”main”>
Replace with:
<main id=”main” class=”site-main” role=”main” itemprop=”mainContentOfPage” itemscope=”itemscope” itemtype=”http://schema.org/Blog”>
Find:
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
Replace with:
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?> itemscope=”itemscope” itemtype=”http://schema.org/BlogPosting” itemprop=”blogPost”>
Find:
<h1 class=”entry-title”>
Replace with:
<h1 class=”entry-title” itemprop=”headline”>
Find:
<div class=”entry-content”>
Replace with:
<div class=”entry-content” itemprop=”text”>
Editing footer.php (Footer Template)
Open your footer.php and change these lines:
Find:
<footer id=”colophon” class=”site-footer” role=”contentinfo”>
Replace with:
<footer id=”colophon” class=”site-footer” role=”contentinfo” itemscope=”itemscope” itemtype=”http://schema.org/WPFooter”>
Editing sidebar.php (Sidebar Template)
Open up your sitebar.php file and change this line:
Find:
<div id=”secondary” class=”widget-area” role=”complementary”>
Replace with:
<div id=”secondary” class=”widget-area” role=”complementary” itemscope=”itemscope” itemtype=”http://schema.org/WPSideBar”>
-
This topic was modified 10 years by
reich90.
Hi
Our theme does not handle sit’s seo and for that you can us ea plugin like SEO By Yoast which is tested and works fine. Also theme’s code is written according with google standards regarding page structure and also have all necessary markups added in its code.
You can add additional markups for SEO by editing theme’s files if you want. Here You can find the files specified above: http://screencast.com/t/QmHgPEmMRPy Note that indicated article refers to a basic wp-theme with a very simple structure for files and very few options. The code, css classes and file structure is completely different and you can’t just copy paste some code in some files. First you will have to understand how post/pages are generated by our theme in order to make some changes in html structure.
This task involve time and also good coding skills in order to be achieved. If you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you as we can’t offer customization services at the moment.
Thanks!