Change fb_preview filename format to match the other images
|
@ -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));
|
||||
|
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 168 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |