Support » Fixing WordPress » Forcing lowercase?

  • iamPariah

    (@iampariah)


    Is there a way to force WP template tags to insert mixed case results as lower case?

    I need to somehow print out this: Make lowercase (author_firstname & “.” & author_lastname).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Kate

    (@katie1)

    You can try this IF you don’t have a standard div surrounding your author output ie:

    HTML
    <div class=”something”> then the author php code info you want to generate </div>:

    CSS:
    .something {
    text-transform: lowercase;
    }

    Otherwise…
    Simple and effective.

    <span style=”text-transform:lowercase”><?php author_lastname(); ?></span>

    I force uppercase in my sidebar, so I styled the rightmenu to produce the results.

    Kate

    iamPariah

    (@iampariah)

    Thanks, Kate, but I actually need the variables to be returned lowercase (as opposed to simply displaying lowercase) so I can use them in a function.

    Kate

    (@katie1)

    OK. I understand you want the variable OUTPUT to be displayed lowercase via a special call function, but surely you’re going to wrap all this in an element somewhere on a template?

    Sometimes, when it comes to variables and output via php coding, its easier to use the K.I.S.S theory 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Forcing lowercase?’ is closed to new replies.