Hello,
Looked around but didn’t see a post specific to my question and this seems to be the most relevant one.
So what I am trying to achieve is to have full-width templates for all my pages apart from the blog page and any subsequent blog posts.
Looking at the templates I see that app.blade.php is being used for all pages/posts and it has
<div class="wrap container" role="document">
I want to replace that for ALL pages too:
<div class="container-fluid" role="document">
BUT then keep it the same i.e. <div class="wrap container" role="document">
for the blog page and any subsequent blog post pages.
Now I did create a template by duplicating app.blade.php to template-fullwidth.blade.php to be used for all pages that require full-width containers which I can then select in WordPress for pages that I create that require full width but I somehow feel that this isn’t the best or mostly importantly DRY method of achieving what I would like if I only want to remove that small amount of code.
Once thats done i would be implementing this for the actual blog page itself:
which looks spot on for what I need to show my initial blog page.
SO is there an easy way to replace <div class="wrap container" role="document">
to <div class="container-fluid" role="document">
for ALL pages except the blog page and posts? which will in turn only require me to make a cutom template for the blog page which the above link describes…
please keep in mind that I am new to blade/sage 9 and have only previously used the old roots theme and I have read up on blade and watched screencasts etc but cannot seem to figure this out.
Hope all that makes sense… trying not to repeat my self in code and keep everything as clean as possible…