Site Icon upload and display in a theme
Please find the answer here – https://codex.wordpress.org/Creating_a_Favicon
Please find the answer here – https://codex.wordpress.org/Creating_a_Favicon
You could check the current category and apply a different class with each logo, $cur_topic = $queried_object->slug; $my_class=”default-logo”; switch ($cur_topic) { case “food”: $my_class=”food-logo”; break; case “lifestyle”: $my_class=”lifestyle-logo”; break; case “fiction”: $my_class=”fiction-logo”; break; default: $my_class=”default-logo”; } echo ‘<div class=”‘ . $my_class . ‘”></div>’; Alternatively, check out the following plugin: https://en-za.wordpress.org/plugins/taxonomy-images/
In your header.php which you copied into your child theme, replace the logo request with this: If (is_front() || is_home) { //Your logo for the front page }Else { // Your other logo } If your home page is static use is_front. If your home page is blogs use is_home. I looked up your theme … Read more
Perhaps get the http referrer on the home page and store it in a cookie, then read the cookie on each page load and show the corresponding logo.
Use CSS Trick to change the logo Go to Site3 (site you want to change the logo) dashboard / Customize / Additional CSS place below code and and put your logo under wp-content/themes/bridge/img/ Here I installed bridge on local host and created 2 sites on network . .q_logo a img{ background-image: url(wp-content/themes/bridge/img/pin.png)!important; background-repeat:no-repeat; height:70px !important; … Read more
I was going to leave this as a comment since questions about CSS are off-topic here, but it wasn’t going to fit. There is a rule in your inline CSS at line 75, which hides the menu of the screens sized less than 750 pixel. This is it: @media only screen and (max-width: 750px) { … Read more
You can use an if statement in the header if ( is_home() ) { <img src=”https://wordpress.stackexchange.com/home-image.png”/> } else { <img src=”/other-image.png”/> } Below are a few more way to pick a specific page // When any single Page is being displayed. is_page(); // When Page 42 (ID) is being displayed. is_page( 42 ); // When … Read more
Ok, Pradhana. This is going to be around about solution to your question, but the first thing that I believe that you would need to do is create a child theme. Go over to WordPress.org and do a little studying on how to create a child theme. Then you’ll have to add a javascript file … Read more
Setting up theme logo with custom size in functions.php : function theme_prefix_setup() { add_theme_support( ‘custom-logo’, array( ‘height’ => 100, ‘width’ => 400, ‘flex-width’ => true, ) ); } add_action( ‘after_setup_theme’, ‘theme_prefix_setup’ ); Output custom logo: function theme_prefix_the_custom_logo() { if ( function_exists( ‘the_custom_logo’ ) ) { the_custom_logo(); } }
You are not using all possibilities of the get_custom_logo filter. As you can see from the source not only the $html is passed to it, but also the $blog_id. You can use the latter to do a preg_replace on the link like this: add_filter (‘get_custom_logo’,’wpse305624_change_logo_link’,10,2); function wpse305624_change_logo_link ($html,$blog_id) { $homelink = get_home_url (); $bloglink = … Read more