Logo link broken when child theme is activated
-
I’m using the Tiny framework and have created a child theme such that the menu items are styled differently than the parent default. I am following the instructions provided at Child Themes. OK, I haven’t a clue as to what enqueue thing is, the information is clear as mud to me, so I did nothing about that. However, I did a) create a tiny-framework-child directory and (b) placed the style.css file with the custom styles I want and the Tiny Framework’s default functions.php child example file in it (with no changes made).
When I activated the child theme, local install via wampserver, the menu text reflects the child styles, but the link to the logo (site identity) is broken. Reading Child Themes I find the following:
“You may need to re-save your menu from Appearance > Menus and theme options (including background and header images) after activating the child theme.”
There is no Appearance > Menus directory in the theme directory structure and no mention is made about the logo. However, when I look at the page’s source I find the following for the parent theme:
<div class="site-branding" itemprop="publisher" itemscope="itemscope" itemtype="https://schema.org/Organization"> <a href="https://localhost/marco-inc.com/" class="custom-logo-link site-logo-link" rel="home" aria-current="page"><img width="300" height="119" src="https://localhost/marco-inc.com/wp-content/uploads/2019/11/cropped-marco_logo_512x512-e1595434747122.jpg" class="custom-logo attachment-full size-full" alt="Marco Technical Documentation, Inc." /></a> <div id="site-title-wrapper"> <p id="site-title" class="site-title"><a href="https://localhost/marco-inc.com/" rel="home">Marco Technical Documentation, Inc.</a></p> </div><!-- #site-title-wrapper --> </div><!-- .site-branding -->
and for the child theme:
<div class="site-branding" itemprop="publisher" itemscope="itemscope" itemtype="https://schema.org/Organization"> <div id="site-title-wrapper"> <p id="site-title" class="site-title"><a href="https://localhost/marco-inc.com/" rel="home">Marco Technical Documentation, Inc.</a></p> </div><!-- #site-title-wrapper --> </div><!-- .site-branding -->
So, why does activating the child theme break the link to the logo image file?
Thanks, Jeff
The page I need help with: [log in to see the link]
- The topic ‘Logo link broken when child theme is activated’ is closed to new replies.