Logo Custom Link in Helix - Forum | JoomShaper
Solved Helix Framework

Logo Custom Link in Helix

Asked by Roderick 1 year ago Last activity 1 year ago

Hello,

I am currently working on the Travus template, which uses the Helix 2.1.2 framework. I would like to modify the company logo so that clicking on it opens a specific hyperlink in a new tab.

I came across the Helix documentation for version 2.0.12, which mentions an option called “Logo Custom Link” under the “Basic” > “Logo” settings. However, upon checking in version 2.1.2 (as used in the Travus template), I noticed that this option is no longer available.

I’ve also searched the forums, and some users suggest editing the logo.php file. While I have a basic understanding of HTML and CSS, I’m not a programmer and I’m not entirely sure where or how to add the hyperlink within the PHP file.

Could you kindly guide me on how to safely insert a custom hyperlink in the logo.php file? Ideally, I’d like the link to open in a new browser tab. Alternatively, is there a way to enable or restore the “Logo Custom Link” feature in this version of Helix?

Your assistance would be greatly appreciated.

Regards,

Rod

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

If you are using Text logo (not chosen image!) make changes in line 98 and 100. In similar way.

1 more reply

Paul Frankowski Senior Staff
1 year ago · edited

Hi Rod,
indeed that feature (new link option) was implemented inside Helix Ultimate template 3 years after Travus template was developed, so it do not have it :/

Using basic HTML knowledge you should be able to add that link manually. Even if logo.php file looks scary, it has basic code inside.

Tip (step by step):

  1. Edit file by using HTML editor (or built-in Joomla editor): \features\logo.php (from template folder)
  2. Find line 68 and 81 with $html .= '<a href="' . Uri::base(true) . '/">';
  3. Remove current content inside " " and put your own link, for example,
    $html .= '<a href="/contact">';
  4. Save changes, upload changed file
  5. You may also change file permission from 644 to 444.
Roderick Asked this

Hello Paul,

Thank you so much for your guidance and patience. I followed your advice and it worked.

Regards,

Rod

Log in to reply.