How to change the Top menu function How to change the Top menu function
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to change the Top menu function

Started by guabi, June 22, 2004, 09:41:14 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

guabi

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.

Joachim Müller


guabi

I did try to find the relevant topics, but i could not find out the one which i need. (Maybe the theme is different...) ???

Casper

It doesn't matter what your theme is.
You just need to replace this;
<a href="{LASTUP_TGT}">{LASTUP_LNK}</a>

with a link to your home page, like this;

<a href="http://www.yoursite.com/">Home</a>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

to add a "home" link to your coppermine menu, edit themes/yourtheme/theme.php, find// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">
and add after it<a href="your_link_target.xyz" title="Your text that is shown when someone hovers over the link">your link text</a> ::

GauGau