Hi HivePress team,
I’m running into a problem with video embeds inside listing attributes that used to work correctly and now no longer do.
This issue occurs even with all third-party plugins disabled, so it appears to be related to how HivePress renders attribute output.
Setup
-
WordPress: version
-
HivePress: version
-
Theme: ListingHive (or your theme)
(The issue persists even with all other plugins disabled.)
What I’m trying to do
I need a listing attribute where a user can paste a simple YouTube link and have the embedded video display responsively on mobile devices (iPhone, Samsung, etc.).
HivePress provides two attribute types that seem intended for this:
-
URL attribute
-
TEXTAREA attribute
What works vs. what doesn’t
1. URL attribute
-
The video embed has never been responsive on mobile.
-
It overflows horizontally and does not scale to the screen width.
2. TEXTAREA attribute
-
This used to work perfectly for YouTube embeds.
-
Videos resized correctly and stayed within the layout on mobile.
However, after a recent HivePress update, the TEXTAREA attribute stopped being responsive. It now behaves exactly like the URL attribute:
-
Videos overflow the screen
-
They do not scale down
-
The layout breaks on mobile devices
This occurs when using:
-
A plain YouTube URL
-
A WordPress auto-embed
-
No embed plugins active
-
Default theme settings
So the previous workaround (using TEXTAREA instead of URL) is no longer functional.
What I need to know
-
Has the way HivePress outputs TEXTAREA or URL attribute values changed recently?
It appears that embeds are no longer wrapped or filtered in a way that allows responsive scaling. -
Is there a recommended attribute type (or method) for displaying YouTube or other oEmbed videos in a responsive way on mobile?
-
Is there a HivePress hook or template part I should override so I can manually wrap the video output in a responsive container?
Why this matters
Right now:
-
URL attributes cannot display responsive videos, and
-
TEXTAREA attributes no longer display responsive videos, even though they previously did.
Video responsiveness is essential for my listings.
Here’s a sample listing showing the issue:
https://www.coolcarguy.com/coolcars/the-1976-porsche-911-turbo-driven-826664-miles-the-legend-from-youtube/
Any guidance, best practices, or code examples for restoring mobile-responsive video embeds inside HivePress listing attributes would be greatly appreciated.
Thanks in advance for your help!