[Theme: Pinnacle] How to change footer text in child theme
-
footer.php has this code to generate the text in the footer:
<div class="footercredits clearfix"> <?php if (has_nav_menu('footer_navigation')) :?> <div class="footernav clearfix"> <?php wp_nav_menu(array('theme_location' => 'footer_navigation', 'menu_class' => 'footermenu'));?> </div> <?php endif;?> <?php if(!empty($pinnacle['footer_text'])) { $footerstring = $pinnacle['footer_text']; $footerstring = str_replace('[copyright]','©',$footerstring); $footerstring = str_replace('[the-year]',date('Y'),$footerstring); $footerstring = str_replace('[site-name]',get_bloginfo('name'),$footerstring); $footerstring = str_replace('[theme-credit]','- WordPress Theme by <a href="https://www.kadencethemes.com/" target="_blank">Kadence Themes</a>',$footerstring); echo '<p>'. do_shortcode($footerstring).'</p>';} ?> </div><!-- credits -->
Is there a way to override this using functions.php in child theme or do I need to copy footer.php to child theme folder and edit manualy?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Theme: Pinnacle] How to change footer text in child theme’ is closed to new replies.