Page 1 of 1

<hr> between entries

Posted: Sun May 06, 2007 7:38 pm
by holysjit
Hi,
I want add a bit structure to my weblog, so I want between posts a <hr> or line (image). How do i do this?
I added a red line in the screenshots. Thats the one i want to add. How?

http://img69.imageshack.us/img69/6118/redlineis0.png


Thanks

Re: <hr> between entries

Posted: Mon May 07, 2007 10:28 am
by garvinhicking
Hi!

For that you can/must either edit the entries.tpl template file and insert a <hr> after {$entry.body} for example. Place that there and watch how it affects your blog.

The other option would be to do it with CSS already, by using a "border-bottom". Since you didn't provide your URL, I can't give you the full CSS code you need to add to your style.css file, but it's something like:

Code: Select all

.serendipity_entry {
    border-bottom: 20px solid red;
}
Regards,
Garvin

Posted: Tue May 08, 2007 9:09 am
by holysjit
I have now another problem: Stupid me!
I added to a file <hr> , but I cant find the file which contains the <hr> tag.
www.thejokers.nl

Maybey you know?

P.S. Its not in the Andreas08 folder, I'm sure about that!!

Posted: Tue May 08, 2007 9:59 am
by garvinhicking
Hi!

Uhm, I'm not sure I understand your question.

You added a "<hr>" to a file but you can't remember to which file you added it? Because the <hr> shows up in your blog?!

You must have inserted it into the 'entries.tpl' file...

Regards,
Garvin

Posted: Tue May 08, 2007 12:47 pm
by holysjit
Yeah, that's my question.

Watch my index.tpl file

http://www.freefileupload.net/file.php? ... ntries.tpl

I added a <hr> to a file, but I can't find it.
The <hr> appears after the READ MORE link.....

Posted: Tue May 08, 2007 12:55 pm
by garvinhicking
Hi!

To which file did you add it?

I just looked at your blog, it seems you inserted the <hr> into your ENTRY, not inside a template file.

Go and edit the file templates/andreas08/entries.tpl (the one you posted). After line 27 ( a closing </div>) you can simply add your <hr />.

Regards,
Garvin

Posted: Tue May 08, 2007 1:00 pm
by holysjit
No, but I made a backup from my andreas08 folder, and I downloaded the Andreas08 template again, and uploaded the NEW files to my ftp. And the <hr> is still there. I did this yesterday.... Thats why I said that it couldn't be the Andreas08 folder..

Posted: Tue May 08, 2007 1:08 pm
by garvinhicking
Hi!

You're confusing me. :)

Maybe you don't have the andreas08 template activated? Go to the s9y admin panel, go to "manage styles" and then activate andreas08. Maybe you currently have activated a different template.

Regards,
Garvin

Posted: Tue May 08, 2007 1:11 pm
by holysjit
It was activated already.
Yesterday I was crapping with the .tpl files, but im sure its not the Andreas08 folder. But I restored all files, but the <hr> wont go away...

Posted: Tue May 08, 2007 1:16 pm
by holysjit
I solved it! I changed in the CSS file the width for HR

Code: Select all

 hr {
  border: 0;
  width: 0%;
}
I never use <hr>, so it's no problem for me..
But which file contains <hr>, I will never know i think :)

Posted: Tue May 08, 2007 1:42 pm
by garvinhicking
Hi!

Are you sure you didn't accidentally edit a file in templates_c/ ? Those files are never meant for editing, you might need to telete all the "strange looking" files in that directory, they are only caches for compiled templates.

HTH,
Garvin

Posted: Tue May 08, 2007 3:36 pm
by judebert
Indeed, that doesn't remove the <hr> from the output, but only makes it take up no space on the display. Search engines and source code readers will still see it.

I'll bet the edited file was in templates_c, like Garvin said. You can delete those, and they'll be regenerated later.