• Resolved sunk8

    (@sunk8)


    Hey Tim,

    I want to change the site credits text and link color. However, I cannot find the file to change that text. Kindly advice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Tim Nicholson

    (@timnicholson)

    Hi. To change the site credits link color and hover color, you can add CSS like this:

    .site-credits a { color: #123456; }
    .site-credits a:hover { color: #123456; }

    To change the actual text, there is basically two ways. You can directly edit the file footer.php in the parent theme (Flat Bootstrap). You’d change the line that starts with $site_credits =. But I built in a better way. In the functions.php file within the Link theme, you can create a function to override the text from the parent theme. Here is an example of that:

    /*
     * OVERRIDE THE SITE CREDITS TO GET RID OF THE "THEME BY XTREMELYSOCIAL" AND JUST LEAVE
     * COPYRIGHT YOUR SITE NAME
     *
     * You can hard-code whatever you want in here, but its better to have this function pull
     * the current year and site name and URL as shown below.
     */
    add_filter('xsbf_credits', 'xsbf_child_credits');
    function xsbf_child_credits ( $site_credits ) {
    
    	$theme = wp_get_theme();
    	$site_credits = sprintf( __( '© %1$s %2$s', 'xtremelysocial' ),
    		date ( 'Y' ),
    		'<a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . get_bloginfo( 'name' ) . '</a>'
    	);
    	return $site_credits;
    }

    Thread Starter sunk8

    (@sunk8)

    Thanks Tim. It worked. You’re awesome!

    Really useful! Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change site credits text and color’ is closed to new replies.