introducing og-image component
This commit is contained in:
parent
357f9bfb1e
commit
f4e2ab930d
13
template-components/header/og-image.php
Normal file
13
template-components/header/og-image.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
$ogImage = null;
|
||||
if (is_page_template('template-publications.php')) {
|
||||
$ogImage = "https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg";
|
||||
} else {
|
||||
$ogImage = "https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($ogImage) : ?>
|
||||
<meta property="og:image" content="https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg" />
|
||||
<?php endif; ?>
|
||||
Loading…
Reference in New Issue
Block a user