how to change footer links / credits with a filter in a child theme?
-
I’d like to change the credits and links in the Harmonic footer. Looking at the footer.php, it seems that this could be done with a filter in a child theme and without copying the whole footer.php file from the parent theme to the child theme.
Since my knowledge in php coding is very very limited, I would be glad if someone could point me into the right direction…
Thanks!
There are four footer files:
footer.php
footer-singleportfolio.php
footer-para.php
footer-featuredimage.phpall of theme have a function: do_action ( ‘harmonic_credits’):
<?php /** * The template for displaying the footer. * * Contains the closing of the #content div and all content after * * @package harmonic */ ?> <div class="clear"></div> </div><!-- #content .site-wrapper --> </div><!-- #content-wrapper --> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="site-info"> <?php do_action( 'harmonic_credits' ); ?> <a href="https://www.ads-software.com/" rel="generator"><?php printf( __( 'Proudly powered by %s', 'harmonic' ), 'WordPress' ); ?></a> <span class="sep"> | </span> <?php printf( __( 'Theme: %1$s by %2$s.', 'harmonic' ), 'Harmonic', '<a href="https://wordpress.com/themes/" rel="designer">WordPress.com</a>' ); ?> </div><!-- .site-info --> </footer><!-- #colophon .site-footer --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘how to change footer links / credits with a filter in a child theme?’ is closed to new replies.