Top Bar Modification in The Child Theme - by gurhan

This topic has 6 replies, 4 voices, and was last updated 8 years, 6 months ago ago by Jack Richardson

  • Avatar: gurhan
    gurhan
    Participant
    October 20, 2015 at 07:28

    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

    5 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 20, 2015 at 07:40

    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.

    Avatar: gurhan
    gurhan
    Participant
    October 20, 2015 at 08:29

    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…

    Avatar: Eva
    Eva Kemp
    Support staff
    October 20, 2015 at 11:54

    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.

    Avatar: gurhan
    gurhan
    Participant
    October 20, 2015 at 13:48

    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…

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 20, 2015 at 14:04

    Hello,

    I’ve added empty Text widget into “Left Side top bar area”. Please check header now.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.