Jump to content

Hyperlink for Company logo


Recommended Posts

Dear All,

 

I have customized the Header.tpl to ...

 

Problem: 1. this piece of code {if $systemurl}<base href="{$systemurl}" />{/if}

2. because of this piece, all the href is prefixed by the WHMCS directory.

 

Requirement: 1.When one click on Company name in WHMCS panel, it should redirect to original website.

----Refer below-------

<head>

<meta http-equiv="content-type" content="text/html; charset={$charset}" />

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

{if $systemurl}<base href="{$systemurl}" />{/if}

<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" />

<script type="text/javascript" src="includes/jscript/jquery.js"></script>

</head>

<body>

<div id="top_container">

<div id="top">

<div id="h1">

<a href="www.mydomain.com" title="{$companyname}">{$companyname}</a></div>

<div id="welcome_box">{if $loggedin}{$LANG.welcomeback}, <strong>

 

--------------Code end--------

 

Now, problem is when one click on $companyname , now appearing in the website header..it redirect to WHMCS directory first and then add the href link

 

"www.mydomain.com/WHMCS/www.mydomain.com"

obviously, no page exists with this.

 

if i use, <a href="home" title="{$companyname}">{$companyname}</a></div>

redirect to WHMCS directory first and then add the href link

 

"www.mydomain.com/WHMCS/home"

 

but my intention is to redirect to only http://www.mydomain.com/home

 

I understand it is because of prefix, but how to remove prefix only for the companylogo.

 

So , can someone help me how to do this. Appreciate it.

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