Saturday, February 11, 2023
HomeWordPress Developmentphp - Want Assist With Making Full-Width Template for Weblog Posts (frequent...

php – Want Assist With Making Full-Width Template for Weblog Posts (frequent strategies aren’t working)


I have been researching this one for some time and can not seem to discover the answer. However, I might wish to have a selectable template that I can use for sure weblog posts to make them full-width by not displaying the sidebar whereas protecting the header, footer, and feedback. My theme (Coral Darkish) got here with a pages-full-width.php template that accomplishes precisely this for pages. However, I’ve no templates to select from for normal posts.

I’ve tried to create one myself by copying the one.php file and eradicating the <?php get_sidebar(); ?> code, however this doesn’t work. I’ve additionally tried so as to add this to customized CSS (altering the submit ID) as somebody steered, however no end result there both:

.single-author .site-content,
.postid-4553 .site-content,
.postid-4253 .site-content
{
    flex: 0 0 100%!vital;
    max-width: 100%!vital;
    padding-right: 0px!vital;
}

I additionally tried the Fullwidth Templates for Any Theme & Web page Builder plugin which nearly gave me precisely what I would like, however regardless of which setting I exploit, it eliminates the feedback part.

I am not fairly certain, however I believe the problem is my theme would not appear to seek advice from the sidebar as such, and as an alternative appears to name it widget-area egrid. Unsure if that is correct, however would make sense as to why merely eradicating the <?php get_sidebar(); ?> on these template tutorials is not working.

Here is an instance of a submit that I might like to use this practice template for, simply to eradicate the sidebar/widgets so the submit is full width, however protecting the header, footer, and feedback:

https://lordkayoss.com/2022/02/28/equipment-chronicles-chasing-quality-on-youtube/

Can somebody assist?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments