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

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 the Page with a post_title of "Contact" is being displayed.
is_page( 'Contact' );

// When the Page with a post_name (slug) of "about-me" is being displayed.
is_page( 'about-me' );

Related Posts:

  1. Display a default image for custom-logo
  2. Add more then one site logo – custom-logo theme support
  3. Get Custom Logo Alt Text
  4. how to add custom logo to my template
  5. How to unpixelate logo?
  6. Change Site Logo or Menu Logo Per Page
  7. How to: Easily Move a WordPress Install from Development to Production?
  8. Is there a flowchart for WordPress loading sequence?
  9. Essential technical features for high-end WordPress web hosting? [closed]
  10. How to remove admin menu pages inserted by plugins?
  11. How to put logs in WordPress
  12. How to get the Date Format and Time Format settings for use in my template?
  13. Where are Additional CSS files stored
  14. Best Practices for Regression Testing WordPress Websites?
  15. Remove wrapping div and ul from output of wp_nav_menu
  16. What Is The Use Of map_meta_cap Filter?
  17. get post author id outside loop
  18. Custom Walker: how to get ID in function start_lvl
  19. Creative uses of WordPress [closed]
  20. How to *remove* a parent theme page template from a child theme?
  21. How do I make my child theme re-apply the settings that were customised when its parent was active?
  22. Multiple Inputs in a Customizer Control
  23. New WP_Customize API – how does it work under the hood?
  24. Embedding a SOAP Client into a WordPress Plugin?
  25. Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
  26. Update widget form after drag-and-drop (WP save bug)
  27. Data sanitization: Best Practices with code examples
  28. How to benchmark a WordPress installation? [closed]
  29. Should I delete the default themes?
  30. Moving WP install from local to live, what about wp_posts GUID?
  31. Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
  32. Running Gutenberg React in Development Mode
  33. Prevent WordPress from automatically installing a new theme each year
  34. Can we use one WordPress installation for multiple databases, domains and content directories
  35. Is there a blank theme framework compatible with WP 3.0? [closed]
  36. Plugin SVN & update API – how are plugins identified?
  37. Users with custom roles not showing in post author select box
  38. How to use more than 256MB of memory in the admin?
  39. How do register_sidebar() and get_sidebar() work together?
  40. How do you get formatted content of a post using the WordPress API?
  41. Localization: I want the backend: english and frontend in defined language
  42. Are there any forks of WordPress (and what is different about them)?
  43. How to Change 404 page title
  44. Make Custom Metaboxes Collapse by Default
  45. WordPress Paginate $wpdb->get_results
  46. Custom maintenance page
  47. Add button to TinyMCE bar without creating a plugin
  48. Why do I get the timeout warning?
  49. How to add a new product type on woocommerce product types? [closed]
  50. How to include own css on wordpress tinymce editor?
  51. How to disable page delete
  52. add button to post edit page when post_status=publish
  53. how to override woocommerce specific loop or archive-product.php [closed]
  54. Modify existing plugin function using filter (without modifying the plugin directly)
  55. Rename UPLOADS folder with custom WP_CONTENT_DIR
  56. WordPress hook before inserting post into database
  57. Any post install tips after installing WordPress 3.0.1?
  58. Making Custom Fields Standard in the Admin UI
  59. Remove WordPress theme from a specific page
  60. Version Control: Entire site or just pieces?
  61. Getting a stack trace when an error occurs?
  62. Check for and enforce unique value in user-entered custom meta field in WP Admin
  63. Backup the Database and Restore from the Backup?
  64. get_pages() not ordering as it should
  65. Scaling a WP eCommerce site
  66. Custom Search Query
  67. How to remove comment section from page only , not from posts pages?
  68. Looking for a lightweight theme using WP3 new tags and features (not 2010) [closed]
  69. Why doesn’t WP_Image_Editor save images using the Filesystem API?
  70. Pitfalls when Distributing Plugins that Access SOAP Web Services?
  71. How to get current_cat in navbar, in single post
  72. Default value for add_settings_field
  73. Seamless integration between WordPress and BBpress
  74. WordPress 3 MU for a development/stage/production site
  75. Disable Visible Edit Shortcuts in the Customizer
  76. How to make a script load after Custom Block is loaded in the editor?
  77. Updating WordPress overwriting customization tweaks – strategies?
  78. What is the best way to customise admin files so they survive future upgrades?
  79. Hide admin notices/notifications from everyone but super admin?
  80. Change the login button on the login page
  81. How to customize the default HTML for WordPress Attachments
  82. Verify nonce in REST API?
  83. Add custom html to last sub-menu item
  84. Get all products with a custom attribute
  85. Customizing the Subject Field in WordPress’ Notification Emails?
  86. How to update the delete user confirmation form?
  87. How to move wp-content (or uploads) outside of the WordPress directory
  88. Need help with friendly URL’s in WordPress
  89. How to add Disqus comment count
  90. How to keep a WordPress site synchronized between two servers?
  91. Upgrading WordPress and Plugins; any Tips to Avoid Trouble?
  92. Modify column_author in WP_Comments_List_Table
  93. Why do folders have Empty Index.php Pages?
  94. How to Add Customizer Setting in Child Theme
  95. When adding a custom REST endpoint, where do you put the endpoint function, and where do you put the function registration call?
  96. Multiple WordPress sites with docker
  97. .maintenance and maintenance.php also in multisite install?
  98. Limit Media Library to Given Folder
  99. Is it possible to use Gutenberg on the front-end?
  100. WordPress objects class reference
Categories customization Tags customization, logo
Custom post type loop without children
Standard Method for Securing a WordPress Site

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
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • 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