Site logo

[Resolved] Featured images / container block images displaying inconsistently

Home Forums Support [Resolved] Featured images / container block images displaying inconsistently

Home Forums Support Featured images / container block images displaying inconsistently

Viewing 15 posts - 1 through 15 (of 32 total)
  • Author
    Posts
  • #2073218
    _blank

    Hi there,

    Using Solo theme out of the box, no edits or custom CSS.

    Experiencing inconsistencies with the way featured images / containers with images appear. Please see below:

    https://ibb.co/bbmBk3x
    PAGE CONTENT CONTAINER TYPE: FULL WIDTH: Container block with background image: sits flush to top so top is covered by menu. This appears to be the standard behaviour?

    https://ibb.co/BNdRNG3
    PAGE CONTENT CONTAINER TYPE: FULL WIDTH: Featured image: sits flush to top, so top is covered by menu (standard?) but the image is NOT displaying full width, so there seems to be an issue here.

    https://ibb.co/BGX4sPk
    PAGE CONTENT CONTAINER TYPE: DEFAULT: Featured image: sits flush to top, so top is covered by menu (standard?)

    https://ibb.co/pbF1qzf
    PAGE CONTENT CONTAINER TYPE: DEFAULT: Container block with background image: does not sit flush to top, so top is only half covered by menu, so there seems to be an issue here.

    Kindly help us resolve the issues here. You won’t need login credentials or links as we’re using the Solo theme straight out of the box, with the standard images that come with it, so you’ll simply be able to test on your own local copy with the above settings.

    Many thanks

    P.S. Your ‘IMG’ embed option isn’t working here, so simply had to post links instead.

    #2073642
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #2075816
    _blank

    Unfortunately not right now as it’s not live, but as mentioned in the original message, this is your default Solo theme out of the box. It’ll be extremely easy for you to test: just create a new page, and add a content block with an image at the top / featured image as described in my message. Thanks! 🙂

    #2076013
    Elvin
    Staff
    Customer Support

    Hi there,

    https://ibb.co/bbmBk3x
    PAGE CONTENT CONTAINER TYPE: FULL WIDTH: Container block with background image: sits flush to top so top is covered by menu. This appears to be the standard behaviour?

    https://ibb.co/BNdRNG3
    PAGE CONTENT CONTAINER TYPE: FULL WIDTH: Featured image: sits flush to top, so top is covered by menu (standard?) but the image is NOT displaying full width, so there seems to be an issue here.

    https://ibb.co/BGX4sPk
    PAGE CONTENT CONTAINER TYPE: DEFAULT: Featured image: sits flush to top, so top is covered by menu (standard?)

    https://ibb.co/pbF1qzf
    PAGE CONTENT CONTAINER TYPE: DEFAULT: Container block with background image: does not sit flush to top, so top is only half covered by menu, so there seems to be an issue here.

    This occurs if the site has an active Header Element with it’s “Merge with Content” set to “Merge”. You can change it up if don’t wish for the menu to overlay ontop of the menu.

    #2076351
    _blank

    Hi there,

    We don’t mind the top menu overlaying – it’s the inconsistency that’s the problem. Why do some images sit flush to the top, while others only come half way up the menu? And why does the featured image not display full width when the page content container type is set to full width?

    Can you kindly explain where/how to change it up? Screenshots would be useful.

    Many thanks

    #2076468
    David
    Staff
    Customer Support

    Hi there,

    The Default Container Type has Padding ( set in Customizer > Layout > Container ). So when no featured image is present you will have the top padding creating a gap.
    Featured images on pages are located by default above the Content container, so the padding gap above will come after the featured image.

    Image width – unless you throw CSS width: 100%; at an image it won’t display any wider then its actual size. eg. if you upload a 1024px image and add that to your page then it will only display at a max width of 1024px unless CSS is used.

    When working on a site with a merged header you need to consider this in your design for the various layouts you want.

    For example:

    1. All pages could be set Content Container – Full Width and you build out content using GenerateBlocks or a Page Builder.
    2. All Posts could be set to Content Container – Default. In this instance you may want to consider disabling the merged header for single posts or use a Page Hero.

    Let us know if this helps.

    RE: IMG embed – it has to be direct URL to the image source, so providing links to other shared sources is absolutely fine.

    #2076504
    _blank

    Hi there,

    The Default Container Type has Padding ( set in Customizer > Layout > Container ). So when no featured image is present you will have the top padding creating a gap.

    There’s no featured image on the home page of the Solo theme, yet the container block image sits flush to the top. Why is this the case here, but not on other pages?

    Image width – unless you throw CSS width: 100%; at an image it won’t display any wider then its actual size. eg. if you upload a 1024px image and add that to your page then it will only display at a max width of 1024px unless CSS is used.

    Please see here: https://ibb.co/X441dgk – You can see by the container block that this image is wide enough to be full-width, yet when the very same image is used as featured image, it’s not full-width. Why so?

    1. All pages could be set Content Container – Full Width and you build out content using GenerateBlocks or a Page Builder.

    The issue with this method is that even when Content Container is Full Width, featured images do not display full-width, as shown above. Also, text etc. goes right to the edges of the page. Would we have to manually add padding to every block to prevent that?

    2. All Posts could be set to Content Container – Default. In this instance you may want to consider disabling the merged header for single posts or use a Page Hero.

    Can’t see how to add page hero, or where to disable merged header? (I did ask, apologies if I’m missing the obvious).

    Many thanks

    #2076517
    David
    Staff
    Customer Support

    Probably best we go through how that site works.

    1. The Merged header is created using a Header Element.
    You can edit that in Dashboard > Appearance > Elements – there is a shortcut to that in the Admin Bar > Elements menu when viewing the page:

    https://docs.generatepress.com/article/header-element-overview/

    The sole purpose of this element is to merge the site header with whatever content is at the top of the page.
    Note that this element sets the navigation colors which overrides those in the Customizer.

    Setting it to display where required is done via the Display Rules tab. It is set to Entire Site. You can change those rules accordingly.

    2. The Home Page Content Container is set to Full Width. This removes the padding from the Customizer. So there is no gap whether there be a featured image or not.

    3. The Full Width Image – this is because the Image is being displayed as the background to a Container Block that is being displayed Full Width. Background Images use CSS and by default are set to Cover which means the fill the available space. Which is completely different to when you use an Image Block

    Creating a new page that has a Full width and Container content.

    1. Create a new page.
    2. Set the Content Container to Full Width.
    3. Build your pages using the GB Container Block:
    https://docs.generateblocks.com/article/container-overview/
    3.1 Each container Block you can set its widths ( full or contained ) its inner width and its padding.

    #2076534
    _blank

    2. The Home Page Content Container is set to Full Width. This removes the padding from the Customizer. So there is no gap whether there be a featured image or not.

    The Page I just sent you also has Content Container set to Full Width (https://ibb.co/nbNxzjg) – exactly the same settings as the homepage, yet the featured image does not display full-width. According to what you’ve said above there should be no padding?

    P.S. Still don’t think you showed what a ‘Hero’ is / how to add it?

    Thanks again! 🙂

    #2076546
    David
    Staff
    Customer Support

    This applies to featured images ( or any image ) on a Full Width Container:

    Image width – unless you throw CSS width: 100%; at an image it won’t display any wider then its actual size. eg. if you upload a 1024px image and add that to your page then it will only display at a max width of 1024px unless CSS is used.

    Page heros using a block element are explained here:

    https://docs.generatepress.com/article/block-element-page-hero/

    #2076564
    _blank

    This applies to featured images ( or any image ) on a Full Width Container:

    Image width – unless you throw CSS width: 100%; at an image it won’t display any wider then its actual size. eg. if you upload a 1024px image and add that to your page then it will only display at a max width of 1024px unless CSS is used.

    I understand, but the image I showed is 5000px wide. I even tried using a 10000px wide image and it was still padded at the sides…if it was displaying ‘actual size’ wouldn’t it extend to the edges?

    Thanks!

    #2076567
    David
    Staff
    Customer Support

    We would need to see the site to ascertain what is going on there.

    #2076572
    _blank

    Unfortunately it’s still not accessible.

    But it’s just your Solo site out of the box > New page > Content Container: Full Width (https://ibb.co/nbNxzjg) > Add featured image.

    That’s all we’ve done, so this seems to be the standard behaviour for featured images, and should be easy to replicate.

    Many thanks!

    #2077347
    Elvin
    Staff
    Customer Support

    That full-width option on the metabox will remove the max-width imposed to the page it is applied on but that doesn’t necessarily mean it will automatically make the contents go 100% width of the page.

    But I can understand why your site is showing a seemingly full-width image if it has 5000px if you’re viewing the site on a screen with resolution of 4k or lower and having no padding for the site-content. The screen size simply is too small to give it horizontal space.

    Another image that would go full-width are any Container blocks that are set to full-width with it’s background set to cover.

    As for consistency, I think it’s best of you make all the pages go full-width so we’re sure there’s always no gaps on the sides. (This can be done by creating a Layout Element set to full-width applied to Entire site)

    also make sure that the first containers of the pages don’t have padding-top, padding-left or padding-right values so it doesn’t create any top or side spaces so the menu is always overlaying ontop of the first section of the pages as Solo’s design intended.

    #2077743
    _blank

    But I can understand why your site is showing a seemingly full-width image if it has 5000px if you’re viewing the site on a screen with resolution of 4k or lower and having no padding for the site-content. The screen size simply is too small to give it horizontal space.

    =

    I think you’ve misunderstood: the point is the site is not showing the image full-width, despite everything being set to full width.

Viewing 15 posts - 1 through 15 (of 32 total)
  • You must be logged in to reply to this topic.