WhoKnew Shield™ | Advanced Styling

Skip to main content
Table of Contents
Print

WhoKnew Shield™ does not add a separate “Advanced Styling” panel—obfuscated contact info inherits your theme’s link and text styles. You can still control how it looks using your theme, optional custom CSS, and (in Pro) the click-to-reveal button styles. This article explains your options.

How Obfuscated Content Is Styled

Protected emails are output as clickable links (mailto:); phones and addresses may be links or text depending on type and shortcode. That output is normal HTML, so your theme’s global link color, font size, underline, and hover rules apply. If you want contact links to look different from other links, use your theme’s customizer (e.g. “Links” or “Typography”) or add custom CSS that targets links inside the area where you display contact info (e.g. a specific widget or page section).

Using a CSS Class With Competitor Shortcodes

If you switched from another plugin and kept its shortcodes (Shield takes them over when the original plugin is deactivated), several of those shortcodes support an optional class attribute. You can add your own class name and then style it in your theme’s custom CSS or in the Customizer:

  • — e.g. [encode class="my-email-link"]email@example.com[/encode]. Style .my-email-link in your CSS (color, font-size, etc.).
  • — e.g. [obfuscate_email email="you@site.com" link=true class="email-link"]. Style .email-link as needed.

For the full list of supported competitor shortcodes and their attributes, see Competitor Shortcode Compatibility.

Shield Shortcode and Theme Styles

The [whoknew-shield type="email"] (and phone/address) shortcode does not expose a class attribute in the plugin. Its output still uses standard links and text, so it inherits your theme’s styles. To change the look of those links site-wide, use your theme’s link/typography settings. To change them only in certain places, add custom CSS in your theme or Customizer that targets the container (e.g. a class or ID on the parent block or widget) and the links inside it.

Pro: Click-to-Reveal Button Styles

If you use Pro and enable click-to-reveal, you get a Button style dropdown in Protection Settings. Options include Theme Default, Minimal Underline, Subtle Gray, Modern Outline, Elegant Dark, Soft Rounded, Inline Text, and many thin/minimal variants (Sleek Dark, Ghost, Crisp Minimal, etc.). That is the main way to control the appearance of the “reveal” button without writing CSS. For details and the full list, see Click-to-Reveal Buttons (Pro).

Mobile and Responsive Behavior

Obfuscated content is regular HTML (links and text). How it wraps, sizes, and stacks on small screens is controlled by your theme and layout (e.g. block or page builder). There is no separate “mobile styling” setting in WhoKnew Shield. Use your theme’s responsive options or media queries in custom CSS if you want contact links or buttons to look different on mobile.

Quick Reference

GoalWhat to use
Change link color or font site-wideTheme customizer (Links / Typography) or global custom CSS
Style a specific email or shortcodeCompetitor shortcode with class="", then target that class in CSS
Style the reveal button (Pro)Protection Settings → Button style dropdown; see Click-to-Reveal Buttons (Pro)
Mobile layoutTheme and layout; add custom CSS with media queries if needed

Need Help?

For competitor shortcode syntax and class attribute: Competitor Shortcode Compatibility. For Pro reveal button options: Click-to-Reveal Buttons (Pro). For basic shortcode usage: Basic Shortcodes.

Share