Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1395131

    Hello Support Team,

    How to remove the features image on pages, I only found a solution for posts.

    I would like to remove this code: <header class=”entry-content-header”><div class=’page-thumb’><img width=”1210″ height=”423″ src=”xxxxxxxxxxxxxx”

    It appears when I choose a featured image on pages

    Regards

    Andre

    #1395161

    Hi Andre,

    You will need to use a child theme for the solution.
    1. Copy loop-page.php (inside includes folder of Enfold)
    2. Create a new folder inside your child theme and name it includes
    3. Paste loop-page.php in the includes folder
    4. Edit loop-page.php and remove this code (should be in line 21-30):

    echo '<header class="entry-content-header">';
    
    	$thumb = get_the_post_thumbnail( get_the_ID(), $avia_config['size'] );
    
    	if( $thumb )
    	{
    		echo "<div class='page-thumb'>{$thumb}</div>";
    	}
    
    echo '</header>';

    Hope this helps.

    Best regards,
    Nikko

    #1395254

    That worked! Thank you for your fast support!

    #1395276

    Hi TT2495,

    You’re welcome :)
    I’m glad that we could help.
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove featured images on Pages’ is closed to new replies.