Jump to content

issues with header.tpl


jrnetwork

Recommended Posts

I'm trying to edit my header.tpl file in my portal template in two ways. But I'm having issues. As soon as I make any valid changes, the template breaks. These are the two changes I'm trying to make:

 

I want to change the title:

 

<title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title>

 

to

 

<title>{$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if} - {$companyname}</title>

 

so the page name appears before the company name. It's such a simple change, but as soon as I do this, the template breaks and it's all over the page.

 

The second change I'm trying to do is to put in a favicon.ico file, but inserting this line in the head of my header.tpl file:

 

<link rel="icon" type="image/x-icon" href="templates/{$template}/favicon.ico">

 

and I've got the favicon.ico file uploaded into that directory. Again, if I make this simple change, the template breaks and it's all over the page. I need to re-upload my unedited version to fix it, not even undoing the changes and then uploading the file fixes it either.

 

Hoping someone here has a solution for this.

Link to comment
Share on other sites

By the way, using Notepad ++ as you suggested has worked perfectly. I knew there was nothing wrong with the coding change I had done.

 

This also explains why when I cicked undo in Dreamweaver and then uploaded, it still did not work. Obviously Dreamweaver is not good for editing .tpl files.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated