Skip to content

Commit

Permalink
Remove css that was hiding the social tab in Yoast.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Devitt committed Oct 24, 2022
1 parent 0164da9 commit a90d475
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,16 +511,6 @@ function hide_yoast_premium_social_previews() {
display: none;
}';

/**
* Hide the Social tab in the Yoast Metabox.
*
* The Google preview is in the basic SEO tab and social previews
* are only available for Yoast SEO Premium.
*/
$styles .= '.wpseo-metabox-menu .yoast-aria-tabs li:last-of-type {
display:none;
}';

echo "<style>$styles</style>"; // phpcs:ignore HM.Security.EscapeOutput.OutputNotEscaped
}

Expand Down

0 comments on commit a90d475

Please sign in to comment.