Tagged: x
-
AuthorPosts
-
February 6, 2017 at 2:20 am #1359295
tparkmediaParticipantHello!
I found in the forum some coding to make my blog post title align to the left and to make it responsive BUT it’s not completely responsive for me.
As you will see in the screenshots for media 979 it’s past the end of the image to the left,
and for media size 450 the first line is not aligned all the way to the left.In media size 979 it does this
And in media size 450 it does this
This is the code I am using:
/*change post title style, alignment and make it responsive */ .single .entry-title { font-size: 24px; font-weight: 500; text-transform: capitalize; text-align: left; } .single-post .entry-header { padding-top: 2em; margin: 0 auto; padding-left: 10%; padding-right: 10%; } .single-post .entry-header .entry-title { width: 88% !important; padding: 0; max-width: 1200px; }Thank you!
February 6, 2017 at 2:51 am #1359336
ChristopherModeratorHi there,
Please update your code to :
/*change post title style, alignment and make it responsive */ .single .entry-title { font-size: 24px; font-weight: 500; text-transform: capitalize; text-align: left; } @media (min-width:767px){ .single-post .entry-header { padding-top: 2em; margin: 0 auto; width: 73%; } } @media (max-width:767px){ .single-post .entry-header { width: 88%; } }Hope it helps.
February 6, 2017 at 11:50 am #1359978
tparkmediaParticipantNope, that didn’t fix it. It also made the title not completely aligned with the image on the left so I changed it back to my code.
Also, I forgot to say that I had this bit to make it responsive.
@media(max-width: 979px){ .single-post .entry-header { padding-left: 0; padding-right: 0; } }So my code is my first post plus this one.
More help please!
THANKS!!!
February 6, 2017 at 1:08 pm #1360058
JadeModeratorHi there,
Would you mind providing your admin details so that we can check the entire code that is in the customizer and test it?
Thank you.
February 6, 2017 at 5:39 pm #1360344
tparkmediaParticipantThis reply has been marked as private.February 7, 2017 at 1:14 am #1360767
LelyModeratorHi There,
When I checked your site, I didn’t see any custom CSS from your Customizer, or even the child theme style.css file.
I made some this, please try the following CSS:/*change post title style, alignment and make it responsive */ .single .entry-title { font-size: 24px; font-weight: 500; text-transform: capitalize; text-align: left; } .single-post .entry-header { padding-top: 2em; margin: 0 auto; padding-left: 10%; padding-right: 10%; } @media(max-width: 979px){ .single-post .entry-header { padding-left: 0; padding-right: 0; } .single-post .entry-content { /*Since the header padding was remove let's also remove content padding*/ padding: 0 !important; } }We have to remove both padding of header and content container so it will adjust accordingly on the same manner.
Hope this helps.
February 7, 2017 at 12:21 pm #1361542
tparkmediaParticipantSorry I forgot to mention I have a plugin for CSS. It’s under Appearance -> Custom CSS.
OK the first issue of the title being weird at 979 is resolved!
BUT the second issue is of the title stacking and not lining up at 450, is NOT resolved: this
Any other suggestions please?
Thanks again!!
February 7, 2017 at 12:25 pm #1361552
tparkmediaParticipantWant to clarify re the second issue: I don’t mind the stacking, just want to fix the alignment issue.
Thanks!
February 7, 2017 at 5:25 pm #1361919
FriechModeratorHi There,
You can add this under Custom > CSS in the Customizer.
.entry-title:before { display: none; }Hope it helps, Cheers!
February 8, 2017 at 1:36 am #1362433
tparkmediaParticipantPerfect!!
Thanks guys!!! 🙂
February 8, 2017 at 4:09 am #1362551
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1359295 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
