WordPress.org

Ready to get started?Download WordPress

Forums

Mass Center all posts :/ (22 posts)

  1. animemike
    Member
    Posted 3 years ago #

    IS there a way to mass Center all of my wordpress posts i have about 12000 all need to be centered

    if i edit each one it would take me years i think :D

    Thanks alot

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Try editing your theme's stylesheet.

  3. animemike
    Member
    Posted 3 years ago #

    am not so good at this mate only just started is stylesheet the CSS file?

    also what would i be looking for if it was

    Thanks

  4. randinicole
    Member
    Posted 3 years ago #

    yes the style is the .css file.

    if you link me to the website i can tell you what to edit

  5. animemike
    Member
    Posted 3 years ago #

    Hey my website is closed atm but my test one http://www.chickenpie.biz/
    runs the same theme as my main one
    Thanks

  6. randinicole
    Member
    Posted 3 years ago #

    Okay just to clarify, you want your post centered, so do you want to get rid of the sidebar or leave it and just center the text of the post. Sorry bout your original post was rather vague.

  7. animemike
    Member
    Posted 3 years ago #

    Np am trying to center all the posts and and pages if i can :3

    Thanks

  8. animemike
    Member
    Posted 3 years ago #

    Bump sorry just asking about if this still can be done

  9. Mark / t31os
    Moderator
    Posted 3 years ago #

    What exactly do you want to center, just the paragraphs in posts?

    Try adding this at the bottom of the stylesheet.

    .post p { text-align:center; }
  10. animemike
    Member
    Posted 3 years ago #

    Hi mate the whole posts i am after centering
    Thanks

  11. Mark / t31os
    Moderator
    Posted 3 years ago #

    Yes i understand that, but what i don't understand is what you mean by "all".. Do you mean just the paragraphs of text, ie. the post content, or the post title, etc... and everything else aswell.

    Please define / clarify, what you mean by "all".

  12. animemike
    Member
    Posted 3 years ago #

    oh i see sorry

    i Think its called "post content" as you said above
    (When adding a post the title is the top box and the large bottom box is what i am trying to center everything what has been posted in this box)

    Thanks

  13. Mark / t31os
    Moderator
    Posted 3 years ago #

    The code i provided above should do that for you (can go at the bottom of your theme's style.css), or do you mean you want it centered when writing the posts? ... a little more clarification would be great... :)

  14. animemike
    Member
    Posted 3 years ago #

    oki i added .post p { text-align:center; } and it works thanks alot
    for pages would .page p { text-align:center; } wwork?

    Thanks alot saved me tons of editing :D

  15. Mark / t31os
    Moderator
    Posted 3 years ago #

    Where did you add the code? I can't see it in your stylesheet.. it should work for pages to.. :)

  16. animemike
    Member
    Posted 3 years ago #

    I said on post 5 my main one is closed mate
    But will open it for 10 mins so you can see

    http://www.myanimeisland.com/streaming/

    The page Anime List is the only page i dont want centering everything else i do if that can be done

    Thanks

  17. Mark / t31os
    Moderator
    Posted 3 years ago #

    So is the above page centering to? Not sure i can help unless you explain what you're having trouble with, doesn't the supplied code do what you asked?

  18. animemike
    Member
    Posted 3 years ago #

    Yes it works for posts
    But pages it dont

  19. Mark / t31os
    Moderator
    Posted 3 years ago #

    I'm a little confused, you've given me two seperate blog URLs, are these both your blogs, and you're wanting to apply this to both?

    The first URL you gave me, based on the code on your pages on that site, the code suggested already will work.

    For the second URL, can you give me a link to a page where it doesn't work (so i can examine the code), and i'll provide something additional to center on pages.

  20. animemike
    Member
    Posted 3 years ago #

    ALl right the first link was because my other site http://www.myanimeisland.com/streaming/ was closed as its not ready to be opened

    the reason i linked the first one also was it was the same theme

    Right http://www.myanimeisland.com/streaming/ on this site (which works for me what error are you getting?) i am trying to center every Post
    Example would be this http://www.myanimeisland.com/streaming/anime-list/berserk/berserk-episode-12-english-dubbed/ Which your code from above worked (thanks)

    Now pages
    Exmaple http://www.myanimeisland.com/streaming/anime-list/crest-of-the-stars-english-dubbed/

    These are allso what i am trying to center all of them

    Hope this makes it easyer to understand and sorry my english is crap

    Mike

  21. Mark / t31os
    Moderator
    Posted 3 years ago #

    In theory, you could just change the page content to using paragraphs, and it will work inline with the previous suggested code, else why not just apply the centering to the elements when writing the page.

    ie.

    <div style="text-align:center"></div>

    Or create a class and give the elements you want to center that class.

    ie.

    .center { text-align:center; }
    <div class="center"></div>

    Or we could just forget all that and just try to center everything inside the post/page.

    .post-content { text-align:center }
    .post-content * { text-align:center }
  22. animemike
    Member
    Posted 3 years ago #

    Thanks alot we got there in the end here

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.