Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media & Text Block: Allow reversed stacking order on mobile. #26215

Open
shoelaced opened this issue Oct 16, 2020 · 13 comments · May be fixed by #56279
Open

Media & Text Block: Allow reversed stacking order on mobile. #26215

shoelaced opened this issue Oct 16, 2020 · 13 comments · May be fixed by #56279
Assignees
Labels
[Block] Media & Text Affects the Media & Text Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@shoelaced
Copy link

Is your feature request related to a problem? Please describe.

It is common to use an image-beside-text layout in situations where the content on the left looks better underneath the content on the right when stacked.

For example, the common layout of:

[image]   [text ]
[text ]   [image]
[image]   [text ]

It's common to want to stack it on mobile like:

[image]
[text ]
[image]
[text ]
[image]
[text ]

Currently this layout isn't possible.

Describe the solution you'd like

It would be great if the Media & Text block could have a "reverse stacking order" setting when "stack on mobile" is enabled. As a side note, stacking on mobile and reversing the order should ideally also be available on the Columns block.

Describe alternatives you've considered

Adding a class in the Advanced section (only works for bespoke sites...), or installing a whole other block plugin with better responsive behavior and disabling the default (which is what I usually do). However, neither is ideal for the average user when such basic functionality is needed.

@ntsekouras ntsekouras added [Block] Media & Text Affects the Media & Text Block [Type] Enhancement A suggestion for improvement. labels Oct 19, 2020
@cr0ybot
Copy link
Contributor

cr0ybot commented Jan 4, 2022

I would still like this functionality, even though it looks like the Media & Text block now defaults to placing the media on top when stacked (used to stack in the order displayed on desktop). We pretty much want the image on top 99% of the time on mobile, but it would be nice to have the option.

@getdave
Copy link
Contributor

getdave commented Jan 13, 2022

This forum user would also like this feature to be added

@masperber
Copy link

Requested by a WordPress.com customer in live chat.

@MGParisi
Copy link

MGParisi commented Nov 20, 2022

Yep, it would be a very necessary option.

@MelanieHayn
Copy link

Agree. For our site, when we have text and media blocks, we want the text on top on mobile and the image on the bottom. Having a choice in the options panel would be ideal.

@carolinan
Copy link
Contributor

I re-tested this with WordPress 6.2.2 (Gutenberg does not need to be activated)
The option "Stack on mobile" puts the image first, no matter if the image is on the left or right side.
I consider this solved.

@getdave
Copy link
Contributor

getdave commented Jun 16, 2023

I'm not sure. I understood that the request was for the ability to control the stacking order rather than "always keep the image on top".

@masperber
Copy link

@getdave I agree. This is not resolved.

@getdave
Copy link
Contributor

getdave commented Jun 16, 2023

@carolinan Respectfully I'm going to reopen this one. Let's see if someone is open to devising a UI control to allow switching this ordering.

@getdave getdave reopened this Jun 16, 2023
@shoelaced
Copy link
Author

Indeed and thanks @getdave. Although my example placed the image on top, I had meant to request a control, as there are plenty of use cases for either.

@Sirjazzfeetz
Copy link

Sirjazzfeetz commented Oct 26, 2023

3 years, sheesh! Sad that we even need to request.
This is a basic and critical no-code design feature.

@masperber
Copy link

masperber commented Nov 1, 2023

@Sirjazzfeetz remember that this is a community project. We're all equally responsible for adding needed features and correcting issues. :)

In that spirit, I've submitted a PR to resolve this.

@sabernhardt
Copy link
Contributor

Trac 59944 has another request for putting the text above media.

In WordPress 6.4, I get a mismatch between visual order and DOM order when the media is on the right and then stacked on top for smaller screens.

video appears above text with a link, but the text is first in the DOM

For a toggle control, "Reverse on mobile" could be confusing. I think saying specifically "Media appears above text when stacked" (or something similar) would be clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Media & Text Affects the Media & Text Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants