WordPress.org

Forums

Threaded comments change font-size (7 posts)

  1. caroline
    Member
    Posted 2 years ago #

    I have a huge problem! When I reply to a comment, the font-size goes bigger. You can see for yourself what I mean here in my commentsfield: http://makeupedia.se/lansering-av-gina-tricot-beauty#comments.

    I tried some different ways to fix it, but I'm in need of some help now!

  2. caroline
    Member
    Posted 2 years ago #

    Forgot to mention that I' m not interested in using px, only em!

  3. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Using em is causing that problem -- em is a relative size and font size is inherited by child elements -- so in each nested element, the size will be increased.

    BTW, I noticed that you've made a lot of changes to the style.css file -- which is going to be a problem when WP is updated...generally recommended to use a child theme for any changes to theme files, especially for a default theme.

    You also have a bunch of mark-up errors on that page - so you may want to deal with those as well in case they are creating any problems:

    http://validator.w3.org/check?uri=http%3A%2F%2Fmakeupedia.se%2Flansering-av-gina-tricot-beauty%23comments&charset=%28detect+automatically%29&doctype=Inline&group=0

  4. caroline
    Member
    Posted 2 years ago #

    Yes I really need a childtheme, not sure yet how it works though. I tried it but didn't work very well! I assume I need copies of all files and not just functions.php, and style.css, right?

    Most of my errors are from plugins, but is there any chance em will ever work for me if I fix those? Or should I be happy with px?

  5. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Yes, you are asking for major problems by not using a child theme since you've made a lot of changes. Have you changed other files besides the CSS?

    The errors have nothing to do with why em does not work -- it's a function of the way the comments HTML code is done. Are you wanting to use em so it resizes on smaller devices? Probably going to be quite complicated to make that theme work that way, so you might consider finding a theme that is already coded for responsiveness.

  6. caroline
    Member
    Posted 2 years ago #

    Yes I have done changes in several files, but last time I tried to use a childtheme — the stylesheet didn't read for some reason. I might have forgot to link the new css-file, but I don't know if it supposed to be needed if I use all codes in the childs css?

    I'm familiar with W3 validators since years back! I don't pay much attention to it, neither Google does I suppose?! I just thought that those errors had an impact of using em as you mentioned it :)
    For now I just want to stuck with themes like Twenty Ten or Eleven, since I find them to be most compatible with many plugins I use etc.

  7. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Both twentyeleven and twentytwelve are "responsive" so they would do more in that way. Some errors are not a big deal, others may be and it's generally good to attend to them. They could make a difference in the functioning of your site and browser compatibility and can, at least indirectly, affect your SEO:

    http://support.google.com/webmasters/bin/answer.py?hl=en&answer=100782

    Another interesting post from Google on validation of their own site:

    http://googlewebmastercentral.blogspot.com/2011/07/validation-measuring-and-tracking-code.html

    Personally, I put valid code high on my list of important quality control on any site.

Topic Closed

This topic has been closed to new replies.

About this Topic