category page problem
-
Dunno what I did wrong, this time: the other day I was able to set one up fine. And it’s urgent (with apologies), as it’s a matter of a guest post.
:-(
The category I assigned to my latest post simply doesn’t show up in the Category area of Appearance – Menu.
Would someone be good enough to check and advise me which harebrained thing I’ve done wrong, please?The blog I need help with is: (visible only to logged in users)
-
Since the post is published, then the only thing I can think of is you didn’t click the “View All” tab.
-
OK, changing the details of the problem …
Now it shows up, and I click it and add it to the menu.
Makes no difference: all I get when showing the Category Page is, as you see, a huge thing saying Category Archives.
This is truly weird. -
I’ve put a screengrab of the problem I’m referring to in my Media files, called ‘error’ – because I don’t know if I’ve explained it, basically.
-
I made a new menu. I deleted the old menu. Now both Category Pages are showing incorrect headings.
-
-
Where is anyone …? [sob!]
I know it’s only nine hours since I first posted on this; but I’m getting really distressed at the virtually total silence. (Never thought I’d refer to something offered by Panos in that fashion …)
Is it everyone’s sleeping time up there in the northern hemisphere?
I fear very much that being asleep has nothing to do with things, but that this particular problem is one that has people scratching their heads.
Oh, please tell me I’m wrong! -
M.R.
I don’t understand the problem. Take a deep breath, maybe have a cuppa, and explain it in small steps.To be honest, I can easily find your guest post, no problem, from your custom menu tab “Guest Posts.”
It could well be we northern hemisphere folk are sleeping and / or in the wrong season—I have a big day tomorrow and will be asleep soon myself!
If you can explain a bit more about what you want that is not working, then we can help; it’s just that I’m not seeing a problem, or perhaps not understanding what you want to do? For now, please have a good night!
Tess
-
Hi, Tess!
Thanks for letting me know I’m not on an ice floe.
I have stripped out the contents of two Pages on the menu – Bit essays and Be my guest and deleted both Pages.
I have turned each individual item into a post, carefully categorised as required, and posted them.
I have gone into Appearance – Menus and done exactly what the WordPress instructions told me to do in order to have the menu reflect the two headings – which it does, beautifully.
HOWEVER! – when I click on either of those two Category Pages in the menu and am taken to either, the heading on (now) BOTH of them is in huge font that says
CATEGORY ARCHIVES and a colon, followed by the topic.
Yesterday, before I did all this with Be my guest as well, Bit essays were working perfectly. Now both have this huge and ugly header on their entries.
That’s it.
:-( -
Those aren’t “incorrect headings”: on most themes, category pages have a heading that tells visitors which post category they’re viewing. If you don’t want that heading to show, you add this:
.category .page-header { display: none; } -
But Panos, I don’t want NO page header: I just don’t want that huge grey font saying CATEGORY ARCHIVES:
I DO want those two pages to say, respectively (just as do all the other pages), Bit essays and Be my guest. In the same font color/size, etc. as all the other page headers.
As I said; yesterday, when I’d made this change only to Bit essays, it was working perfectly! -
I DO want those two pages […] in the same font color/size, etc. as all the other page headers.
No you don’t, because they’re not the same kind of page.
When you view a static page (e.g. About), the heading is the title of that page. When you view a single post, the heading is the title of that post (same styling with the title of a static page). When you view a category page, you view a dynamic page that displays a group of posts. The styling of the heading for that dynamic page shouldn’t be identical to the styling of the heading for each post the dynamic page displays. So it’s either no heading for category pages or a heading that has its own styling (with or without the “Category Archives” part). -
-
You remove my previous suggestion, and you add this:
.category .page-title { color: transparent; font-size: 0; } .category .page-title span { color: #456789; font-size: 1rem; }Then you can change the 456789 or the 1, or add any other properties and values you like, to change the styling of the heading.
-
Go that- for which, many thanks.
One lastr equest, please, Panos: I can’t get a margin-bottom to work. Is it because I have to use that rather strange rem? -
No, it’s because a span is an inline element: vertical margins apply to block elements. If you want to add a margin to “.category .page-title span”, you need to add this too:
display: block;
Instead of doing that, you can add the margin to “.category .page-title”. -
By the way, tag pages, monthly pages etc also have the kind of heading you don’t like; examples:
http://margaretrosestringer.com/tag/writing/
http://margaretrosestringer.com/2013/11/If you want to change them all, then instead of these:
.category .page-title
.category .page-title span
use these:
.archive .page-title
.archive .page-title span -
I know you’ve written extensively about Pages and Posts, and I thought I was clear to the extent that I need be on the difference between them. But there’s a bloody world of differences, I now realise. :-
Presumably, tag pages are used in exactly the same way as category pages; not sure why one’s used rather than another – AND DON’T CARE, she added hastily
Anyway, here I at a 5 in the morning (AEDST) ready and willing to take on board the latest in the amazingly helpful offerings, and grateful for them all! -
Btw, for what it’s worth to anyone in Support – not directed at Panos.
All those helpful instructions about creating Category Pages? – fer crissake add to them the fact that when you’re done you’ll find the enormous grey headings on the relevant Pages.
Oh, and Tag Pages as well.
If the article had told me that, I wouldn’t have needed to bleat and whinge for hours and hours. -
a) When you view the page that displays the posts you published in 2013, it’s reasonable that the page should have a heading that says: these are the posts published in 2013. Same thing for a monthly archive page, or a category page, etc. I don’t see why you think WP should warn you of that.
b) The wording and the styling of archive page headings isn’t standard: it’s theme dependent.
c) The Theme Showcase site allows you to view a live demo of each theme and examine all its details before you decide to switch to that theme.
d) The default headings on Forever aren’t “enormous”:
http://foreverdemo.wordpress.com/category/uncategorized/
- The topic ‘category page problem’ is closed to new replies.