fix: fix opengraph
This commit is contained in:
parent
c3f079e773
commit
6105ac8a32
1 changed files with 7 additions and 0 deletions
|
@ -12,4 +12,11 @@
|
|||
<meta property='og:site_name' content='<?php bloginfo('name'); ?>'/>
|
||||
<meta property='og:image' content='<?php echo $image ?>'/>
|
||||
<meta property='og:description' content='<?php the_excerpt(); ?>'/>
|
||||
<?php } else { ?>
|
||||
<meta property='og:url' content='<?php echo get_site_url(); ?>'/>
|
||||
<meta property='og:type' content='siteweb'/>
|
||||
<meta property='og:title' content='<?php bloginfo('name'); ?>'/>
|
||||
<meta property='og:site_name' content='<?php bloginfo('name'); ?>'/>
|
||||
<meta property='og:image' content='<?php echo get_template_directory_uri() . "/img/default-preview.png"; ?>'/>
|
||||
<meta property='og:description' content='<?php bloginfo('description'); ?>'/>
|
||||
<?php } ?>
|
||||
|
|
Reference in a new issue