Tagged: x
-
AuthorPosts
-
April 15, 2016 at 12:13 pm #884551
NEWBIE_USER_PHOENIXParticipantHi there again –
Example:
http://www.speedynets.com/why-choose-speedy-networks/I have used only H2 tags throughout the site.
No H1.
But need one and only one per page for SEO as tools are telling me.Ideas ?
I do use a child and can do PHP and functions if that is best.
Thanks !
SpeedyNetworks.usApril 16, 2016 at 2:21 am #885359
Rue NelModeratorHello There,
Thanks for writing in! To resolve this issue, since you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.
// Add h1 to pages // ============================================================================= add_filter( 'the_content', 'custom_author_code'); function custom_author_code($content) { if (is_page()) { return $content . '<div class="hatom-extra hidden" style="display: none;"><h1 class="title">'. get_the_title() .'</h1> <p>Modified last: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></p></div>' ; } else { return $content; } } // =============================================================================Hope this helps. Kindly let us know.
April 20, 2016 at 9:28 am #891867
NEWBIE_USER_PHOENIXParticipantOne minor glitch.
Now the FRONT page has two H1 so SEO dinged.
From experimenting appears first is from :
ADMIN > SETTINGS > GENERAL > SITE TITLEIf delete then picks up for H1 :
ADMIN > SETTINGS > GENERAL > TAGLINEHow do I have on all pages but front ?
Thanks !
April 20, 2016 at 9:09 pm #892800
Rue NelModeratorHello There,
Please have the code updated and use this instead:
// Add h1 to pages // ============================================================================= add_filter( 'the_content', 'custom_author_code'); function custom_author_code($content) { if ( is_page() && !is_front_page() ) { return $content . '<div class="hatom-extra hidden" style="display: none;"><h1 class="title">'. get_the_title() .'</h1> <p>Modified last: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></p></div>' ; } else { return $content; } } // =============================================================================Please let us know if this works out for you.
April 21, 2016 at 12:01 pm #894007
NEWBIE_USER_PHOENIXParticipantWorks as always!
You can see at :
speedynetworks.us
Thanks Heroes !April 22, 2016 at 1:28 am #894858
DarshanaModeratorGlad we were able to help 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-884551 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
