Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove H1 Tags from site title in Digital Pro
Tagged: genesis_site_title_wrap
- This topic has 6 replies, 3 voices, and was last updated 4 years, 4 months ago by Brad Dalton.
-
AuthorPosts
-
December 1, 2019 at 1:57 pm #495148ccarereParticipant
I would like to use h1 tags to target a different keyword on my homepage. The site title is automatically wrapped in h1 tags and would like to know how to remove them to avoid duplicate h1 tags.
I believe I need to add php code to format this element but am not sure where or how to do that without risking the white screen of death.
Thanks in advance,
Christian
https://digitalducats.comDecember 1, 2019 at 2:39 pm #495149AnitaKeymasterAre you using an SEO plugin or the default Genesis SEO?
Love coffee, chocolate and my Bella!
December 1, 2019 at 3:39 pm #495153ccarereParticipantI'm using Yoast
December 14, 2019 at 10:45 am #495504ccarereParticipantNot sure if I need to provide any more information...
December 16, 2019 at 11:58 am #495527Brad DaltonParticipantIf you look in header.php you'll find this filter
$wrap = apply_filters( 'genesis_site_title_wrap', $wrap );
December 16, 2019 at 3:45 pm #495531ccarereParticipantThank you.
But I didn't find that filter...
I wouldn't know how to remove H1 tags if I found it either.Here's the Header php code on Genesis:
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/genesis/
*//**
* Fires at start of header.php, immediately beforegenesis_title
action hook to render the Doctype content.
*
* @since 1.3.0
*/
do_action( 'genesis_doctype' );/**
* Fires immediately aftergenesis_doctype
action hook, in header.php to render the document title.
*
* @since 1.0.0
*/
do_action( 'genesis_title' );/**
* Fires immediately aftergenesis_title
action hook, in header.php to render the meta elements.
*
* @since 1.0.0
*/
do_action( 'genesis_meta' );wp_head(); // We need this for plugins.
?>
</head>
<?php
genesis_markup(
[
'open' => '<body %s>',
'context' => 'body',
]
);if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}/**
* Fires immediately after thewp_body_open
action hook.
*
* @since 1.0.0
*/
do_action( 'genesis_before' );genesis_markup(
[
'open' => '<div %s>',
'context' => 'site-container',
]
);/**
* Fires immediately after the site container opening markup, beforegenesis_header
action hook.
*
* @since 1.0.0
*/
do_action( 'genesis_before_header' );/**
* Fires to display the main header content.
*
* @since 1.0.2
*/
do_action( 'genesis_header' );/**
* Fires immediately after thegenesis_header
action hook, before the site inner opening markup.
*
* @since 1.0.0
*/
do_action( 'genesis_after_header' );genesis_markup(
[
'open' => '<div %s>',
'context' => 'site-inner',
]
);
genesis_structural_wrap( 'site-inner' );December 16, 2019 at 10:17 pm #495535Brad DaltonParticipant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.