Tagged: x
-
AuthorPosts
-
May 4, 2016 at 10:49 am #912684
NaturalifeParticipantI am checking my site’s mobile view and I noticed that when I go to the blog, the recent posts article titles on mobile view are huge and I am not sure why. You can view it here: naturalife.org/blog
Is there code I can insert to edit the size?
I also have another question I would like to ask in order to avoid opening several forum posts.
What code would I need to insert to add a colored dotted underline to the links strictly in the posts / article content?
Thanks!
May 4, 2016 at 2:53 pm #913094
JadeModeratorHi there,
Please add this in the CSS Customizer:
@media (max-width: 480px) { body.blog .entry-title a, .single .entry-title { font-size: 1em; } }Hope this helps.
May 9, 2016 at 1:31 pm #982747
NaturalifeParticipantThanks for the reply.
That worked but now the article title is quite small for some unknown reason. It looks great in the blog list but when I click to view the actual article the title appears to be quite small in mobile view.
Any idea what needs to be changed?
Thanks!
May 9, 2016 at 3:04 pm #982923
JoaoModeratorHi There,
Can you please provide the URL so we can have a look?
Thanks,
Joao
May 10, 2016 at 8:46 am #984101
NaturalifeParticipantMay 10, 2016 at 11:18 am #984347
Nabeel AModeratorHi there,
Please add the following code in your Customizer:
@media screen and (max-width: 480px) { body.blog .entry-title a, .single .entry-title { font-size: 23px !important; } }Change the size as per your need. Let us know how this goes!
May 10, 2016 at 2:04 pm #984611
NaturalifeParticipantEven after clearing the cache this didn’t seem to work unfortunately.
Any other suggestions?
Thanks
May 10, 2016 at 2:17 pm #984636
NaturalifeParticipantThis reply has been marked as private.May 10, 2016 at 11:01 pm #985274
Nabeel AModeratorHi again,
Please replace the following code:
@media (max-width: 480px) { body.blog .entry-title a, .single .entry-title { font-size: .8em; } } }With this:
@media screen and (max-width: 480px) { body.blog .entry-title a, .single .entry-title { font-size: 23px !important; } }Your code has an extra bracket which is preventing the suggested code to work.
Cheers!
May 11, 2016 at 3:18 pm #986496
NaturalifeParticipantOk great that worked thank you!
One last question:
I noticed that the line spacing for the article titles is larger in the blog view: naturalife.org/blog
Compared to: http://naturalife.org/natural-remedies/health-benefits-eleuthero
Again this is on the mobile view.
So how can I reduce the line spacing ONLY on the blog list view. I don’t want to increase the spacing on the actual article page.
Thank you for your help.
May 11, 2016 at 7:22 pm #986786
John EzraMemberHi there,
Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
@media (max-width:480px) { .entry-header{ font-size:0; } .entry-content { font-size:20.2px } p.p-meta { font-size: 17.3114px; } body.blog .entry-title a { line-height:1!important } }Hope this helps – thanks!
May 18, 2016 at 1:16 pm #997852
NaturalifeParticipantThis reply has been marked as private.May 18, 2016 at 4:21 pm #998149
JadeModeratorHi there,
Please add this CSS:
body.blog .entry-title a { display: block; }Hope this helps.
June 3, 2016 at 7:48 pm #1025014
NaturalifeParticipantUnfortunately this still didn’t seem to help. I have taken a screenshot which can be seen here: https://snag.gy/jkZswL.jpg
On the left side, is the header that’s seen on the actual post / article page. This can be seen on: http://naturalife.org/nutrition/9-foods-will-help-sleep-better
On the right side, is the header that’s seen on the blog / article list. As seen on: naturalife.org/blog
Do you have any other suggestions as to how i can fix this?
Also, it may be a coincidence but now the post meta that’s supposed to read “comments” now reads “%s comments” for some reason.
Thank you for your time
June 4, 2016 at 2:34 am #1025381
RadModeratorHi there,
1. CSS are not properly formatted, for example,
@media screen and (max-width: 480px) { body.blog .entry-title a, .single .entry-title { font-size: 26px !important; line-height: 1.2 !important; } } .single-post .p-meta { text-transform: none; } .blog .p-meta { text-transform: none; } } .single-post h3{ font-size: 1.01em !important; } }let’s break it, this is correct, two opening bracket and two closing brackets.
@media screen and (max-width: 480px) { body.blog .entry-title a, .single .entry-title { font-size: 26px !important; line-height: 1.2 !important; } }but why another CSS has two closing
.blog .p-meta { text-transform: none; } }Any CSS that you added after the faulty CSS will not work.
2. And since you’re targeting different line height for blog list, then we can break this CSS
@media screen and (max-width: 480px) { body.blog .entry-title a, .single .entry-title { font-size: 26px !important; line-height: 1.2 !important; } }to this,
@media screen and (max-width: 480px) { .blog .entry-title, .blog .entry-title a { font-size: 26px !important; line-height: 1em !important; } .single-post .entry-title { font-size: 26px !important; line-height: 1em !important; } }Then just change the line-height value to your preference (each for the blog and single).
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-912684 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
