- This topic has 6 replies, 2 voices, and was last updated 3 years, 5 months ago by
Fernando.
-
AuthorPosts
-
November 1, 2022 at 4:02 pm #2397441
troyw
Hey team,
Not quite sure what is happening, but the left sidebar is not appearing in the Blog Post Pages as it should? The Left Sidebar is appearing at the bottom of the post instead. If I look in the Widget editor I get a heap of errors like this;
The “lsi_widget” block was affected by errors and may not function properly. Check the developer tools for more details.The “text” block was affected by errors and may not function properly. Check the developer tools for more details.
The “archives” block was affected by errors and may not function properly. Check the developer tools for more details.
The “text” block was affected by errors and may not function properly. Check the developer tools for more details.
The “categories” block was affected by errors and may not function properly. Check the developer tools for more details.
I’m fairly sure this is something to do with it and I also note that the url has this at the end; #more-18239
Any ideas what is causing this please?
ThanksNovember 1, 2022 at 4:48 pm #2397462troyw
Sorry,
I have identified the issue, but need to know how I can adjust the CSS to ignore the blogs.
So here is the custom CSS causing the problem;#content{ display: block; }What this code does, is fix a bug in WP Travel Plugin, where the image does not size correctly on their holiday page. The unintentional consequence of this however, is that the Left Sidebar is put to the bottom of Blog posts.
Is there a way by adapting this css, that I can stop this happening or target only WP Travel and not everything else?Thanks
November 1, 2022 at 6:14 pm #2397527Fernando Customer Support
Hi Troyw,
Yes, there’s a way. The default display of the content is
flex– displayed in rows on desktop. The CSS you have is turning it todisplay: block.The link you provided is for a Single Post page. To clarify, are you wanting to exclude that code there? If so, alter that CSS you have to this:
body:not(.single-post) div#content { display: block; }November 1, 2022 at 7:43 pm #2397566troyw
Thats awesome Fernando, thanks.
Can I be a bit cheeky and ask how I can also stop it from affecting the Travel Archive Page.
I adapted your css, but it doesn’t seem to work. I’ve tried a few selectors, but none seem to get it?body:not(.wp-travel-archive-content) div#content { display: block; }The link is below and as you can see, the css breaks the footer section?
ThanksNovember 1, 2022 at 10:30 pm #2397637Fernando Customer Support
Can you try this?
body:not(.post-type-archive-itineraries, .single-post) div#content { display: block; }November 2, 2022 at 12:36 am #2397726troyw
All fixed, thanks Fernando.
November 2, 2022 at 12:39 am #2397735Fernando Customer Support
You’re welcome Troyw!
-
AuthorPosts
- You must be logged in to reply to this topic.