forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: guabi on June 22, 2004, 09:41:14 am

Title: How to change the Top menu function
Post by: guabi on June 22, 2004, 09:41:14 am
I would like to know how to change one of the Top-Menu function "Last Comments" to " my homepage link". I am using Mac_ox theme.
Thanks.
 
Title: Re: How to change the Top menu function
Post by: Joachim Müller on June 22, 2004, 10:45:23 am
http://coppermine.sourceforge.net/faq.php?q=removeFeature#removeFeature

Please search before posting, this has already been answered very often.

GauGau
Title: Re: How to change the Top menu function
Post by: guabi on June 22, 2004, 01:28:27 pm
I did try to find the relevant topics, but i could not find out the one which i need. (Maybe the theme is different...) ???
Title: Re: How to change the Top menu function
Post by: Casper on June 22, 2004, 02:27:12 pm
It doesn't matter what your theme is.
You just need to replace this;
Code: [Select]
<a href="{LASTUP_TGT}">{LASTUP_LNK}</a>
with a link to your home page, like this;

Code: [Select]
<a href="http://www.yoursite.com/">Home</a>
Title: Re: How to change the Top menu function
Post by: Joachim Müller on June 22, 2004, 02:30:13 pm
to add a "home" link to your coppermine menu, edit themes/yourtheme/theme.php, find
Code: [Select]
// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">
and add after it
Code: [Select]
<a href="your_link_target.xyz" title="Your text that is shown when someone hovers over the link">your link text</a> ::
GauGau