How would I go about replacing this function in my child theme located in inc/template-tags.php


How would I replace this function that lies inside inc/template-tags.php in my parent theme

function theme_navigation() {
        <div id="theme-nav-container">
            <nav id="site-navigation" class="main-navigation">
                <?php wp_nav_menu( array('theme_location' => 'theme-studios-primary', 'menu_class' => 'sf-menu', 'fallback_cb' => false, 'walker'  => new theme ) ); ?><div class="clearfix-pro"></div>
            <div class="clearfix-pro"></div>
        <!-- close #theme-nav-container -->

There is no add action that it is hooked on to, there is no check to see if the function already exists. How would I replace it without touching the parent theme. I have removed much of the code in the function for brevity but I think it still makes sense.

Thanks ahead of time

, , , Anders Kitson 1 year 2020-07-11T10:10:34-05:00 0 Answers 71 views 0

Leave an answer