A WordPress plugin to replace the <h1>
tag with a <div>
for the Mentry theme logo output.
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
- Click the green Code button at the top of this repository and select Download ZIP.
- Extract the downloaded ZIP file. You will get a folder named
mentry-logo-tag-changer
. - Upload the entire
mentry-logo-tag-changer
folder to your WordPress site’s/wp-content/plugins/
directory using FTP or your hosting file manager. - In your WordPress admin dashboard, go to Plugins and activate Mentry Logo H1 to Div.
- Download the
mentry-logo-div-wrapper.php
file from this repository. - Create a new folder named
mentry-logo-tag-changer
in your/wp-content/plugins/
directory. - Upload the
mentry-logo-div-wrapper.php
file into this new folder. - Activate the plugin from the Plugins menu in your WordPress admin dashboard.
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.
- WordPress 5.0 or higher
- Mentry theme (with the pluggable
thsn_logo()
function)
Rana Mansoor Akbar Khan
This plugin is released under the GPLv2 or later.
Pull requests and suggestions are welcome! Please open an issue first to discuss any major changes.
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.