Footer site-title location

#1
Heya!

I've been trying to find where the footer site-title is located in the child theme as I'd like to remove it.

I can remove it with CSS

.site-footer .site-title {
display:none;
}

But I'd like to understand what is telling it to be there as it's not so obvious to me after scanning through the PHP files.

I assume I'll need to filter this out?

I've hooked in my own footer credit info using extender but this appears after the site-title.

Cheers!

Brett
 

eric

Administrator
Cobalt Apps Developer
#2
Here's the Freelancer Footer code that adds the footer site-title content:
PHP:
add_action( 'freelancer_credits', 'freelancer_do_credits' );
/**
 * Build the site credits.
 *
 * @since 1.0.0
 */
function freelancer_do_credits() {

    ?><span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span><?php
    esc_html_e( 'Copyright &copy; ', 'freelancer' ); echo date('Y');
    
}
So you just need to remove action that like so:
PHP:
remove_action( 'freelancer_credits', 'freelancer_do_credits' );
And then you're all set, or if you wanted to replace it with something you could just add action code in its place like so:
PHP:
add_action( 'freelancer_credits', 'custom_freelancer_do_credits' );
/**
 * Build the custom site credits.
 */
function custom_freelancer_do_credits() {

    // Just tweak the code below to do what you want...
    ?><span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span><?php
    esc_html_e( 'Copyright &copy; ', 'freelancer' ); echo date('Y');
    
}