- This topic has 9 replies, 4 voices, and was last updated 6 years, 2 months ago by
David.
-
AuthorPosts
-
May 9, 2019 at 10:44 am #894443
Kris
Hi,
I need to format a heading in the generate_before_footer_content hook. I have the h3 in place. I wrapped this in a div with a class=”site-footer-tagline”.Text white
Background green and fills the area of the container.
Centered vertically.So about the same as the copyright footer.
Thanks, Kris.
May 9, 2019 at 10:53 am #894448Leo
StaffCustomer SupportHi there,
Your existing CSS is missing a
;:
https://www.screencast.com/t/FiHrhz7bGTry this for the full CSS:
.site-footer-tagline { background-color: #000000; text-align: center; } .site-footer-tagline h3 { color: #ffffff; margin-bottom: 0; }Let me know if this helps 🙂
May 9, 2019 at 10:59 am #894453Kris
Hi Leo,
Of course it was a missing semi-colon.
Thanks much,
KrisMay 9, 2019 at 11:03 am #894456Leo
StaffCustomer SupportNo problem 🙂
Just a small thing. I would add the
paddingproperty to the.site-footer-taglinepart instead of.site-footer-tagline h3Doesn’t matter too much here but it’s just good practice as the padding property is usually applied to the container itself 🙂
May 9, 2019 at 11:05 am #894459Kris
Thanks again for the follow up. Fixed.
Thanks!
May 9, 2019 at 11:13 am #894469Leo
StaffCustomer SupportNo problem 🙂
January 28, 2020 at 4:35 am #1146753Jose
Hi Leo,
Thank you for all details, I could set up my footer CTA.
¿How can I make it work on mobile?, Also to change the font size (mobile) so the CTA fits in 1 line
See how it looks on desktop:
https://proyectovidaplena.com/levantarse-temprano/Code:
<h2><span style=”color: #fff; font-size:36px”>Consigue el balance de tu vida</span></h2>
DESCUBRIR CÓMOCSS
.site-footer-tagline {
background-color: #1D3050;
text-align: center;
padding-top: 100px;
padding-bottom: 110px;
}Thank you in advance
January 28, 2020 at 10:09 am #1147342David
StaffCustomer SupportHi there,
in your Simple CSS you have a media query that opens but does not close.
Look for this:
@media (min-width: 768px) { .page .entry-header, .post .entry-header { margin-left: -220px; margin-right: -200px; text-align: center; }And change it to:
@media (min-width: 768px) { .page .entry-header, .post .entry-header { margin-left: -220px; margin-right: -200px; text-align: center; } }Your site-footer-tagline styles will now work on mobile
January 28, 2020 at 10:31 am #1147369Jose
Thank you, David.
January 28, 2020 at 11:01 am #1147410David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.