[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

bw_tel link=t with CSS styling

Tel: +44 (0)7876 236864 Use the bw_tel shortcode with the link=y parameter and some custom CSS to create a styled phone link allowing your site visitors to call you directly.

[bw_tel link=y class=phone]
 

Custom CSS

Style the tel: link 
a[href^=tel]  { font-size: 150%;
  background-color: #6a6a6a;
  padding: 5px 10px 5px 20px;
  border-radius: 25px 0 0 25px;
  border-left: 0px solid;
  text-decoration: none;
  display: inline-block;
  }
 
Hover styling
a.phone:hover, a.phone span.value:hover { text-decoration: none; color: #66ff66; }
 
Rotated phone in a circle replacing 'Tel'
span.phone span.type
{ background: url( //oik-plugins.com/wp-content/plugins/oik/images/Phoneicon.svg ) no-repeat 5px 5px;
  background-size: 20px 20px;
  width: 30px; height: 30px;
  background-color: #66ff66;  
  padding: 0px 0px 0px 0px;
  margin-top: -5px;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);  
  border: 2px solid #000000;
  border-radius: 50%;
  vertical-align: middle;
  text-indent: -9999px;
  display: inline-block;
}
 
Hide the ': ' separator
span.phone span.sep { display: none; }
 
Left pad the telephone number
span.phone span.value { padding-left: 10px; color: #ffffff; }
 

Notes

  • Use link=y or link=t to create a tel: link
  • Use the link= parameter with the following shortcodes:
    • bw_emergency – Emergency telephone number
    • bw_mob – Mobile phone number (inline)
    • bw_mobile – Mobile phone number (block)
    • bw_tel – Telephone number (inline)
    • bw_telephone – Telephone number (block)
  • Either use a custom CSS file oik options > Overview: Custom CSS or the [bw_css] shortcode.

Published: March 26, 2014 | Last updated: March 26, 2014

Information

Shortcode: bw_tel – Telephone number (inline)
Letters:

Syntax

Syntax

[bw_tel
prefix="Tel| string - Prefix string"
sep=": | string - Separator string"
alt="| 1 - Use alternative value"
number="| number - Number override"
tag="span| tag - enclosing HTML tag"
class="| class names - CSS class names"
link="| n| y| t| s| other: - tel: or sms: link"
index="telephone| field - oik options field to use"]

Other examples

  • bw_tel link=y or link=t

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: oikplug@oik-plugins.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2025. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins

WordPress version: 6.8.3

Gutenberg version: 21.7.0

PHP version: 8.2.29