Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Center title for just one page? (http://forum.bytesforall.com/showthread.php?t=17329)

sPa Apr 16, 2012 01:27 PM

[SOLVED] Center title for just one page?
 
Hi there!

I'd really appreciate some help with this: I'm trying to get the headline title centered for just one page, not for the rest of the posts and pages on my site. I'm trying to add some variant of

text-align: center

to the HEADLINE Box: Text and HEADLINE Box: Links areas in the theme options, but I can't figure out how to limit the change to just one page. (I used to do this with a whole category of posts via div., but I'm drawing a blank on singling out one page.)

juggledad Apr 16, 2012 02:47 PM

When trying to apply css to just one page, you have to code your css selector so it specifies the page involved. You can use the 'body' element and the unique class for the page involves as the prefix to the rest of the css selector to make it apply just to one page.

So look at the page with a code examiner (firebug for firefox is one) and find the element names names and classes you will need to create the selector, then use the css rule 'text-align: center' and you should be set.

sPa Apr 17, 2012 01:28 AM

Thank you very much for that!

I'm sure that would work. For anyone whose limited css knowledge is challenged by that solution, as is mine, I have since found a simpler workaround for this specific problem:

- in ATO:Configure SEO, turn on Post/Page Options
- now you can disable the page title for one page altogether
- ...and add it again in the page text itself, styled as you like it


All times are GMT -6. The time now is 02:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.