WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How To Center Text (6 posts)

  1. alex_smith22
    Member
    Posted 1 year ago #

    Using "code" tags.</p>
    <p>In the current theme I have, for the footer section it says</p>
    <p>You can add custom HTML and/or shortcodes, which will be automatically inserted into your theme.
    Some shorcodes: [the-year], [site-link], [wp-link], [th-link] for current year, your site link, wordpress site link and attitude site link respectively.
    It is completely optional, but if you like the Theme We would appreciate it if you keep the credit link at the bottom.
    </p>
    <p>But when I try to add "<center>", nothing happens. How do I use the "code" tags to center it?`

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    HTML:
    <pre>this is your code</pre>

    CSS:

    pre {text-align: center;}

    Style away!

  3. alex_smith22
    Member
    Posted 1 year ago #

    Hmm, that didn't seem to work :/

    I did it just like that and it didn't center it, it only added the pre brackets at the beginning and end...

    Is it possible that the theme I'm using restricts is?

  4. mydog8it
    Member
    Posted 1 year ago #

    Try this:

    <p style="text-align: center;">Your text here.</p>

  5. pavan061994
    Member
    Posted 1 year ago #

    For Doing Center Text Try this:

    <p style="text-align: center;">text to be entered</p>

    [Signature removed]

  6. alex_smith22
    Member
    Posted 1 year ago #

    Ok that worked :) It does seem it's part of my theme. It only seems to go about 70% across the bottom of the page...

    Thanks for your help everyone :)

Topic Closed

This topic has been closed to new replies.

About this Topic