- This topic has 4 replies, 2 voices, and was last updated 7 months, 2 weeks ago by David.
June 10, 2020 at 5:21 am #1321940Bob
Ill try my best to explain this.
My website using GP Premium is set to use a Contained wrapper – not full width. With a width of 1280px.
I am using Elementor Pro also to create the pages.
My issue is that, if I set my Elementor row to be “stretched”. It surely should be the Full width of its parent container. It seems to be ignoring GP’s container width and just making itself the full width of the screen?June 10, 2020 at 5:29 am #1321950DavidStaffCustomer SupportJune 10, 2020 at 8:08 am #1322293Bob
That’s fair enough.
OK, so I have come to create a Single Post Template using Ele.
The page header is NOT set as Full Width or stretched. And yet its full width and as a background of white even though I didnt set that.
I have gone into Appearence > Elements and Set all Single Posts under my CPT of Walking Routes. And tried changing those to Contained and specifying the width. And it is just ignoring my settings.
I have noticed that its adding the class “full-width-content” to my body class too. Remove that using inspector and it behaves like it should.
Im guessing its Elementor not GP causing this, but do you know a workaround posssibly as I dont expect a reply from Elementor support within this century.June 10, 2020 at 8:12 am #1322298Bob
As i click submit I remember a github snippet from a while ago.
* Elementor seems to want to add ‘full-width-content’ body classes when create Templates
* for things like single Pages, Posts, and Archives. Seems like GeneratePress sees that body
* class and completely ignores if you have the template set to “Default Template” instead
* of Canvas or Full Width. This fixes it.
if ( ! function_exists(‘mx_plugin_elementor’))
// See if this is anything but an empty string (default template)
// I guess we should see if GP has this set to fullwidth content too
if (empty(get_post_meta(get_the_ID(), ‘_generate-full-width-content’, true)))
// No fullwidth settings anywhere? Remove the fullwidth body class.
foreach ($classes as $key => $value)
if ($value == ‘full-width-content’)
// Gimme back my classes
add_filter(‘body_class’, ‘mx_plugin_elementor’, 12);
This seems to sort it.
Obviously not been fixed in the months I found this. I assume Elementor just thinks everyone wants a Full Width website!!June 10, 2020 at 8:46 am #1322352
- You must be logged in to reply to this topic.