Skip to content
Remi Corson edited this page Nov 15, 2018 · 3 revisions

I'll be updating this wiki from time to time with answers to questions you may have about that theme...

How to add a Google Analytics tracking code?

I added a dedicated option for that. Simply open the Appearance > Customize > Fredo menu item and paste the tracking code identifier using the following format UA-XXXXXXXX-X.

How to change the logo?

Wait what? You don't wont to use my HTML & CSS powered logo? Ok, I can get that ;-). To change the logo use the following code:

add_filter( 'fredo_site_logo', 'fredo_custom_site_logo' );

function fredo_custom_site_logo() {
	return 'Your logo';
}

You can use a text string, an <img /> tag even a PHP function, like for example:

add_filter( 'fredo_site_logo', 'fredo_custom_site_logo' );

function fredo_custom_site_logo() {
	return get_bloginfo( 'name' );
}

How to modify the logo column width

You can use the following snippet to do so:

add_filter( 'fredo_nav_logo_column_width', 'fredo_custom_fredo_nav_logo_column_width' );

function fredo_custom_fredo_nav_logo_column_width() {
	return 50;
}

Simply replace 50 by any of the available column width available in the assets/_sass/_Grid.sass file.