Home Text Link Home Text Link
 

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

Home Text Link

Started by eule, February 14, 2005, 08:45:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eule

Hello there,

is it possible to remove the home text link?
Or link to any other place than the index.php.
I wana link straight to my main homepage over the home text link.


Thanks for your Time.

Abbas Ali

This has been asked quite a few times earlier. Please do search before posting questions.

Anyways, edit theme.php of your theme to change the target of the link.

All the menu building is done at the top of that file. Find the link which you want to change and then change the href of that link to whatever you want.
Chief Geek at Ranium Systems

eule

Thanks for your awnser abbas ali
but it looks like i am to stupid to found the link.
I am using the classic theme but i coludnt found the link index.php.

I dont mean the link on the top whit the coppermine picture that is pointed to the index.php.

I mean the small home text link straight over the album if i open one that is pointed to the index.php.
Can you post the row that i must change in the theme.php.

Thanks for your time.
And sorry for my bad english
i hope you understand what i mean.


d1zz13

The link you're refering to is in the section called the 'BREADCRUMB'.  Perfectly named so as it's your trail back to the homepage.

Having had a quick look over the .php files I think you need to change the functions.inc.php file in the include directory.

**Make sure you back this file up before you change it**

Do a search for the following text in that file //Add Link for album if aid is set  and the few lines above it should be as follows:
        }else{ //Dont bother just add the Home link to breadcrumb
                $breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';
                $BREADCRUMB_TEXT = $lang_list_categories['home'];
        }

Change the <a href=index.php>  to the link to your page and away you go.

I think you also need to change the link in this code as well, it's a few lines above the previously mentioned code:
                $breadcrumb_array = array_reverse($breadcrumb_array);
                $breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';
                $BREADCRUMB_TEXT = $lang_list_categories['home'];


I've only just started using CPG so I'd wait until these instructions are confirmed by someone with a little more experience than myself, as it may have knock on effects elsewhere, but it should be OK.  :-X

eule

Hello d1zz13
it works now.

I changed all two codes at the moment.


Thanks for your fast Help.