Skip to content

Change logo in bootscore 6 #891

Closed Answered by crftwrk
chopinesque asked this question in Q&A
Discussion options

You must be logged in to vote

Use a filter in child's functions.php https://bootscore.me/documentation/filters/#change-paths-to-logos:

/**
 * 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?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by chopinesque
Comment options

You must be logged in to vote
1 reply
@crftwrk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants