Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1230646
    looktothesouth
    Participant

    Hi,

    When my pages are loading with no images, it looks like it is loading the featured image onto the page.

    For example: https://jordanarsenault.com/marketing/moroccan-marketers-can-benefit-tourism/

    There is no image, but if you look at the elements loaded you can see that the post (featured) picture is loading. (attached picture).

    Is there a way to stop this as it is slowing down load time?

    Thanks!

    #1230977
    Rupok
    Member

    Hi there,

    Thanks for writing back. It seems you have added the below code that’s causing the issue :

    .single-post .entry-featured {
      display: none;
    }

    Kindly remove this to get expected result. If you don’t want to load the featured image then you need to change template through Child Theme

    Hope this makes sense.

    Cheers!

    #1231492
    looktothesouth
    Participant

    Hi Rupok,

    Yes, in the forums, that is what someone has posted as the solution for making it not show. The issue is that the image is still loading when I use that code. (it doesn’t show, but it still loads on the page)

    Is there another way to make it so it doesn’t load at all?

    Thanks,

    Jordan

    #1231700
    Rupok
    Member

    Hi Jordan,

    If you want to do this, you can use the below code on your Child Theme.

    Let’s create the directory at x-child/framework/views/integrity/content.php

    And place the below code :

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Standard post output for Integrity.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
        <?php x_get_view( 'integrity', '_content', 'post-header' ); ?>
        <?php x_get_view( 'global', '_content' ); ?>
      </div>
      <?php x_get_view( 'integrity', '_content', 'post-footer' ); ?>
    </article>

    Hope this helps.

    #1233243
    looktothesouth
    Participant

    Hi Rupok,

    That did it. It isn’t loading the image any more, which is great.

    Thanks a lot!

    Jordan

    #1233473
    Jade
    Moderator

    Glad to hear it work now, Jordan. 🙂

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1230646 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>