Module Title Online Donation H1

  • Dave B
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 6 months ago #137486 by Dave B
Module Title Online Donation H1 was created by Dave B
Hello, when using a donation module on a page the module adds the "Online Donation" to the page, which is fine but it should not be an H1 tag. The H1 should be the page heading or whatever the page creator sets the H1 to be for SEO reasons. There should only be one H1 tag on any page. That needs to be what we set for SEO, this is hard coded and creates a double H1 tag.

Can the module be changed in a future release to be an H3 or set by us the users? Or have it removed as a setting? Hiding it with CSS is not an option.

Thank you

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137492 by Mr. Dam
Replied by Mr. Dam on topic Module Title Online Donation H1
Hi,
You can modify Donation layout to replace H1 tag by H2 or H3, and Joom Donation supports template override feature, so you can create Donation layout in your Template folder and making modification in that layout replace H tag.
Find code in Donation layout
Code:
<h1 class="jd-page-title"><?php echo JText::_('JD_DONATION'); ?></h1>
and change it to H2, or H3 based on your using purpose.
Good luck
Dam

Please Log in or Create an account to join the conversation.

  • Dave B
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 6 months ago #137820 by Dave B
Replied by Dave B on topic Module Title Online Donation H1
I am going to need a bit more direction on what file to edit, etc.

I really don't understand why you won't just fix this anyway? It's not standard practice for any module to have an H1 title. No other developers do this.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #137870 by Mr. Dam
Replied by Mr. Dam on topic Module Title Online Donation H1
root -> components -> com_jdonation -> view -> donation -> tmpl -> simpleflow_layout.php

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt