Before you ask please READ THIS

'Next and Previous Post' image being stretched

Hi again!

On my single blog posts at the bottom the images that accompany the title are warped and stretched.

I've checked your documentation and the Blog page and also the custom Blog settings but can't see where I can correct this.

Please can you help? I'm sorry if it's really obvious...

The problem is here if you need to see it:
https://www.artoflifefilms.com/do-you-need-a-wedding-video/


Thanks - also is there a way of searching within the Rife category to see if this topic has been posted before? I can't find this option and when I search with Google it takes me outside of the forum.


Ta

Heather

Comments

  • AirAir
    Posts: 10,970
    Hey :-)

    I suspect that some plugin is affecting this image, and instead of using the theme script that is resizing those images it inserts there full size image.

    I would need to debug it on your installation.

    Could you please send me temporary* access to your WordPress so I could check there what is going on? Send it here on the forum via private message(click on my nick, in top-right corner you will find option "Message"). In message please add LINK to topic it applies to.

    By sending access to WordPress I mean:
    -create a new ADMIN account with a fake e-mail
    -set some password to this account
    -send me created login and password

    *temporary - please delete this account after I am done, for your safety!

  • Hi again! Well you inspired me to contact my host supplier, Siteground first, as I could see they had automatically included a plugin and I wondered if it could be affecting it.

    My site originally started life as an http:// site and I upgraded the certificate to https:// a while ago. I didn't realise this might impact the images.

    They searched and updated the http image to work with https to ensure it works properly:
    set additional code in the .htaccess that looks like this, "Header always set Content-Security-Policy: upgrade-insecure-requests

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]"

    This appears to have fixed the warp effect on the images.

    The images are still a bit narrow for me, so was wondering where about I can adjust this if I need to? I can live with it as it is now though which is great!

    Thanks for replying and alerting me to being able to create fake admins - soooo useful for support!

    Best

    Heather

  • AirAir
    Posts: 10,970
    Hey :-)

    Thanks for all the details - I wouldn't suspect that it is HTTPS related, but it is totally logical reason.
    hoodledoodles said: The images are still a bit narrow for me, so was wondering where about I can adjust this if I need to?
    In rife\advance\utilities\posts.php in lines ~262 & ~270 there are such calls:
    .'<span class="image">'.apollo13framework_make_post_image( $id, array( 245, 100 )).'</span>'

    If you would tweak part 245, 100 to your desired dimensions you will get a different result.

    I will think of a different solution, like adding this to theme options, or some less affecting code change.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!