Skip to content

Commit

Permalink
Merge pull request #4183 from Codeinwp/fix/seo_brand_title_by_device
Browse files Browse the repository at this point in the history
fix: SEO site-title tag for homepage
  • Loading branch information
preda-bogdan authored Jan 26, 2024
2 parents c026d54 + d642dc1 commit 62e452d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions header-footer-grid/templates/components/component-logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
use HFG\Core\Builder\Header as HeaderBuilder;
use HFG\Core\Components\Logo;

$_id = current_component( HeaderBuilder::BUILDER_NAME )->get_id();
$_id = current_component( HeaderBuilder::BUILDER_NAME )->get_id();
$device = current_device( HeaderBuilder::BUILDER_NAME );

$show_name = component_setting( Logo::SHOW_TITLE );
$show_desc = component_setting( Logo::SHOW_TAGLINE );
Expand All @@ -26,7 +27,7 @@
$custom_logo_id = isset( $conditional_logo['light'] ) ? $conditional_logo['light'] : $active_logo;

$wrapper_tag = 'p';
if ( get_option( 'show_on_front' ) === 'posts' && is_home() ) {
if ( get_option( 'show_on_front' ) === 'posts' && is_home() && $device === 'desktop' ) {
$wrapper_tag = 'h1';
}

Expand Down

0 comments on commit 62e452d

Please sign in to comment.