Logo Link URL
January 2013 Joomla Template
Rate this topic: 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
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
-
- 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
templates/gk_mo/layouts/blocks/logo.php
-
- 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
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
-
- Senior Boarder
- GK User
- Mon Feb 17, 2014 6:50 pm
- Reply with quote
- Report this post
Please replace this code:
in all places where you will find it with your desired url (replace also php opening and closing tags).
- 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).
-
- 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
I just want my logo link to http://astar-awards.com/wedding/2014
Not http://astar-awards.com
-
- 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:
with:
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
-
- 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...
Thank you so much...
-
- 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.
If You will have any other questions, feel free to post new forum threads.
-
- Moderator
8 posts
• Page 1 of 1