Hi folks!
I've got a new idea (=
I would like to add a small icon in this place:
http://img97.imageshack.us/img97/2870/heref.jpg
Which file do I have to edit?
Offline
You can do it with a personnal plugin:
- Install and activate LocalFiles Editor.
- Go to 5th tab (personnal plugin)
- add this code:
add_event_handler('loc_begin_index', 'add_personnal_icon');
function add_personnal_icon()
{
global $template;
$code = '<li><a href="http://my_link" title="My title" rel="nofollow"><img src="./path/to/my_icon.png" class="button" alt="My title" /></a></li>';
$template->concat('PLUGIN_INDEX_ACTIONS', $code);
}
- Save the file.
- Don't forget to install and activate your personnal plugin.
Last edited by P@t (2009-09-30 18:15:42)
Offline
Hi P@t !
Thank you for your reply!
I did everything as you said, but unhappilly, the plugin doesn't show the new image. this is what I wrote:
http://img401.imageshack.us/img401/6043/screenaw.jpg
well, I will try to add a image map to the banner, then.
Thank you again.
Offline
<?php
add_event_handler('loc_....
Offline
Hi VDigital!
I tried again, but it didn't work...
Offline
Sorry ! It normal php syntax, ending line:
...
}
?>
Final version:
<?php
add_event_handler('loc_begin_index', 'add_personnal_icon');
function add_personnal_icon()
{
global $template;
$code = '<li><a href="http://my_link" title="My title" rel="nofollow"><img src="./path/to/my_icon.png" class="button" alt="My title" /></a></li>';
$template->concat('PLUGIN_INDEX_ACTIONS', $code);
}
?>
Offline