diff --git a/assets/js/modules/social.js b/assets/js/modules/social.js
index 58ab1e8a..8ccbfcf8 100644
--- a/assets/js/modules/social.js
+++ b/assets/js/modules/social.js
@@ -188,8 +188,7 @@ nebula.socialSharing = async function(){
});
nebula.createCookie('shareapi', true); //Set a cookie to speed up future page loads by not loading third-party share buttons.
- } else {
- jQuery('a.shareapi, .shareapi a, a.nebula-share.shareapi, .nebula-share a.shareapi').addClass('hidden');
+ jQuery('a.shareapi, .shareapi a, a.nebula-share.shareapi, .nebula-share a.shareapi').removeClass('hidden');
}
}
};
\ No newline at end of file
diff --git a/assets/scss/partials/_helpers.scss b/assets/scss/partials/_helpers.scss
index 05f59231..fba9edb9 100644
--- a/assets/scss/partials/_helpers.scss
+++ b/assets/scss/partials/_helpers.scss
@@ -213,30 +213,23 @@ body.admin-bar {scroll-padding-top: 32px;} //Account for the admin bar height wh
//Nebula social share buttons
a.nebula-share-btn {display: inline-block; padding: 5px 7px; border-radius: 3px; font-size: rem(12px); line-height: 1; color: #fff !important; text-shadow: 1px 1px rgb(0 0 0 / 25%); margin-right: 5px;
&:last-child {margin-right: 0;}
- &::before {font-family: "Font Awesome 5 Brands"; margin-right: 4px; text-shadow: none;}
&.facebook {background: brand(facebook);
- &::before {content: "\f09a";}
&:hover {background: darken(brand(facebook), 15%);}
}
- &.twitter {background: brand(twitter);
- &::before {content: "\f099";}
+ &.twitter {background: brand(twitter);
&:hover {background: darken(brand(twitter), 15%);}
}
- &.linkedin {background: brand(linkedin);
- &::before {content: "\f0e1";}
+ &.linkedin {background: brand(linkedin);
&:hover {background: darken(brand(linkedin), 15%);}
}
- &.pinterest{background: brand(pinterest);
- &::before {content: "\f0d2";}
+ &.pinterest{background: brand(pinterest);
&:hover {background: darken(brand(pinterest), 15%);}
}
- &.email {background: grey;
- &::before {content: "\f0e0"; @include font-awesome("solid");}
+ &.email {background: grey;
&:hover {background: darken(grey, 15%);}
}
- &.shareapi {background: orange;
- &::before {content: "\f1e0"; @include font-awesome("solid");}
+ &.shareapi {background: orange;
&:hover {background: darken(orange, 15%);}
}
}
diff --git a/libs/Functions.php b/libs/Functions.php
index 6cf32c34..465bd2cc 100644
--- a/libs/Functions.php
+++ b/libs/Functions.php
@@ -1044,32 +1044,32 @@ public function share($networks=array('shareapi', 'facebook', 'twitter'), $id=fa
foreach ( $networks as $network ){
//Share API
if ( in_array($network, array('shareapi')) ){
- echo '' . __('Share', 'nebula') . '';
+ echo '' . __('Share', 'nebula') . '';
}
//Facebook
if ( in_array($network, array('facebook', 'fb')) ){
- echo '' . __('Share', 'nebula') . '';
+ echo '' . __('Share', 'nebula') . '';
}
//Twitter
- if ( in_array($network, array('twitter')) ){
- echo '';
+ if ( in_array($network, array('twitter', 'x')) ){
+ echo '';
}
//LinkedIn
if ( in_array($network, array('linkedin', 'li')) ){
- echo '' . __('Share', 'nebula') . '';
+ echo '' . __('Share', 'nebula') . '';
}
//Pinterest
if ( in_array($network, array('pinterest', 'pin')) ){
- echo '' . __('Share', 'nebula') . '';
+ echo '' . __('Share', 'nebula') . '';
}
//Email
if ( in_array($network, array('email')) ){
- echo '' . __('Email', 'nebula') . '';
+ echo '' . __('Email', 'nebula') . '';
}
}