Hi all, how can I implement an og:image into my website?
Best regards,
Oliver
Hi all, how can I implement an og:image into my website?
Best regards,
Oliver
Albums should handle it automatically.
Which modules are you asking about, and what page and/or page type?
Hi Matt,
thank you for your quick response.
Claude managed it this way:
function head() {
$currentPath = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$ogImages = [
'/architectural-photography' => 'https://theraumphotography.com/assets-image/og/architectural-photography.jpg',
'/real-estate-photography' => 'https://theraumphotography.com/assets-image/og/real-estate-photography.jpg',
'/photogrammetry' => 'https://theraumphotography.com/assets-image/og/photogrammetry.jpg',
];
$ogImage = $ogImages[$currentPath] ?? 'https://theraumphotography.com/backlight/designer/page/image/170';
echo "<meta property=\"og:image\" content=\"{$ogImage}\">\n";
echo "<meta property=\"og:image:width\" content=\"1200\">\n";
echo "<meta property=\"og:image:height\" content=\"630\">\n";
echo <<<HTML
Same question. It’s Pangolin and it’s the Default Page aka Galleries Index page. I don’t have a hero image on it so maybe that’s why the following elements are empty?
<meta property="og:image" content="" />
<meta property="og:image:width" content="" />
<meta property="og:image:height" content="" />
<link rel="image_src" href="" />
How do I fix this?
Thanks in advance for the assist!
Perry
This code in pangolin is five years old, and a bit difficult to trace. I would try setting a hero image for the album set, and see whether that fills it.
Now I remember what my problem is:
In order to populate those elements, the Primary Masthead must be enabled and you have to “Add a Logo Image”:
Designer > Templates > Default Page > Design > Masthead > Primary Masthead > Location
The issue with that, for me and because I use a custom PHPPlugin which places an H1 tag in “single pages” and I add “H1” tags in the LR Publisher “Album Set > Page Content” for each of my albums, the “Logo Image” then cascades into the Galleries and single image pages resulting in two tags which confuses Google.
Some time ago, I discovered that when I removed the “Logo Image”, I rested control over the tag for all albums and single image pages. Did it make a difference in SEO? Yes!!
I’m assuming if I move to Kookaburra, the same issue exists for Backlight overriding my H1s will still exist.
These issues may seem minor, bit I am able to compete against the giant mainstream travel sites for mainline keyword phrases because my advantage is I have a much larger catalog of imagery for the locations I work with. Age ane relevance makes up for not having a lot of backlinks from so-called trusted sites.
It’s taken a lot of time to determine which elements matter most in my “David vs Goliath” quest to command enough “long tail” phrases to get enough clicks and referrals for the location I am working with. As you know, you can’t make changes and then expect to see the rather immediate results in Google SERPs.
FWIW, I find the most important elements at this point in time are being able to affect the following elements. The list is in no particular order:
Title
Description / Main Copy
H1
URL for single pages / file name (wish the word “single” didn’t have to be used for the “visible” pages)
Valid Schema which satisfies Google specs
Alt tag independent of Title and Caption
Option to place individual links within “Caption” IOW translate link code with anchor text so it appears in the Caption the way it should.
I realize the asset value for “Blogging” in Kookaburra, but I don’t want the gallery to be a blog or have a blog appearance. Frankly, I don’t have time to blog.
My ultimate goal is to have enough link juice so I can drive sales to prints as Art, i.e. Etsy. I’m close to having that element along with having built social sites that have excellent followings.
For many years, Backlight has been a very important element in what I have been building towards. It integrates well into my primary sight which is highly ranked for the location. The number of longtail key phrases that I get hits for from the gallery are in the 1000s.
Sorry for the diatribe. Count me as a huge fan.
Thanks for a great product and for listening, Matthew!
Perry
No, Kookaburra doesn’t use H1 tags in the masthead. You should add the H1 in your content body.
In general, I’ve tried to make Kookaburra less structurally opinionated. Pangolin is a bit too much so, and built on outdated notions of “best practices”, many of which are no longer best practices.