Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

In regards to the COVID-19 situation

Your support team is currently doing their best to offer the best support possible despite the current COVID-19 situation. However during these exceptional circumstances, please note that you should expect a response time of 2-3 business days, until further notice.Rest assured that we will still do our best to handle your requests as soon as possible! Everyone stay safe and healthy! 😷

Add image to header

This topic is resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Arthur
    Participant
    • 2 Topics
    • 4 Posts
    @asutaroto

    How do I insert an image into the header of the post? Which file is this edited in? I tried to add an image using the ACF plugin, but failed.

    Insertion code

    <?php 
    
    $image = get_field('image');
    
    if( !empty($image) ): ?>
    
    	<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
    
    <?php endif; ?>

    Thank you in advance for your help.

    Olivier
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2029 Posts
    @themosaurusrex

    Hi @asutaroto,

    The custom header cannot be customize that way but you may consider using the grimlock_breadcrumb action to add markups inside the header safely.

    Simply add the following code snippet to your website:

    /**
      * Display some image after the header title, subtitle and metadata.
      */
    add_action( 'grimlock_breadcrumb', 'gorgo_custom_grimlock_breadcrumb', 20, 1 );
    
    function gorgo_custom_grimlock_breadcrumb() {
    	// Replace the following bit by your custom code.
    	?>
    	<img src="http://placehold.it/200x200" alt="Your image">
    	<?php
    }

    To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    Please also note that we don’t provide any theme customization. So, you shouldn’t expect other snippets from us unless it’s to fix an issue or some kind of limitation stemming from our own codebase. We always try our best to help theme users whenever we can and usually only provide code snippets out of courtesy to prevent them from waiting for the next update.

    Regards,

    Arthur
    Participant
    • 2 Topics
    • 4 Posts
    @asutaroto

    Thank you very much:)

    Olivier
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2029 Posts
    @themosaurusrex

    You’re welcome. ??

    Best,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Add image to header’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.