• Resolved graffit

    (@graffit)


    Hey there.
    Great theme, I really appreciate it.

    I am now developing our website and we had ‘featured image’ shown in the header area as full width (width 1200px, height 300px).

    After migrating the local development environment to hosting server, the blog header image was reduced to smaller size.

    If I would specify the file toward Page Header Image, it will get the result as I want. Before it was automatically picking up Featured image as page header image and making it a full width as i needed.

    I haven’t changed any settings among header area but it became different after migrating from MAMP to hosting server.

    I would appreciate if there is any way or hack to handle Featured Image width as full size, since specifying each header image on each post manually will be pain in the butt.

    – I am using ver.1.2.8 of Generatepress
    – The Blog Header option is activated
    – Hardcrop ‘enabled’. Content type ‘Fluid’
    – WP version 4.1.1

    Sorry the site is still under dev mode and I can not post the URL..
    I appreciate for your help

Viewing 15 replies - 1 through 15 (of 17 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    Just to clarify, are you wanting your page header image (no content) to span across your entire screen? As of right now, the “fluid” container type only applies to content added, not a single image.

    To change this, you can add this CSS:

    .page-header-image.grid-container {
          max-width: 100%;
    }
    
    .page-header-image.grid-container img {
          width: 100%;
    }

    Let me know if that helps or not ??

    Thread Starter graffit

    (@graffit)

    Thanks for your quick reply.
    I have tried out the CSS from previous posts and it did not work for me.

    >Just to clarify, are you wanting your page header image (no content)
    >to span across your entire screen?

    I have the site width 1200px contained. I want to have header image same size as site width. So it is not entirely across the screen.

    As said above, under local environment header image was picking up featured image and fitting the header perfectly. It changed after migrating on the hosting server.

    Theme Author Tom

    (@edge22)

    Interesting, and you’re sure the image is at least 1200px wide?

    Thread Starter graffit

    (@graffit)

    Yes the assigned feature image is over 1200px wide.
    Also i tried to regenerate thumbnails but this had no effect..

    Theme Author Tom

    (@edge22)

    Hmm, super hard for me to see what’s going on without seeing the site.

    Have you tried re-uploading the image?

    What happens when you disable hard crop?

    Thread Starter graffit

    (@graffit)

    I just tried disabling the hard crop. The header will become full width 1200px, and height will be the maximum size of the image.

    I enabled after that and gave me a small image (height 300px) again.

    I can send you the url if there is a way to hide it.

    thanks,

    Theme Author Tom

    (@edge22)

    What width do you have set when hard crop is enabled?

    You can send a link to [email protected] if you’d like.

    Thread Starter graffit

    (@graffit)

    It is set to 1200px width.

    Theme Author Tom

    (@edge22)

    Did you add “px” into the value? The value should only be a number, no px.

    If that doesn’t work, I’ll need to see the site.

    Let me know ??

    Thread Starter graffit

    (@graffit)

    No the value is only numbers.
    I have just added you as admin. Due to construction mode please login using the account sent via email.

    Thanks for generous support..

    Theme Author Tom

    (@edge22)

    Aha – I think I found the issue.

    In order for the hard crop to work, you need to upload the image using the upload field above the enable hard crop option.

    The hard crop won’t work if the image is using the Featured Image metabox.

    I’ll look into fixing this, as it would be good if it worked with both.

    Let me know ??

    Thread Starter graffit

    (@graffit)

    Under the local development (MAMP), I had not set any images above the hard crop option and it was pulling the header data from Featured Image box.

    >I’ll look into fixing this, as it would be good if it worked with both.

    Yes, it would be a life saver. ??

    Thanks a lot for taking time looking into it.

    Theme Author Tom

    (@edge22)

    Hmm you’re right, it’s just deciding to use the 300 height instead of the width first.

    In the next version of Page Header, we moved to using the WordPress resizer instead of a third-party script – this may fix it.

    If you’d like I can replace the Page Header files with the new ones for you so we can see if it fixes the issue. I would need temporary FTP access to the “plugins” folder on your site to do so.

    If you’re interested, shoot me an email with login details to the same email address.

    Thanks! We’ll figure this out ??

    Thread Starter graffit

    (@graffit)

    Tom,

    Just sent you temporary FTP access info over email.
    Would appreciate to give it a try with new version of script.

    best,

    Theme Author Tom

    (@edge22)

    Aha, this seems to be an issue with the Photon feature in Jetpack.

    After a quick search, it seems Photon has a long history of funky behavior when it comes to resizing images.

    I’ll take a look to see if there’s anything I can do on my end to make the hard crop and Photon compatible.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Blog Header Image’ is closed to new replies.