This topic has 6 replies, 4 voices, and was last updated 8 years, 6 months ago ago by Jack Richardson
How do I modify the top bar in the child theme?
I would like to modify the top-bar.php (delete the $, etc..) but I would like that done in the child theme so I don’t have to deal with them again in the updates…
Thank you
Hello,
You can find this file in \themes\royal\headers\parts\ folder.
Please copy the top-bar.php file into Child Theme saving folder structure like: \child-theme\headers\parts\top-bar.php then try to modify.
Regards,
Robert Hall.
here’s the directory structure I have: /wp-content/themes/royal-child/headers/parts/top-bar.php
and I have the following modified code in top-bar.php:
<?php if (etheme_get_option('top_bar')): ?>
<div class="top-bar">
<div class="container">
<div class="languages-area">
<?php if((!function_exists('dynamic_sidebar') || !dynamic_sidebar('languages-sidebar'))): ?>
<div class="languages">
<ul class="links">
<li><a href="http://immunebar.com/">TR</a></li>
<li><a href="http://eng.immunebar.com/">EN</a></li>
</ul>
</div>
<?php endif; ?>
</div>
<div class="top-links">
<?php etheme_top_links(); ?>
<?php if((!function_exists('dynamic_sidebar') || !dynamic_sidebar('top-bar-right'))): ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
… yet the header is the same as original…
Hello,
If you want to remove languages in top bar you need add empty Text widget into “Left Side top bar area” in Appearance > Widgets. Please try it.
Regards,
Eva Kemp.
Nothing there Eva –> http://prntscr.com/8tagmi
I am giving you the ftp and the WP backend access info… please take a look and let me know what the problem is…
Hello,
I’ve added empty Text widget into “Left Side top bar area”. Please check header now.
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up