WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [theme: twenty twelve] Cannot capitalize Page names (16 posts)

  1. BLuu123
    Member
    Posted 1 year ago #

    Hi,

    I'm having problems with my custom Twenty Twelve theme.

    Everything works great, expect, I cannot get my page names to capitalize.

    #masthead  .main-navigation a {
            margin-left: 17px;
            margin-top:162px;
            margin: 1 1 1rem 1;
           font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    text-decoration:underline;
    text-transform: capitalize;
    }

    last line wont work, however, if I change text transform to anything else, it works. Obviously I have actually changed the page names.

    My site -

    http://ubervilla.lv/eng/

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    That URL does not seem to work.

  3. BLuu123
    Member
    Posted 1 year ago #

    the server was down for a while, seems to be back now

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Still won't load - is that the right URL?

  5. BLuu123
    Member
    Posted 1 year ago #

    Yes, and its down for me too now again.

    I actually had issues on other server today too. I think its one of those days when the internet backbone screws up.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Okay, well as we all know, those things happen :/. I can check in tomorrow at some point (going to be driving most of the day though so not sure when) or someone else may pick it up too.

  7. BLuu123
    Member
    Posted 1 year ago #

    Ok, thank you sir.

    Maybe those issues were because of the server.

  8. Andrei Olsen
    Member
    Posted 1 year ago #

    Unrelated, but you're missing a few units in
    margin: 1 1 1rem 1;

    You need to specify what 1 is supposed to be (px, em, rem, %, etc.).

  9. Andrei Olsen
    Member
    Posted 1 year ago #

    Well, the site is up and your page names are capitalized.

  10. BLuu123
    Member
    Posted 1 year ago #

    Ok, I thought capitalized is if I type aBc it shows as aBc instead of Abc?

  11. Andrei Olsen
    Member
    Posted 1 year ago #

    Capitalized is when the first letter of the word is changed to uppercase, the rest is left as it was. If you type aBc deF, capitalized text will be shown as ABc DeF.

  12. BLuu123
    Member
    Posted 1 year ago #

    Ok, so how do I make page name aBcdE

  13. Andrei Olsen
    Member
    Posted 1 year ago #

    Remove text-transform from CSS and change the page name to aBcdE.

  14. BLuu123
    Member
    Posted 1 year ago #

    I removed all text-transform lines from css, and now all the pages are uppercase.

  15. Andrei Olsen
    Member
    Posted 1 year ago #

    I see, it's a child theme. Well, your parent theme's CSS transforms text to uppercase.

    Set text-transform: none; in your child theme then.

  16. BLuu123
    Member
    Posted 1 year ago #

    Works now.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.