Page 1 of 1

Centre Article titles on just one page

Posted: Tue Jan 01, 2013 12:20 am
by Lemonie
Hiya

I have some pages where I would like the titles to be centred.

http://jtest.homelesshounds.org.uk/inde ... r-adoption

I don't however want them all centred as when the page is full width I want them to stay left. Any ideas?

Re: Centre Article titles on just one page

Posted: Tue Jan 01, 2013 1:23 am
by andypooz

Re: Centre Article titles on just one page

Posted: Tue Jan 01, 2013 11:21 pm
by Lemonie
Am sorry to sound thick but I can't find an advanced section in the Menu edit screen?

Re: Centre Article titles on just one page

Posted: Tue Jan 01, 2013 11:34 pm
by andypooz
Make sure you're on the edit screen for the menu item of the page you want to change.

Re: Centre Article titles on just one page

Posted: Wed Jan 02, 2013 2:48 pm
by Lemonie
Thanks very much for that, this will solve a lot of problems for me on my site.

Re: Centre Article titles on just one page

Posted: Wed Jan 02, 2013 2:59 pm
by Lemonie
I have inspected the page with firebug and the titles are 'h2'. How would I centre those with out also centering the Category Header as well?

Re: Centre Article titles on just one page

Posted: Wed Jan 02, 2013 4:24 pm
by andypooz
If you take a look at the h2 titles you want to centre, they probably have a 'class' atrribute. Something like

Code: Select all

<h2 class="article-title">Example title</h2>
So if you add a rule in your CSS that says

Code: Select all

.custom_page_class h2.article-title { text-align:center; }
That should do the job (obviously my class names are examples, not to be copied exactly)