Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #843770

    I’ve created an advanced custom field for a “second” thumbnail image.

    I want to be able to insert this just after the current post headline.

    I’ve tried to use ava_after_post_title but this doesn’t work.

    Does anyone know the hook I can use to insert this image where I want it?

    #843772

    add_action( ‘ava_after_post_title’, ‘custom_field_before_content’ );

    function custom_field_before_content() {
    if(is_single() )
    if( get_field(‘logo_image’) ):
    ?>” alt=”” /><?php
    endif;

    }

    #845196

    Hi,

    Thank you for using Enfold.

    Please try to use the “ava_after_main_title” hook. You can find it in the single.php file, line 24.

    Best regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.