Site logo

Archived topic

Hook output to allow rendering of custom code with full-width before comments

3 replies · Started by jasmeet on July 21, 2019

Viewing posts 1–4 of 4

Hello

As per captioned topic title, Kindly suggest if it is possible to add custom code with full-width which can be rendered before comment area as selecting "before_comments" doesn't allow it to go full width and it remains wrapped within post parent div

Taking it "above_footer" provides in a partial solution by making it full-width however, the same goes below comment section which isnt great from UX prospective

Or, If we could have the possibility to have Custom Single Post Template which can be uploaded to child theme in order to have comment area and above, not wrapped within parent post div like seen in blog posts below in specific sites, enabling to have their specific parent div which can be wrapped later with custom CSS-

https://www.copyblogger.com/better-list-posts/ (Please view post-navigation)
https://managewp.com/blog/local-sync-localhost-wordpress (sections below author box)

Any help would be greatly appreciated here

Hi Tom

thank you for providing workaround however the same doesn't render output 100% as envisaged. Secondly, It might have cross-browser compatibility issues

Can you kindly suggest a more concrete solution or maybe, we can have this option of adding hook in future GP version where the layout scales to full-width above comment-area

Hi there,

aside of creating a custom template for your single posts, the only other alternative is to set the post to Full Width and then use CSS to limit the width of all the other elements.

This archived topic is closed to new replies.