Timeline for Noob question: want to remove the "site identity" logo for specific part of website only
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2019 at 13:12 | comment | added | ClubShrimp |
Okay, nevermind, I figured it out. Here's the code I used for any future noobs like myself: function change_logo_on_community() { if(is_page(377)){ return false; } else{ return true; } } add_filter( 'astra_has_custom_logo', 'change_logo_on_community' );
|
|
Jun 13, 2019 at 11:41 | comment | added | ClubShrimp | Hi there, I'm having a bit of trouble getting this to work. The filter does work if I place it outside of an if statement, but it affects the whole website. In an if statement, it doesn't seem to have any effect. I've tried a few conditions (is_page, is_single, is_singular) using the page id number as an argument, but I'm not having any luck. How exactly would you go about doing this? | |
Jun 7, 2019 at 17:17 | comment | added | ClubShrimp | Sounds good. I'll have to try this. Thanks! | |
Jun 6, 2019 at 17:29 | history | answered | Pre'P | CC BY-SA 4.0 |