Logo Link URL

January 2013 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Feb 17, 2014 4:06 pm
Reply with quote
Report this post
How can I change the logo URL link to another website or article?

For example:

logo original url is http://astar-awards.com/ >
I want user click the logo, it direct to http://astar-awards.com/wedding/2014
User avatar
Senior Boarder

GK User
Mon Feb 17, 2014 4:08 pm
Reply with quote
Report this post
By the default logo links to the root of the website. If you would like to modify these behave, please modify this file:
templates/gk_mo/layouts/blocks/logo.php
User avatar
Moderator

GK User
Mon Feb 17, 2014 4:28 pm
Reply with quote
Report this post
I get the file

if(($logo_image == '') || ($this->API->get('logo_type', '') == 'css')) {
$logo_image = $this->API->URLtemplate() . '/images/logo.png';
} else {
$logo_image = $this->API->URLbase() . $logo_image;
}

However, I'm not very good in PHP.
Can you please tell me exactly which code to put in?

Thanks
User avatar
Senior Boarder

GK User
Mon Feb 17, 2014 6:50 pm
Reply with quote
Report this post
Please replace this code:
Code: Select all
<?php echo JURI::root(); ?>

in all places where you will find it with your desired url (replace also php opening and closing tags).
User avatar
Moderator

GK User
Tue Feb 18, 2014 6:27 am
Reply with quote
Report this post
Em.. Sorry I don't understand how to do this. Where should I put in the code?
I just want my logo link to http://astar-awards.com/wedding/2014
Not http://astar-awards.com
User avatar
Senior Boarder

GK User
Tue Feb 18, 2014 11:08 am
Reply with quote
Report this post
In this file:
templates/gk_mo/layouts/blocks/logo.php
replece every:
Code: Select all
<?php echo JURI::root(); ?>

with:
Code: Select all
http://astar-awards.com/wedding/2014
User avatar
Moderator

GK User
Tue Feb 18, 2014 1:22 pm
Reply with quote
Report this post
Yeah.. is work perfectly, you are my hero..
Thank you so much...
User avatar
Senior Boarder

GK User
Wed Feb 19, 2014 6:58 pm
Reply with quote
Report this post
Thanks for the appreciation :)
If You will have any other questions, feel free to post new forum threads.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.