#1 2021-05-04 13:28:18

stevebni
Member
2021-05-03
28

How to make the site title/logo point ot a different URL?

I'm integrating into a site, I'd like to make the default gallery title/logo that appears in the main menu bar point to the home page of the main site, opposed to the homepage of the gallery.

Possible?

Offline

 

#2 2021-05-04 13:37:29

erAck
Only trying to help
2015-09-06
2196

Re: How to make the site title/logo point ot a different URL?

Place any HTML you want into the Page banner (Admin -> Configuration -> Options). Like

Code:

<h1><a href="/homepage/">%gallery_title%</a></h1>

Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-05-04 14:02:07

stevebni
Member
2021-05-03
28

Re: How to make the site title/logo point ot a different URL?

Thanks, but that's not quite working as I'm expecting.

I'm using the Bootsrap Darkroom theme (Should have mentioned that at the start!). With this theme there is the option of the banner, and indeed the instructions you gave me do change the site title in the banner. But I want to change the site title that sits in the menu, not the banner.

Here is the gallery page: https://www.baskerville.me/gallery/

I want the site title; baskerville.me to point to https://www.baskerville.me/ not /gallery/

Is that doable?

Offline

 

#4 2021-05-04 16:21:17

Zentalquabula
Member
2014-05-10
217

Re: How to make the site title/logo point ot a different URL?

Yep. Install Localfiles Editor, and then add the following the the local config:

Code:

$conf['gallery_url'] = 'https://www.baskerville.me/';

Last edited by Zentalquabula (2021-05-04 16:22:51)

Offline

 

#5 2021-05-04 16:30:32

stevebni
Member
2021-05-03
28

Re: How to make the site title/logo point ot a different URL?

Thank you for that, much appreciate, and it's almost there, but it also changes the home icon in the breadcrumb menu, which I need to stay pointing to /gallery/

I know, it's a toughie!

I've got a workaround using javascript, but I'm thinking there must be a more elegant way to do it?

Offline

 

#6 2021-05-04 16:53:57

stevebni
Member
2021-05-03
28

Re: How to make the site title/logo point ot a different URL?

Thinking about this some more, your approach is the best option. I'd then potentially need to hide the breadcrumb, which is easy with some css. But I would then need a way for the user to get back to the /gallery/ page.

In the albums dropdown menu there is no "all albums" button, which is a bit odd. And from what I can see there is no way to add top-level menu items to the navigation. Which again seems a bit odd.

If anyone has any ideas for a solution I'd be keen to hear them.

Thanks.

Offline

 

#7 2021-05-05 00:10:32

Zentalquabula
Member
2014-05-10
217

Re: How to make the site title/logo point ot a different URL?

Well, if you are just going to change the MENU, there are other configuration options, also from includes/config_default.inc.php

Code:

// links : list of external links to add in the menu. An example is the best
// than a long explanation :
//
// Simple use:
//  for each link is associated a label
//  $conf['links'] = array(
//    'http://piwigo.org' => 'PWG website',
//    'http://piwigo.org/forum' => 'PWG forum',
//    );

Offline

 

#8 2021-05-05 01:46:18

Zentalquabula
Member
2014-05-10
217

Re: How to make the site title/logo point ot a different URL?

Also, you can control the menus with Advanced Menu Manager. Just add a block of your own with the links you want, and get rid of the stadnard one (if there is one, can't remember).

Offline

 

#9 2021-05-05 06:53:39

stevebni
Member
2021-05-03
28

Re: How to make the site title/logo point ot a different URL?

Thanks again, but that adds a block with custom links, I'm wanting to add custom links to the top level of the menu. So no drop-down, but the links in the main menu.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact