Page 1 of 1

[Alpha] Dynamic H2 Header

Posted: Tue Jan 19, 2016 11:13 pm
by Volksdevil
Please let me know if you install it, and it works as it should. :) And any coding advice appreciated if you look over the code.

Extension Name:
Dynamic H2 Header.

Extension Description:
Turns the <p> element in your header into a <H2>, which dynamically shows the page title as a description. The h2 will also have a canonical link applied on relevant pages (viewforum/viewtopic).
On the index page it will show your site description as filled out in the ACP.

Features:
  • Adds proper canonical link on 'viewforum' and 'viewtopic' pages.
Demo URL:
http://www.testphpbb.co.uk
User: Test
Pass: testing

Extension Download:
http://www.testphpbb.co.uk

Install instructions:
Download and extract the zip folder.
Upload the 'volksdevil' folder to your boards 'ext' folder so that you have:
YOUR_BOARD_ROOT/ext/volksdevil/h2dynamicheader
Navigate to the 'customise' tab and enable the 'Dynamic H2 Header' extension.

Screenshots:
Index page. Your site description is retained. But is now a <H2>
Image

Viewing forum. Site description is replaced with forum name in a <H2>, and has a canonical link applied.
Image

Viewing ftopic. Same as above.
Image

Author:
Volksdevil

Extension Version:
1.0.0

Requirements:
Only developed with prosilver in mind. Can work for others.

Re: [Alpha] Dynamic H2 Header

Posted: Wed Jan 20, 2016 1:40 am
by KhurramMunawar
Extension is working perfect but who gonna notice that little change in header.

I mean to say that it should be a visible and noticeable change.

Re: [Alpha] Dynamic H2 Header

Posted: Wed Jan 20, 2016 4:53 am
by Lumpy Burgertushie
I would assume that the whole point of this change is for SEO. I have to say, it is the first SEO type thing I have seen done for phpbb that actually will help with SEO.


robert

Re: [Alpha] Dynamic H2 Header

Posted: Wed Jan 20, 2016 9:31 am
by cece74
I 'm a SEO. This does not help.

Re: [Alpha] Dynamic H2 Header

Posted: Wed Jan 20, 2016 12:48 pm
by TWEagle
IS it also possible to change this to the H1??

this as H1 in place of the name of the board??

Re: [Alpha] Dynamic H2 Header

Posted: Wed Jan 20, 2016 2:16 pm
by Volksdevil
Lumpy Burgertushie wrote:I would assume that the whole point of this change is for SEO. I have to say, it is the first SEO type thing I have seen done for phpbb that actually will help with SEO.
robert
Yep :) In an ideal World, the site name should become a h2 on forum/topic pages, and the description (Dynamic Page title in this case) should become the h1, though this is all subjective. I just go off what Matt Cutts says then you can't go far wrong.

I've hard coded it that way on one of my sites, but either way, google does notice the change. (Tested both methods).

I've done a hell of a lot of reading up on page titles, 'H' tags and descriptions from an SEO standpoint. Where google once often reverted to using menu items or choosing it's own page title in SERPS for my site, there has been a definite change where it now shows many more relevant words/page titles, picked from either the page title or an 'H' tag.

The possible main benefit of this, is that the newly created H2 becomes a proper internal canonical link, when viewing a topic for example, it does not contain the f= parameter. 8-)

The only slight issue as it stands is that this is created on the fly with jQuery, where I'd like to be able to use EVENTS to properly replace/insert HTML. But I'm still learning yet, this and my other few extensions are my very first so I'm just seeing how they go, then maybe I can request EVENTS be added.