1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-23 01:30:09 +01:00

AD-1227 add title to featured blog section

This commit is contained in:
vrde 2015-11-03 17:27:20 +01:00
parent a3c64f89c8
commit 0cc00526f2
4 changed files with 15 additions and 2 deletions

View File

@ -464,6 +464,7 @@ h5,
.product-overview.small p, .product-overview.small p,
.blue-box, .blue-box,
.galleries-marketplaces h1, .galleries-marketplaces h1,
.blog-features .centered-content > h1,
.blog-features h2, .blog-features h2,
.blog-features h1, .blog-features h1,
.team, .team,
@ -2221,6 +2222,12 @@ header + .chevron-divider {
background-color: #fbfbfb; background-color: #fbfbfb;
padding: 75px 0; padding: 75px 0;
} }
.blog-features .centered-content > h1 {
font-size: 30px;
color: #000000;
line-height: 36px;
margin-bottom: 50px;
}
.blog-features .blog { .blog-features .blog {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;

File diff suppressed because one or more lines are too long

View File

@ -926,6 +926,10 @@ header + .chevron-divider {
background-color: @greyBg; background-color: @greyBg;
padding: 75px 0; padding: 75px 0;
.centered-content > h1 {
.galleriesPressTitle;
}
.blog { .blog {
.ttl-columns.column-3; .ttl-columns.column-3;
margin-bottom: 40px; margin-bottom: 40px;

View File

@ -332,6 +332,7 @@ class Subtemplate {
} }
public function blogFeatures($page = "home") { public function blogFeatures($page = "home") {
$blogFeatures = ''; $blogFeatures = '';
$subtemplateTitle = get_sub_field('section_title');
if (have_rows('blog_features','option')) { if (have_rows('blog_features','option')) {
while (have_rows('blog_features','option')) { while (have_rows('blog_features','option')) {
the_row(); the_row();
@ -366,6 +367,7 @@ class Subtemplate {
if ($page == "home") { if ($page == "home") {
$result = "<section class='subtemplate blog-features'> $result = "<section class='subtemplate blog-features'>
<div class='centered-content'> <div class='centered-content'>
<h1>{$subtemplateTitle}</h1>
<div class='column-container'> <div class='column-container'>
{$blogFeatures} {$blogFeatures}
</div> </div>