Piwigo / piwigo-bootstrap-darkroom

A mobile-ready and feature-rich theme for Piwigo photo gallery, based on Bootstrap 4
Apache License 2.0
85 stars 40 forks source link

[feature request] setting destination for logo image click #39

Closed arigit closed 7 years ago

arigit commented 7 years ago

Currently Bootstrap Darkroom allows configuration of the logo image, and it can be manipulated via CSS in "bootstrap default". The logo image is automatically made a clickable link - the href destination though is hardcoded to piwigo's landing page (same destination as the Home icon that Bootstrap Darkroom displays so kind of redundant). In my use case, Piwigo is a sub-site of my blog, and I need to customize the logo link to have it point to the landing page of the blog (which is wordpress in my case). Is it possible to add a configuration entry to (optionally) set the destination URL of the logo image link?

tkuther commented 7 years ago

As this is a very specific use case, I think it's overkill to make this configurable.

You can use a very simple custom javascript as explained here: https://github.com/tkuther/piwigo-bootstrap-darkroom/wiki/Add-custom-CSS-and-Javascript#javascript The jQuery code:

$('a.navbar-brand').attr('href', 'http://yoursite.com');
arigit commented 7 years ago

Thank you for this, it worked. Fully agreed most ppl won't need this, and the workaround fits the bill perfectly, without having to tweak the theme itself. Closing :)

arigit commented 7 years ago

p.s. suggest adding this to the wiki, I tried but couldn't edit it.