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

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

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.

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 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:)

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 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.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site