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 do I change the header image height in Twenty Seventeen?
- How can i get the name parameter defined in get_header?
- How to get the custom header image’s alt text?
- When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?
- Optimal approach for replacing the 8 header images in a child theme?
- Adding custom fields to the header.php
- What to do with unattached logos and header uploaded via native wordpress uploader?
- Additional Option on Custom Header admin
- “There has been an error cropping your image” when cropping image
- Featured Image Inherited from Parent Page
- Use a higher than 230px logo image with 2013 theme
- Custom text-only header
- How can I add a custom header to a custom template in a plugin without using the theme folders
- How to Handle CSS for Multiple Header header.php Files?
- Get a sidebar at the top of the page
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- How to change default header image dimensions in twentyfourteen child theme?
- How to change the height of featured image in Twenty Eleven child theme
- Custom header images won’t appear when set to random
- Loss of sharpness in jpg imported as header in twentyeleven
- Mysterious HTTP 404 header in my own scripts
- How can I set a different specific header image on each page?
- Change header image loaded by jQuery to use HTTPS
- 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
- How to Edit the style of header title of Twenty Eleven Theme?
- adding meta data using plugin to top of head
- 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
- Header Slideshow [duplicate]
- Add more then one site logo – custom-logo theme support
- Modify wp-admin page header ‘viewport’ meta data
- How to insert a Button or custom text on twentyseventeen header
- Changing custom logo link
- 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’?
- Create mobile navigation header with settings integration
- How would I go about adding custom header images per category?
- Using website header, menu and footer on WordPress blog
- Howto keep header image when changing theme
- Headers Content-Security-Policy CSP Major Issue
- Remove elementor header and display default theme header
- Determine what pages are in my header [closed]
- How to output php between header and woocommerce container
- My menu bar dissapeared with autooptimize [closed]
- Which header is served
- Getting the ID of header image, even when set to random
- Resize header image
- Different banner for different section
- How to change header image size in custom themes
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- Header and nav menu problem on Thesis site [closed]
- Additional custom header image
- Changing Header Image Every N Minutes/Seconds
- Best practice to update the file header.php
- Insert HTML in post, below nav bar but above content?
- Header background image just stopped working
- header_image() with CSS
- Set a featured image as a replacement to the header image
- Is it possible to take over a WordPress site if the old administrator is MIA?
- WordPress add script with custom type (x-jquery-tmpl)
- Multiple post image, echo url (path of image)
- Different header for each page in child theme of twenty thirteen