testing
This commit is contained in:
parent
9d575f66d5
commit
1c4f42578a
|
|
@ -1,13 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
$ogImage = null;
|
$ogImageUrl = null;
|
||||||
if (is_page_template('template-publications.php')) {
|
if (is_page_template('template-publications.php')) {
|
||||||
$ogImage = "https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg";
|
$ogImageUrl = get_template_directory_uri() . '/assets/img/og-thumbnails/homegrade_partage-social.jpg';
|
||||||
} else {
|
} else {
|
||||||
$ogImage = "https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ($ogImage) : ?>
|
<?php if ($ogImageUrl) : ?>
|
||||||
<meta property="og:image" content="https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg" />
|
<meta property="og:image" content="<?php echo $ogImageUrl ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
Loading…
Reference in New Issue
Block a user