You can include an existing template to your concrete5 site by following these steps:
Create a new file at the following location:
blocks/content/templates/wrapper.php
Enter the following code in the new file:
<div class="content-wrapper"> <?php $bvt = new BlockViewTemplate($this->getBlockObject()); $bvt->setBlockCustomTemplate(false); include($bvt->getTemplate()); ?> </div>
Save the file and go back to your concrete5 site.
Add a new content block and click on it after you've hit Add and select Custom Template.
Select Wrapper and update again.
When you look at the HTML code generated by concrete5 you'll find an additional DIV in the output with a class called content-wrapper
.
You can use this class in your CSS file called main.css
. Add a rule like this to change the background color:
.content-wrapper { background-color: silver; }
We've created a new template which basically includes the existing...