Skip to content

Add H1 title to track title, H2 to description and SEO title #93

@ArthurTHick

Description

@ArthurTHick

Thank you for a great component.

I have added an H1 title to the track title and when doing this it also made Description H1, so a few more changes were made to some files and two hew files added so this is H2.

Next added the SEO description for the tracks, it was pulling the site description, added code to default.php file in comjtg/views/track/tmpl/default.php so the SEO description is taken from the track description, limited to the first 160 characters.

Attached are the amended files (seo.zip) and the two new files. I am not a programmer, used Gemini to assist.

An example of the changes working can be seen here: https://sahikes.com/location-maps/hiking-tracks/track/chain-ladder-pass

Files are as follows:
comjtg/views/track/view.html.php
comjtg/views/track/tmpl/default.php
comjtg/assets/template/default/description_close.php
comjtg/assets/template/default/description_open.php
comjtg/assets/template/default/headline_close.php
comjtg/assets/template/default/headline_open.php
comjtg/assets/template/default/subheadline_close.php (new)
comjtg/assets/template/default/subheadline_open.php (new)
comjtg/assets/template/default/jtg_style.css

Kind regards,
Arthur

seo.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions