Uber menu after theme update

Mr. Movin or Aigars,

Afther a reason theme update my ubermenu is not showing correctly on my site anymore. With te old theme i had to change the header-extension.php by addig the following code;

<?php if( function_exists( ‘ubermenu’ ) ): ?>
<?php ubermenu( ‘main’ , array( ‘theme_location’ => ‘primary’ ) ); ?>
<?php else: ?>
<nav id=“navigation”>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
</nav>
<?php endif; ?>

When i look at the refreshed header extension PhP I cannot find where to put this code now. Can you please tell me where to put this ubermenu code and what i have to do so it will not change with a future theme updates. I already heave the header-funtion.php in my child theme bud this is not working.

Hope to hear from you soon

Regards

WIMA

Found the place where to put the ubermenu code, bud i still wanted to know how i to avoid changes with next theme update.

Regards

WIMA

Hi WIMA,

I hope you are well today and thank you for your question.

You can try achieving this with update proof way by using the attached small custom plugin specially developed for you.

Best Regards,
Movin