You are here

CSS

4 posts / 0 new
Last post
dark_yux
Offline
Last seen: 10 years 4 months ago
Joined: 2007-10-23 11:23
CSS

So I have a blog and I want to change the layout so you only show the title of the blog post and when you click on it, then you can see the post. CSS help, please.

José Pedro Arvela
Offline
Last seen: 5 years 5 months ago
Joined: 2007-07-10 07:29
What?

You want that the content is hidden and the you need to press the title to go to the post page or you want to un-hide the post when you pres? The second one needs JavaScript and I don't know how to it. The first one is simple:

Add something like:

.post-body entry-content {
  display: none;
}

BUT I DON'T ADVICE IT! DON'T USE THIS UNLESS YOU ARE REALLY NEEDING!

Because I think that isn't correct, and you will have problems because this applies even inside the blog post, see this site instead, that may give you some help (link).

EDIT: Link fixed

Blue is everything.

dark_yux
Offline
Last seen: 10 years 4 months ago
Joined: 2007-10-23 11:23
Thanks...

I'll try that.

self.path = path if self.path == None else self.path

José Pedro Arvela
Offline
Last seen: 5 years 5 months ago
Joined: 2007-07-10 07:29
Even better

Even better, I found a better way to do it from Blogger help: (link).

Blue is everything.

Log in or register to post comments