I got it!
<?php if ( (is_home()) || (is_single()) ) { ?>
<?php echo theme_heading(); ?>
<?php } elseif (is_page()) { ?>
<img src="https://wordpress.stackexchange.com/questions/159436/<?php echo get_stylesheet_directory_uri() ?>/images/logopage.png" />
<?php } ?>
Thanks to everyone!
Related Posts:
- Remove an uploaded header image
- Change position of header image with default 2019 theme
- WordPress 4.4.2, _s starter theme, problems with custom default header
- How to display the link that says “Edit Header Image” on header image
- How to edit codes of an individual page/post?
- Display different header images based on current page
- How to remove header images from all pages except the home page? skeleton theme
- How to use a svg as custom header?
- Different custom header image on different page
- How to add text to header below title but above nav
- Different Header Files WordPress
- Want to make header and footer CMS driven sothat Editors can modify its content from wordpress admin section
- From where the header-text can be changed in WordPress custom header?
- Is there a way of registering a default logo image for custom-logo?
- Want to create Custom Header based on Geo Location
- Add additional upload field to Custom Header page
- header_image not returning header image url
- Include different scripts and styles for two separate custom headers?
- Add credit to get_custom_header in alt
- Custom page html headings plugin?
- I want to add my website name in wordpress source code like this
- My custom header does not change the header image height and width
- Embed Form In Header
- How do I remove header/page-title image in farvis theme? [closed]
- Include an infogr.am link in header of twenty seventeen theme
- Disable header banner on specific Posts
- How to add custom header to Twenty seventeen single post in wordpress
- Trying to put text and links into a header
- WordPress Multisite header img src is lost from staging to production
- Automatically generate multiple image sizes for element
- Child theme does not override parent theme values (custom-header)
- Add a wrapper in the header
- How to create a custom header?
- Create custom API endpoint to change custom header image
- How can i get the name parameter defined in get_header?
- Get a sidebar at the top of the page
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- How to change the height of featured image in Twenty Eleven child theme
- Loss of sharpness in jpg imported as header in twentyeleven
- How can I set a different specific header image on each page?
- Adding an image slider in the header of my site
- What is the advantage of using header-catname.php over is_category(‘catname’);?
- Change location of header.php and footer.php
- Show Different Header on a Specific Post ID
- Change the location of add_theme_support( ‘custom-header’ ) in the customizer
- add_theme_support(‘custom-header’) does not add the option to customize
- Modify wp-admin page header ‘viewport’ meta data
- How to insert a Button or custom text on twentyseventeen header
- Changing Header scroll height for Twenty Seventeen theme on ALL pages
- Hide header texts (Title & Tagline) in custom-header.php
- Why I am getting Parse error: syntax error when I use ‘wp_is_mobile’?
- Using website header, menu and footer on WordPress blog
- Headers Content-Security-Policy CSP Major Issue
- Which header is served
- Getting the ID of header image, even when set to random
- Header and nav menu problem on Thesis site [closed]
- Changing Header Image Every N Minutes/Seconds
- Best practice to update the file header.php
- Header background image just stopped working
- Set a featured image as a replacement to the header image
- WordPress add script with custom type (x-jquery-tmpl)
- Multiple post image, echo url (path of image)
- header_image not working after site copy
- How Change WordPress header image from admin menu
- get_header() in backend – but keep JavaScript and CSS files
- How to remove WP Title Tag?
- where to change text for header?
- Banner appearing on Pages but not Posts; call it conditional confusion
- Replace header image on all other pages but home – URL issue
- How to add image on top of header logo in child theme?
- Conditional Custom Image Header
- twentyeleven theme: Where is the code that handles moving the search bar on resize?
- Custom Header added within Dashboard pages, is this possible with custom template files?
- Change header image with editor profile
- My theme header is stuck on a low resolution image?
- create a button in the header of the mobile menu in the middle of the logo and the menu accordion
- WordPress theme header.php should I add title meta?
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- Is there a standard technique or API for getting the site header image?
- How to echo images Urls from a wordpress post, that are relally in the post
- Loading different header and footer in woocommerce templates (AMP)
- Replace header with large image on home page only, using Genesis child theme
- Exiting Customizer alert
- How to overlay a webcomic plugin on top of a header image?
- Image zoom vs cut in Twenty Seventeen header image
- Change the template of my Blog entries
- Dynamically changing logo on scroll function [closed]
- Images appear in the header on all pages, but not category.php
- adding script tag in head of specific pages
- Social icons on my index page don’t take visitor to specific site(s) [closed]
- accessibility of an object created in a plugin, from the header
- Header Logo Scaling
- Get Two Sizes of Header Image
- Adding theme support for a custom header image
- Adding header function to theme
- Custom Menu based off custom header
- Add custom version to an image
- Blog page is not showing properly
- Multiple Custom Headers
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo