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 […]

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 […]

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 […]

Customizing search results

As many things with Backlight 2, the search page can be customized using CSS and phplugins. In this example, I removed the section headers and matching albums, and added a result count: Interested? Follow along and I show you how to get there! Hiding Album and Photos sections One regular request is to hide the […]

Page specific PHP code

Phplugins is very powerful as it can be used to customize your Backlight 2 based site to an extend not possible with the Backlight admin interface. Sometimes, it is not desired, that such a customization targets the entire site, but only a single page or a group of pages. In this short post, I show […]

Adding radio buttons and drop-down lists to forms

Since Backlight was introduced, once in a while users asked for more advanced form features such as radio buttons and drop-down lists. Backlight’s contact form editor is easy to use, but only supports text input. These forms are really just intended for simple contact forms. For more advanced forms, it is recommended to use WordPress […]

Get recent blog posts outside of WordPress pages

On my photography site, I display a list of the last 5 blog posts in the footer on all pages. I use the rss feed to get the most recent posts outside of the wordpress environment. This is how I do it using phplugins: And then I can call $this->dlp_get_latest_blog_posts(10, ‘my-link’) wherever I would like […]

Web Design Consulting

Do you need help designing your web site or getting Backlight working the way you want? Contact me to discuss your idea or project.


Buy me a Coffee

If you like what I share here, please consider buying me a coffee or a print. This helps keeping me motivated to continue posting. Thank you!

Buy Me A Coffee

Categories