added logo to social share

This commit is contained in:
Fabiano Alencar 2018-08-13 10:27:23 -03:00
parent d405ae0108
commit f8d1f45ab9
2 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -83,9 +83,9 @@ add_filter( 'cancel_comment_reply_link', 'filter_cancel_comment_reply_link', 10,
function social_meta() {
global $post;
if(is_single() || is_tax()) {
if(is_single() || is_tax() || is_archive()) {
$logo = get_stylesheet_directory_uri().'/assets/images/logo.svg';
$logo = get_stylesheet_directory_uri().'/assets/images/social-logo.png';
$img_info = (has_post_thumbnail($post->ID)) ? wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "thumbnail") : $logo;