Hey there,
I am not familiar with Hubl coding and I am encountering an issue when I try to change the title of our blog.
I have changed the {{group.public_title}} to twhat I want but then the CSS is not applied to it.
How do I change the {{group.public_title}} to what I want the name of the blog to be and have the css applied to it?
Here is the CSS:
@import url('https://fonts.googleapis.com/css?family=Montserrat:200,300,400,500');
.custom-banner-blog {
min-height: 300px;
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
position: relative;
}
.custom-banner-blog .banner-text {
padding: 100px 0 24px;
text-align: center;
margin: 0;
-webkit-box-flex: 0;
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
flex: 1;
z-index: 1;
position: relative;
}
.custom-banner-blog .banner-text .banner-title {
color: #FF4900;
font-family: "Montserrat", sans-serif;
font-size: 50px;
line-height: 56px;
margin: 0px 0px 36px 0;
width: 100%;
font-weight: 500;
text-transform: uppercase;
letter-spacing: -2px;
}
@media (max-width: 767px){
.custom-banner-blog .banner-text .banner-title{
font-size: 2rem;
}
}
/* Ie Only */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.custom-banner-blog {
height: 500px;
}
}
Here is the HTML+HUBL code:
<div class="custom-banner-blog" style="background-image: url('//cdn2.hubspot.net/hubfs/4508663/June2018/Images/header-3000.jpg');">
<div class="banner-text">
<div class="page-center">
<div class="banner-title">
{{ group.public_title }}
</div>
</div>
</div>
</div>