Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

logo

Conditional Site Logo(Category Based)

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/

Categories categories Tags categories, custom-header, logo

Help! Need a different logo on my main page from my other pages

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

Categories functions Tags customization, functions, logo

Change logo depending on domain

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.

Categories domain Tags domain, logo

How to change a logo on a wordpress site that is part of a 7 site multisite?

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

Categories multisite Tags logo, multisite

How to Take Logo Out of Navigation Menu? [closed]

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

Categories CSS Tags css, html, logo

Multiple logo’s in wordpress menu

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

Categories customization Tags customization, logo

Twenty Fourteen: Shrinking header while scrolling down

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

Categories CSS Tags css, headers, logo, theme-twenty-fourteen

How get the logo for my custom theme

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(); } }

Categories logo Tags logo

Alt header logo and link for specific pages

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

Categories theme-development Tags filters, logo, theme-development

How do I move my logo from the center to left (Pixgraphy theme)

use container-fluid class instead of container in header.php file of Pixgraphy theme. Remove text-align: center and margin: 0 auto from the ID site-branding in your style.css. You can also overwrite it using custom stylesheet editor. Also, add below style to resolve your issue. #site-branding { float: left; } Thanks

Categories CSS Tags css, logo
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page13 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress