Homepage Design

  • I’m trying to create a new static homepage using GP Premium & GB Pro similar to the one in the enclosed image (that site isn’t built with GP).

    I want the first post at the top to be full width (ignoring the sidebar) with the title on top of the featured image. Other posts below include the sidebar.

    I’ve followed various online solutions but can’t get any of them to work properly on desktop and mobile – can you help please?

    Thanks

    https://postimg.cc/Lq38jVmB

  • Hi there,

    Can I see what you’ve built so far?

  • I’ve added login details to the private area. This is a test site – not the main one. I used a layout block element for the top post and a normal query block for the others – I can’t get the sidebar to be ignored by the first post.

  • I would create a block element – page hero for the 1st post, so it sits above the content area and the sidebar area.

  • Thanks – I think I tried that but will have another go.

  • Let me know when the page hero is created, I can check it for you 🙂

  • I’ve created a page hero – it looks ok on desktop but awful on mobile – I’ve obviously done something wrong but can’t work out what.

  • You’ve set the root container of the page hero to width:1200px;, which make is to be 1200px on all devices, even if the screen width is narrower than 1200px.

    You need to remove 120ppx from the width field, add it to the max-width field instead, and set its margin-left and margin-right to auto to center it.

  • Thanks, that’s a bit better but it still isn’t correct on mobile – the image is cropped.

  • Hi there,

    In the mobile view, the root Container currently has a fixed Width of 768px.

    Could you try removing that value?

  • I can’t see that the root container has a width set in the mobile view – it looks empty to me.

  • That could be a caching issue, as the width is still being applied on the frontend from what I can see.

    Could you try temporarily disabling LiteSpeed Cache to see if that confirms whether the cache is causing the issue?

  • I’ve disabled the cache and it’s still not looking right on my iPhone – I cleared Safari & Chrome as well.

  • Ah, the page hero section is built using a Block Element.

    You’ll need to edit that Page Hero Element and remove the Width value there.

  • Thanks but that doesn’t work either – the root container in the page hero is set to 1200 MAX width – if I remove that the desktop version is too small and the post template container is set to 100% on desktop – mobile inherits that with no option to change the max width.

  • I do not see the width value anymore. I assume you’ve removed it; the desktop looks normal.

    What is the issue right now? Let me know 🙂

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