Skip to content

rmak78/mentry-logo-tag-changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mentry Logo H1 to Div

A WordPress plugin to replace the <h1> tag with a <div> for the Mentry theme logo output.


Description

By default, the Mentry WordPress theme wraps the site logo in an <h1> tag on the homepage. This plugin overrides the theme’s thsn_logo() function to always use a <div> instead, improving flexibility for site owners who want to avoid multiple <h1> tags or prefer different markup.

  • No theme file editing required
  • Works with Mentry’s pluggable logo function
  • Maintains all original logo features, including sticky and responsive logos

Installation

Method 1: Download ZIP (Recommended)

  1. Click the green Code button at the top of this repository and select Download ZIP.
  2. Extract the downloaded ZIP file. You will get a folder named mentry-logo-tag-changer.
  3. Upload the entire mentry-logo-tag-changer folder to your WordPress site’s /wp-content/plugins/ directory using FTP or your hosting file manager.
  4. In your WordPress admin dashboard, go to Plugins and activate Mentry Logo H1 to Div.

Method 2: Manual Upload

  1. Download the mentry-logo-div-wrapper.php file from this repository.
  2. Create a new folder named mentry-logo-tag-changer in your /wp-content/plugins/ directory.
  3. Upload the mentry-logo-div-wrapper.php file into this new folder.
  4. Activate the plugin from the Plugins menu in your WordPress admin dashboard.

Usage

Once activated, the plugin will:

  • Override the default thsn_logo() function of the Mentry theme.
  • Wrap the logo in a <div class="site-title"> instead of an <h1> tag, on all pages.

No further configuration is required.


Requirements

  • WordPress 5.0 or higher
  • Mentry theme (with the pluggable thsn_logo() function)

Author

Rana Mansoor Akbar Khan


License

This plugin is released under the GPLv2 or later.


Contributing

Pull requests and suggestions are welcome! Please open an issue first to discuss any major changes.


Disclaimer

This plugin is designed specifically for the Mentry theme and may not work with other themes. Use at your own risk and always back up your site before making changes.

About

Mentry Theme logo tag changer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages