Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 9 months ago

Last modified 4 months ago

#8666 closed defect (bug) (wontfix)

Override banner design in buddypress.org home page for the mobile devices.

Reported by: upadalavipul's profile upadalavipul Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: BuddyPress.org Sites Priority: normal
Severity: normal Version:
Component: BuddyPress.org Sites Keywords: needs-design-feedback has-patch
Cc:

Description

I have tested buddypress.org home page and which I have found some sections design override on the home page for only mobile devices. See below the attached screenshot for a better understanding.

Attachments (2)

8666.png (187.0 KB) - added by upadalavipul 3 years ago.
#8666.diff (986 bytes) - added by himanshuc 3 years ago.
Image used in the headline section is not responsive so we have to hide it and add css for responsive design.

Download all attachments as: .zip

Change History (6)

@upadalavipul
3 years ago

@himanshuc
3 years ago

Image used in the headline section is not responsive so we have to hide it and add css for responsive design.

#1 @himanshuc
3 years ago

  • Keywords has-patch added; needs-patch removed

#2 @imath
2 years ago

  • Milestone changed from Awaiting Review to BuddyPress.org Sites

#3 @espellcaste
9 months ago

  • Resolution set to wontfix
  • Status changed from new to closed

Closing as per #9193

#4 @mzhansha
4 months ago

To address the issue of the banner design overriding on the BuddyPress.org homepage for mobile devices, an additional solution can be proposed as follows:

Solution: Implement a Responsive Banner Redesign
Instead of hiding the banner image, we can optimize the image and layout for responsiveness to maintain visual consistency across all devices.

Steps:

  1. Use a Responsive Image:
    • Replace the current banner image with a responsive image using the srcset attribute in the <img> tag. This allows the browser to select the appropriate image size based on the device's resolution and screen size. `html <img src="banner-small.jpg"

srcset="banner-small.jpg 480w, banner-medium.jpg 768w, banner-large.jpg 1200w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 80vw, 1200px"
alt="Banner">

`

  1. Implement CSS Media Queries:
    • Adjust the banner's layout and dimensions using CSS media queries to ensure proper scaling and alignment on mobile devices. `css @media (max-width: 768px) {

.banner-section {

padding: 10px;
text-align: center;

}
.banner-section img {

max-width: 100%;
height: auto;

}

}
`

  1. Reorganize Banner Content:
    • For smaller devices, reorganize the content in the banner (such as headings, buttons, or descriptions) to stack vertically and center-align them for better readability and accessibility. `css @media (max-width: 768px) {

.banner-content {

display: flex;
flex-direction: column;
align-items: center;

}

}
`

  1. Lazy Loading for Performance:
    • Add the loading="lazy" attribute to the image tag to improve page load time on mobile devices.
  1. Testing and Optimization:
    • Use browser developer tools to test the changes on various device resolutions.
    • Optimize images with a tool like TinyPNG or ImageOptim for faster loading.

By redesigning the banner for responsiveness rather than hiding it, the solution ensures a visually appealing experience while maintaining the integrity of the design across all devices.

Note: See TracTickets for help on using tickets.