Home › Forums › Support › Change logo in bulk This topic has 5 replies, 3 voices, and was last updated 7 years, 1 month ago by Leo. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts March 20, 2017 at 9:15 am #294797 Danno 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! March 20, 2017 at 10:38 am #294842 TomLead Developer Lead Developer You could use PHP conditionals with the generate_logo filter: https://docs.generatepress.com/article/generate_logo/ LEt me know if you need more info ๐ March 20, 2017 at 11:13 am #294863 Danno 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; } March 20, 2017 at 6:45 pm #295001 LeoStaff Customer Support Hi Danno, You can use slug, name or ID which ever you wish. Checkout this link for some examples: https://codex.wordpress.org/Conditional_Tags#A_Category_Page And make sure you add in the actual URL for your logo as well. Let me know if this makes sense. March 22, 2017 at 9:00 am #295780 Danno 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! March 22, 2017 at 9:01 am #295781 LeoStaff Customer Support You’re welcome ๐ Glad you figured it out! Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In