Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
970bb342
authored
2023-11-24 14:17:42 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
logo
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
b0b4951f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
wp-content/themes/msf-child/global-templates/navbar-branding.php
wp-content/themes/msf-child/global-templates/navbar-branding.php
View file @
970bb34
...
...
@@ -30,10 +30,13 @@ if ( ! has_custom_logo() ) { ?>
<?php
}
else
{
$custom_logo_id
=
get_theme_mod
(
'custom_logo'
);
$logo
=
wp_get_attachment_image_src
(
$custom_logo_id
,
'full'
);
if
(
has_custom_logo
()
)
{
$logo
=
wp_get_attachment_image_src
(
$custom_logo_id
,
'full'
);
?>
<a
rel=
"home"
href=
"
<?php
echo
esc_url
(
home_url
(
'/'
)
);
?>
"
itemprop=
"url"
>
<?php
if
(
has_custom_logo
()
)
{
echo
'<img width="150" height="62" src="'
.
esc_url
(
$logo
[
0
]
)
.
'" alt="'
.
get_bloginfo
(
'name'
)
.
'">'
;
}
else
{
echo
'<h1>'
.
get_bloginfo
(
'name'
)
.
'</h1>'
;
}
}
?>
</a>
...
...
Please
register
or
sign in
to post a comment