Change fb_preview filename format to match the other images

This commit is contained in:
Vencislav Atanasov 2023-09-08 13:35:14 +03:00
parent db17984d05
commit 395122a411
5 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ function get_blog_slug() {
function og_image( $tags ) {
$blog_slug = get_blog_slug();
$imagePath = __DIR__ . '/img/' . $blog_slug . '_fb_preview.jpg';
$imagePath = __DIR__ . '/img/fb_preview_' . $blog_slug . '.jpg';
if (file_exists($imagePath)) {
$imageUrl = esc_url('https://www.openfest.org/wp-content/themes/initfest/img/' . basename($imagePath));

View File

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 168 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB