Jump to content
  • 0

Change Logo hyperlink to direct to parent website instread of Blesta sub domain website


adamjedgar

Question

Hi guys,

 

My website is setup as follows

main website is https://mydomain.com.au

Blesta is https://billing.mydomain.com.au

I know how to establish my own custom logo in Blesta...ie edit the client template and change logo URL.

 

However, i want the logo in https://billing.mydomain.com.au (when clicked on by a user) to take the browser back to my parent website https://mydomain.com.au

 

How do i achieve this?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You will have to edit structure.pdt file in your template,blesta use variable(fetch from object) ,at this way it will fetch url from blesta settings but you can't change there since you will change also base url... ,so you will have to change that variable to hardcoded url..I would suggest you to first copy blesta default template and rename it to something unique,than edit url and after that go to settings--->look and feel-->templates and change template from  blesta default template to customized one..At this way you will not loose customization with major upgrade or if you use full installation for upgrade instead patch. I don't remeber exact code you have to change..give me few minutes and I will post on what line and how to change...just to check..

Link to comment
Share on other sites

  • 0

It should be line 32 in structure.pdt file(you'll see <div class="logo"> one line above...this is what you will see                      
                            <div class="logo">
                                <a href="<?php echo $this->Html->safe($this->base_uri);?>">

Change second line to <a href="https//yourdomain.com"> (or what ever you want just use https...even if you  redirect everything to https,you don't want to get warnings for unsecured content when visit over https)

Dont change image source url,since you want only to change url when clicked ..just that one line

structure.pdt file is in template directory(i.e bootsrap) and you can find it in

blesta_install_dir/app/views/client/

You will probably have to delete cache in your browser to see changes instantly since images are cached

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
Answer this question...

×   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.

Loading...
×
×
  • Create New...