HTML Nuggets- for header

Creating and modifying plugins.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

HTML Nuggets- for header

Post by rj »

Let me try a different approach to this problem, the style.css file is killin me. :)


I have loaded two HTML Nugget plugins that both say they add things to the HEADER. Both only seem to add things above the header, below the header or to the sides of the header, I cant get anything inside the HEADER. Using style.css I can get ONE THING in the header only.

I hope there is something I am missing when I put the html code into the editor. Something before and after the actual code?

Like a link, I put...
<a href="http://jimo.com">jim</a>
Jim shows as a link alright, but not IN the header, always somehere around it.

One of the plugins says add to header with no options.
The other one has a few options; header, comment box, footer and so on.
HEADER puts things OUTSIDE the HEADER, not IN IT.


What am I missing?
Perhaps I can delete the header in .css and just add my own through this header nugger??

thanx
rj
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi

I think the confusion here is with the term 'Header'. I'm guessing from your post that you want to add your link to the top banner area of your blog and that this is what you are describing as the 'header'. To do this you would need to edit your index.tpl file. The blog title that appears in your header is usually

Code: Select all

<h1><a class="homelink1" href="{$serendipityBaseURL}">
and the blog description

Code: Select all

<h1><a class="homelink2" href="{$serendipityBaseURL}">
So you would need to add your link in the div that these title and description links appear in.

The plugins that you are trying to use will either put something in the head area of the HTML that is generated for your page - some javascript for example - or put something above or below the content of your blog entries - maybe some adwords code or something that you want to appear at the top (or bottom) of the entries column of each page.

I hope I've understood correctly and this is of some help :-)

Dave
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi

I think the confusion here is with the term 'Header'. I'm guessing from your post that you want to add your link to the top banner area of your blog and that this is what you are describing as the 'header'. To do this you would need to edit your index.tpl file. The blog title that appears in your header is usually

Code: Select all

<h1><a class="homelink1" href="{$serendipityBaseURL}">
and the blog description

Code: Select all

<h1><a class="homelink2" href="{$serendipityBaseURL}">
So you would need to add your link in the div that these title and description links appear in.

The plugins that you are trying to use will either put something in the head area of the HTML that is generated for your page - some javascript for example - or put something above or below the content of your blog entries - maybe some adwords code or something that you want to appear at the top (or bottom) of the entries column of each page.

I hope I've understood correctly and this is of some help :-)

Dave
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

Yes, it was a big help, not what I wanted to hear though! :)
I wanted to easy nuggets.

BANNER is the word not HEADER!
Index.tlp not style.css! Boy, I am now going to get this thing going

So let me make sure here. I use style.css to size and backgorund the BANNER, and index.tlp to control what is presented inside the banner?

What exactly does HOVER mean? What is hover1 and hover2?

thanx, rj

One last thing. Does everyone tweak online? Or like FRONTPAGE do you load from your hard drive, tweak, and then upload the files?
I can see the problem with doing it offline mixing up which new files go where...
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi
rj wrote:So let me make sure here. I use style.css to size and backgorund the BANNER, and index.tlp to control what is presented inside the banner?
sounds right to me :-)
What exactly does HOVER mean?
hover is a pseudo class usually applied to links, menus etc. see here at w3schools for a full explanation
One last thing. Does everyone tweak online? Or like FRONTPAGE do you load from your hard drive, tweak, and then upload the files?
whatever you find easiest. For myself I have a development server set up locally on my computer and I also have a development and test site set up online.

HTH

Dave
Post Reply