m |
m |
||
| Line 24: | Line 24: | ||
</div> | </div> | ||
The Grid can be used in any post, page or section within your PageLines theme. As long as the section you are coding grid syntax into is enabled on your page's template, it will render elegantly.<br><br> | The Grid can be used in any post, page or section within your PageLines theme. As long as the section you are coding grid syntax into is enabled on your page's template, it will render elegantly.<br><br> | ||
| − | The Grid consists of rows and columns. The row is simply given to the div tag as a class called <span style="color:red;">"row"</span>, and it is filled with "columns". There are 12 possible columns in a row, and they are given to the div tag as a class called <span style="color:red;">"span(1-12)"</span>. Depending upon the number you choose immediately following the "span" class determines how much space in the row that column or "span" will take up. | + | The Grid consists of rows and columns. The row is simply given to the div tag as a class called <span style="color:red;">"row"</span>, and it is filled with "columns". There are 12 possible columns in a row, and they are given to the div tag as a class called <span style="color:red;">"span(1-12)"</span>. Depending upon the number you choose immediately following the "span" class determines how much space in the row that column or "span" will take up. |
| − | + | ||
| − | + | <p>The following sections allow Grid syntax: <a href="#">Content Box</a>, <a href="#">Content</a> and <a href="#">Grid Layout</a>. Content and Grid Layout, by default will use Wordpress's built in text editor to define the Grid, while the Content Box will use the Textarea field as the editor.</p> | |
| − | <p>The following sections allow Grid syntax</p> | + | <div class="alert alert-error"> |
| + | <strong>Careful!</strong> Do not use the Content and Grid Layout sections on the same page, as they both use Wordpress's editor and will, thus resulting in duplicate content. If you want to use two Grids on one page, pair the Content or Grid Layout sections with a Content Box section. | ||
| + | </div> | ||
| + | <div class="alert alert-info"> | ||
| + | <strong>Tip:</strong>If you are going to use the Grid in a Content Box, utilize Content Box's <strong>Content Box Class</strong> field to further customize your grid. | ||
| + | </div> | ||
<strong>The Syntax</strong> | <strong>The Syntax</strong> | ||
<br> | <br> | ||
The following sections allow Grid syntax: Content Box, Content and Grid Layout. Content and Grid Layout, by default will use Wordpress's built in text editor to define the Grid, while the Content Box will use the Textarea field as the editor.
<div class="row">
<div class="span4">
<p>Here is some content in the first section of our span4 column!</p>
</div>
<div class="span4">
<p>This content is in another span4 column, and now we are at a total of 8 columns.</p>
</div>
<div class="span4">
<p>This last bit of content is also in a column that spans 4 spaces, so that brings us to the ultimate number of 12.</p>
</div>
</div>