Tagged: x
-
AuthorPosts
-
October 25, 2016 at 7:08 pm #1230646
looktothesouthParticipantHi,
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!
October 26, 2016 at 1:48 am #1230977
RupokMemberHi 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!
October 26, 2016 at 8:36 am #1231492
looktothesouthParticipantHi 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
October 26, 2016 at 10:49 am #1231700
RupokMemberHi 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.
October 27, 2016 at 9:57 am #1233243
looktothesouthParticipantHi Rupok,
That did it. It isn’t loading the image any more, which is great.
Thanks a lot!
Jordan
October 27, 2016 at 12:11 pm #1233473
JadeModeratorGlad to hear it work now, Jordan. 🙂
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1230646 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
