Piwigo Help Pages
Piwigo is a free and open-source photo gallery software that is highly customizable. You can modify Piwigo to change its appearance, add new features, or improve its performance.
There are two main ways to modify Piwigo:
- Using extensions: Extensions are add-ons that can be installed to add new features or functionality to Piwigo. There are thousands of extensions available, so there is sure to be one that meets your needs.
- Editing the Piwigo code: If you are familiar with PHP, you can edit the Piwigo code to make changes to the core software. This is a more advanced option, but it gives you the most control over the look and feel of your photo gallery.
In this article, I will discuss the different ways I modified Piwigo, including using extensions and editing the code. I will also provide some examples of how Piwigo has been modified by other users.
Here are some specific changes that you could make to Piwigo:
- Change the theme to a different design.
- Add new features, such as a watermark or social sharing buttons.
- Improve the performance of Piwigo by optimizing the database or images.
- Fix bugs or security vulnerabilities.
By modifying Piwigo, I was able to create a photo gallery that was tailored to my specific needs and preferences.
Customization Options
- How To Customize Colors, Fonts and more (CSS coding)
- EXIF Metadata in PhotoSwipe
- Override the Navbar style and background
Completed Customizations
Prevent Centering
Changes made to theme/bootstrap_darkroom/picture.tpl. Beginning at line 38, remove the highlighted elements
<div id="theImageComment" class="row justify-content-center mb-3">
{if isset($COMMENT_IMG)}
<div class="text-center col-lg-10 col-md-12 mx-auto">
<section id="important-info">
<h5 class="imageComment">{$COMMENT_IMG}</h5>
</section>
</div>
{/if}
</div>
Add primary links to top navigation
- Added script to local config.inc.php
$conf['links'] = array( 'https://google.com' => 'Google', 'https://facebook.com' => 'Facebook', );
- Created a backup of the original menubar_links.tpl located at:
themes > bootstrap_darkroom > template > menu_templates
- Added code to menubar_links.tpl
{foreach from=$block->data item=link}
<li class="nav-item">
<a href="{$link.URL}" class="nav-link"{if isset($link.new_window)} onclick="window.open(this.href, '{$link.new_window.NAME}','{$link.new_window.FEATURES}'); return false;"{/if}>{$link.LABEL}</a>
</li>
{/foreach}
Removed “Contact webmaster” in the footer
Added to custom plugin:
add_event_handler('loc_end_page_tail', 'removecontact');
function removecontact() {
global $template;
$template->clear_assign('CONTACT_MAIL');
}