Hi
Sorry for this issue.
I’m not sure how you modified template-tags.php file in your child theme, but anyway, you can try the following solution.
First of all, don’t modify the related functions which is located in template-tags.php, just use hook, let’s check the header hook below
/**
* Header
* @see lithestore_before_navigation()
* @see lithestore_custom_logo()
* @see lithestore_primary_navigation()
* @see lithestore_top_buttons()
* @see lithestore_after_navigation()
* @see lithestore_cover()
*/
add_action( 'lithestore_header', 'lithestore_before_navigation',0);
add_action( 'lithestore_header', 'lithestore_custom_logo',10);
add_action( 'lithestore_header', 'lithestore_primary_navigation',20);
add_action( 'lithestore_header', 'lithestore_top_buttons',30);
add_action( 'lithestore_header', 'lithestore_after_navigation',40);
add_action( 'lithestore_header', 'lithestore_cover',50);
You can see the lithestore_header hook includes those functions which you can find them in template-tags.php, right?
For example, let’s say you want to modify lithestore_primary_navigation function, just copy this function to the functions.php of your child theme, and change the function name to custom_primary_navigation() as below
/**
* Primary Navigation
*/
function custom_primary_navigation(){
echo'<nav id="site-navigation" class="main-navigation ls-grid ls-col7" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><i class="fa fa-bars"></i></button>'.wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu','echo' => false ) ).'</nav><!-- #site-navigation -->';
}
Then, just modify the content, and put the following codes above this function
remove_action( 'lithestore_header', 'lithestore_primary_navigation',20);
add_action( 'lithestore_header', 'custom_primary_navigation',20);
Then, your custom function will replace to the original function.
The complete code is
/**
* Primary Navigation
*/
remove_action( 'lithestore_header', 'lithestore_primary_navigation',20);
add_action( 'lithestore_header', 'custom_primary_navigation',20);
function custom_primary_navigation(){
echo'<nav id="site-navigation" class="main-navigation ls-grid ls-col7" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><i class="fa fa-bars"></i></button>'.wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu','echo' => false ) ).'</nav><!-- #site-navigation -->';
}
Thanks!