-
I used a hook to put some text instead of a logo. See the attached URL in desktop mode. If you shrink the window to mobile, the hooked text doesn’t appear.
What went wrong? Thank you!
-
Hi there,
Which hook are you using?
Let me know 🙂
-
I added the hook. Its used in „generate_inside_navigation“
-
The code dissapeared in the private section so I try it here again:
<div class="site-branding"> <p class="main-title" itemprop="headline"><a href="/" title="Homepage" rel="home">xxx.<strong>xxx</strong></a></p> <p class="site-description">xxx.<strong>xxx</strong></p> </div>
-
Fernando
Hi there,
To clarify, why not use the Site Title or Site Tagline instead in Appearance > Customize > Site Identity instead of the Hook?
The one appearing is the Site Title as well.
If you really want to use the Hook and not the Site Title, go to Appearance > Customize > Layout > Header and try to disable the Mobile Header.
-
In Site Title and Tagline the bold text doesn´t work. Otherwise I would use it.
If I disable the mobile header the Site Title dissapears. But the hook is not visible.
-
Fernando
If you add a high Font Weight value to these texts through the Customizer, does it work? Example: https://share.getcloudapp.com/Z4upPjWw
-
I want one part normal and one part bold. So I need to use HTML. But this stuff doesn´t work in Tagline and Site Title. You see the complete code like <span>test</span>
-
Fernando
You can add this in the Site Title:
Title <span> Title 2</span>
Then, you can still target it in the Customizer.
With this, you wont need the Element.
-
On my test site it shows the code. WordPress can’t handle HTML in Site Title and Tag Line.
-
Fernando
I see. Do you need the Mobile Header enabled in Appearance > Customize > Layout > Header?
If you do, what you can do is create another Hook Element hooked to
generate_inside_mobile_header
to make it appear on your mobile header as well. -
If I disable the Mobile Header I will use the mobile menu, right?
So I need it.
I tried that second hook and it works. Thank you.
-
Hi there,
If I disable the Mobile Header I will use the mobile menu, right?
No. the Mobile Header simply provides a stripped down site header with its own Logo options.
Without it the normal site header will be displayed with the mobile menu. -
Ok, I see. With disabled Mobile Header it works with the hook in „generate_inside_mobile_menu“.
Now there is only one navigation left in the source code which minimizes overhead. Looks like a good thing.
Is there any tradeoff?
-
Not really any tradeoff. the mobile header just simplifies adding a different logo really.
- You must be logged in to reply to this topic.