How to put a piece of code on server and link it in

I don’t know what you call this but baicly I want to put a simple code from add this.com it’s a scal network button. I want to put it on a word pad on my server then just link it on each page were I want it to appear.

I want to do this for 2 reasons, mainly cuz my sit builder NVU is removing empty <a> tags which are required fr this code. And also his code as a little in loading up. Hadly noticeable lag , but still.

That doesn’t make a lot of sense. WordPad is a program on your desktop, not on your server. Are you saying that the code editor you use is stripping out the code? If so, get a better one. :slight_smile:

Alternatively, you could log in to your website’s control panel (if there is one) and enter the code that way. But it’s not really quite clear what the situation is right now, so feel free to clarify exactly what you are seeing. :slight_smile:

It sounds like you are wanting to use simple Server-Side Includes, which are typically plain text files - containing text or code - that get included/inserted into your webpage server-side. Though I suspect you are probably also doing something wrong regarding the AddThis button as usually those type of things are just simple snippets of code.

To prevent NVU stripping out empty anchors you could try inserting the Invisible Separator entity into the code in Source view.

<a>&#8291</a>

On the Mac version at least, when next returning to Source view the entity is - true to its name - no longer visible, but can be deleted if required by placing the cursor between the anchor tags and forward deleting.

As xhtmlcoder says, Server-Side Includes are a useful way of adding frequently occurring elements across multiple pages.

XHTML coder that’s what I want to do I know the add this button is simple copy paste like I said the NVU is messing p the code. I do or want to have to edit it every single page in any program alright Ralph. I don’t want a better program alright Ralph. Geezus.