Change logo in bootscore 6 #891
-
I am trying to change the logo to a png or jpg file but I cannot find any way to do it. Using the child theme. |
Beta Was this translation helpful? Give feedback.
Answered by
crftwrk
Dec 12, 2024
Replies: 2 comments 1 reply
-
Use a filter in child's /**
* Change path to logos
*/
function change_logo_path($logo, $color) {
if ($color === 'theme-dark') {
return get_stylesheet_directory_uri() . '/path/to/dark-logo.png';
}
return get_stylesheet_directory_uri() . '/path/to/default-logo.png';
}
add_filter('bootscore/logo', 'change_logo_path', 10, 2); Solved? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chopinesque
-
Wow, amazingly fast support! My compliments! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use a filter in child's
functions.php
https://bootscore.me/documentation/filters/#change-paths-to-logos:Solved?