So far i know google appreciate a single instance of h1 tag in a page, but it could be anywhere at the priority content area. And all of WordPress front pages does have an element to use inside h1, such as post title, category name, search text, author name etc.
Usually Blog or Front page doesn’t have a Headline or title. So you could try adding it for the front page only.
<?php
$tag = 'div';
if( is_home() || is_front_page() ){
$tag = 'h1';
} ?>
<header class="site-header">
<<?php echo $tag; ?> class="wrap">
...other code...
</<?php echo $tag; ?>>
</header>
Related Posts:
- How to rotate the header image per day?
- where can i add custom script to stop header video from autoplay
- custom headers for static home page and posts page
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- Add a date updated/date modified option using custom fields
- Resizing of a header/div in a website through css in wordpress [closed]
- Manage multiple domains from one backend
- Two description meta tags All in One SEO WordPress [closed]
- How to add css option to Header Image customizer?
- If custom image header does not exist display text header
- Use custom header as WordPress header
- How do I modify the size of the text in my page titles?
- Separate header for static home page and posts page
- How to replace blog page url with subdomain at all places, even in xml sitemap?
- We are facing this error in header unable to understand the issue
- Conflict between Yoast SEO and my custom theme
- Duplicate Header and Footer
- WordPress Install – “end of script output before headers” when running simple php script
- Show Header When Not In Iframe
- Custom Walker: how to get ID in function start_lvl
- New WP_Customize API – how does it work under the hood?
- Data sanitization: Best Practices with code examples
- How to include own css on wordpress tinymce editor?
- how to override woocommerce specific loop or archive-product.php [closed]
- How can I create an alternative home page?
- global menus made from master site’s custom menus wpmu network
- Make page template that is just an “include” of another?
- Customizer image control default value showing in customizer but not on frontend
- Change default status and replace the icon for an hamburger menu
- Count widgets of a certain type
- Custom widget select options needs to stay selected after save
- Syncing Avatars across multisite
- What is the advantage of using header-catname.php over is_category(‘catname’);?
- How can I get the intended URL in a 404?
- Creating user relationships
- Multiple sites/domains with content all managed by single installation of WordPress
- How to change email address used for registrations?
- Loop through custom fields with similar label / common chars in label
- Search result page redirect ex.com/?s=searchterms to ex.com/searchterms
- Add styles with wp_add_inline_style only if modifications exist wp_add_inline_style
- Add custom field to woocommerce variations [closed]
- I want to submit multiple users if checkbox is checked
- How Do I Remove The Right Hand Block On The Main Header?
- Category selectable homepage
- need help with a user-specific custom page template
- Add custom profile field only for site admins?
- Alphabetical Custom Menu
- Creating custom database table with crud operation
- Development environment
- Can I create my own custom Attachment Display Setting?
- How to locate where an element is generated?
- Adding comments to my custom theme
- spaces in a text
- How can I add interactive python console to my website? [closed]
- Show “Read more” link only when inserted manually
- Woocommerce product permalink not working
- create Custom field for tv series
- Data won’t save if metabox within conditional in admin. What am I missing?
- Restrict Viewing of post on both front and backend?
- I w’d like to know If there are simple solutions to integrate other CMSs to wordpress
- add_feed rewrite overwriting standard permalinks
- Editing a post template
- Customizer – How to get theme mod range value?
- Custom select query two tables by a meta key
- Let author add field to metabox by pressing a button
- Date Ordered Archive Page for single category?
- GUID URL Question
- How to Add Additional Search Button?
- WordPress pagination with custom post type?
- Add array of post id’s to a category?
- How to create social Share Buttons Without Plugin
- Customize Widget Navigation
- Add admin page for specific post status (for example)
- How can I style the Comment Section of a blog post
- Custom Meta Box: Value saved in WordPress DB, but not shown in input field on Edit Screen
- Custom post-type working except for Selecting page-parent
- Saving of Draft is failing
- Custom Avatars for WordPress Comments VIA Website URL?
- Combine Categories & Custom Taxonomy
- Upload image without resizing but insert in post with resizing
- Expressions and str_replace
- Best way to move a site to a subfolder for testing purposes?
- Wonderflux Framework Static Homepage
- How to customize theme?
- Creating Action Hooks For Automatic File Inclusion
- Function to query by custom field and category
- Secondary loop doesn’t work
- Custom user fields validation on registration
- Pre_Get_Posts order DESC not registering
- Adding pages to the Admin panel
- Share user access between two wordpress sites
- Best Way To Structure 3 Tiered Site
- What capability is required to view posts, scheduled in the future, by someone else?
- Custom Query Arguments
- Adding page Title in a custom coded page
- Reached end of document without finding – using mod_pagespeed
- Loop display only 5 posts
- Gallery Pagination by Row
- use another theme for just one page
- Post interior margin in twenty eleven theme