Site logo

Archived topic

Change logo in bulk

5 replies · Started by Danno on March 20, 2017

Viewing posts 1–6 of 6

Hi, I love the fact that we can change the logo on some pages using the optin in the Page Header section.

I have dozens of pages I'd like to use an alternate logo for.

Any way to change those in bulk? Or is just page by page?

Thanks!

Thank you.

In the example, how would I correctly add the category? By name or slug or ID? (I've tried all three and couldn't see any result...)

Thanks!

add_filter( 'generate_logo','tu_category_logo' );
function tu_category_logo( $logo ) {

// Return our category logo URL
if ( is_category() ) {
return 'URL TO YOUR CATEGORY LOGO';
}

// Otherwise, return our default logo
return $logo;
}

Thanks for that link.

I figured out I needed in_category, not is_category, and that made it work.

For a non-coder like me, it feels like magic!

You're welcome :) Glad you figured it out!

This archived topic is closed to new replies.