Horizontal categories on the top of the homepage
-
1. How can I put the categories on a horizontal bar, on the top of my homepage, imediately under the title of my blog and the welcome message?
2. I want also to have on my homepage the last posted article, than the list of, let’s say, previous 10 articles, with 300 characters sindicalized & links to the whole articles.
-
-
One more thing: the horizontal bar is where, on the left part, there is “home” and “about” buttons. Than I want to have continuously the categories buttons. So, how can I do it this way?
-
-
It’s just a project in this moment. I wanna move from blogger because of the limited posibilities:
And the actual Blogger’ blog:
-
The menu bar on that theme represents pages. There is a trick – which may or may not work – for getting categories across the top by including a link to the category page. Put this, for example, into the title of the page:
<a href="http://budesh.wordpress.com/category/1-eveniment/">Eveniment</a>However – I see you have numbered your categories, which may look a little strange if you have the category title up there. You probably did that to get them in a certain order in on the category widget. You may want to re-think that.
-
Thank you very much. I’ll put that script without any number, because the scoop is exactly what you assumed it can be.
-
As for your second question, the number of posts shown is set at Settings>Reading; for displaying the beginning of a post only, you use the “more” tag – see here:
http://faq.wordpress.com/2008/07/08/splitting-posts-with-the-more-tag/ -
The trick has to match the name of the category exactly; otherwise, it will not work. You will need to change the name of the category itself.
And sorry – I missed the second question completely.
-
I did it, without using the html code you gave me, Vivian, by generating pages exactly on that bar of my blog project.
But now I have another problem: I can’t set an article to enter on one certain page, because I have not this option on the editing article section. Do I or do I not?
So, in this moment I have a funny situation: I have categories on the main vertical bar, with articles that can be categorized here and I have also “pages-like-categories” on the top bar, wich stays blank of any articles. Is it something that I can do to fix this situation?Thanks again
Florin Budescu
http://budesh.worpress.com -
You cannot have posts IN pages. Pages can only have content of their own, just like posts (the difference is that pages are outside the chronological order of posts and outside your main/posts area).
If you want tabs in the header that will really function as categories, the only way is the one Vivian suggested. Otherwise, if you retain the “normal” pages you created, the only thing you can do is write a list of LINKS to the relevant posts in them (fast way to do this: open two windows in your browser, drag-and-drop post titles to page editor). The drawback in this case (apart from the extra step of clicking tab then clicking link) is that you’ll have to update the pages manually each time you write a new post; Vivian’s suggestion is better.
-
budesh – you asked about categories not pages, which is what makes the HTML trick necessary. And as you have discovered, and as panaghiotisadam explains, there is no way to post to pages.
What you have on you navigation bar are PAGES, not categories.
-
-
I used the trick with the link in the title (thanks Vivian) on my blog http://koerner.wordpress.com. It works, but interestingly enough there is a small clickable extra section, just before the title of the link.
You can see it on my blog between the two options called house (the first one is just a regular page). It is not related to the name being the same, I already tested it with a different name.
Any idea what I’m doing wrong?
-
I think that’s a problem with the theme. (But why do you have two pages with the same name?) Some of them act like that.
That extra area, by the way, shows this
http://koerner.wordpress.com/a-hrefhttpkoernerwordpresscomcategoryhousehouse2/It looks like an attempt at making the category page but without the proper formatting. Try going into your manage>pages and see if you can delete it.
If you cannot for some reason, I would change the order of the pages. Instead of the default alphabetical, I’d put in a page order (down near the bottom of the manage page screen) and move the /category/house/ page to be last on the list.
-
I changed it to only have one house page now (that was the plan anyway) and moved it to the end. However the small section is still there. The small section links to a page, and I just added a link to it, also going to the house category.
It’s not a big deal. But if someone has another idea on how to fix it, let me know.
-
You can’t fix it. The title=link trick works flawlessly with some themes but not with others. Keep in mind that this trick is practically a violation of what should normally be the case, i.e. no html codes in titles.
- The topic ‘Horizontal categories on the top of the homepage’ is closed to new replies.