Updated September 19, 2024, based on Perry’s feedback (thank you!), enhanced structure a bit to make Google happy ๐ Backlight provides a way to embed structured data into your photo website that is used by Google Image to display photo licensing badges. This badges make it easier to find images available for commercial licensing. One […]
Adding Google Analytics GA4 to Backlight 4
Google introduced yet another tracking feature, called GA4, that provides more insights than what is currently available with their universal tracker. GA4 is not yet supported out of the box by Backlight 4, but using phplugins, it is easy to add to your own site. In order that this code works, you need to have […]
Embedding Photo Search Results
For a long time, I wanted to structure some of my albums based on search results instead of a fixed content. This would enable something like a smart album structure that supports themes (e.g. bridges, mountains, people, etc) where images are shown that are already published in another album. A week ago, Chumby asked the […]
Customizing Page Footer
Did you ever wonder how I created a page footer such as? With Backlight, there is only a limited number of options available to customize the page footer. But if that is not sufficient, then there is an alternative way by using the phplugins function footer_top(). With just a few lines of code in your […]
Using Backlight 3 JSON API from PHP, take 2
This is an update to my original post. It improves on error handling and has some other cosmetic changes. One of the new features of Backlight 3 is a JSON API. It is a standard REST API interface and is very easy to use. The documentation shows all the endpoints and provides even a JavaScript […]
Common WordPress End-of-Post Content
I like to have a common element at the end of all my blog posts, but before the comments section. Sometimes this is to highlight upcoming shows, other times it is a special sales discount, a cool tagline, or like here on the lab blog, the Buy me a coffee block. There are many WordPress […]
Customizing Language Selector (Updated)
Backlight supports multiple languages which can be selected by clicking on the globe button in the top pallet. Although my site is only in english, I prefer language labels instead of a globe icon when browsing sites. Here I’ll show you how you can add this to your site. Doesn’t this look prettier? Changing the […]
Using dark-themed Google Recaptcha V2
To me, it is very annoying to have the bright Google Recaptcha V2 check on a dark background. With Backlight 3, I could move to Recaptcha V3 which doesn’t need human interaction, but with Backlight 2, this option is not available. Unfortunately, Backlight’s Designer doesn’t provide an option to select between light and dark themed […]
Using Backlight 3 JSON API from PHP
One of the new features of Backlight 3 is a JSON API. It is a standard REST API interface and is very easy to use. The documentation shows all the endpoints and provides even a JavaScript and a jQuery library. How cool is that? If you want to use it with PHP, I have a […]
Adding keyboard support to single image pages
I love the single image page view since it supports customizations using phplugins. Unfortunately, navigation requires a mouse or a touchpad. But there is a fix for that! With some php and javascript magic, support for simple keyboard navigation can be added: Left key: previous image Right key: next image Escape key: go back to […]