[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_address – displayed as a single line

From oik v3.2.2 you can use the tag=span parameter to display an address as a single line.
Write to us at [bw_address tag=span] or phone now. 
Write to us at WorkThe Long Room41 Redhill RoadRowlands CastleHANTSPO9 6DEUK or phone now.

Alternative method

In previous versions of oik it was necessary to use CSS to style the generated HTML.
Write to us at [bw_address] or phone now.
Write to us at
Work
The Long Room
41 Redhill Road
Rowlands Castle
HANTS
PO9 6DE
UK
or phone now. Set the divs within the outer div to display: inline;.
.bw_address div, .bw_address p { display: inline; }
 

Optional styling

Add separating commas using the ::after pseudo element
.bw_address div::after,
.bw_address span::after { content: ","; }
.bw_address div.country-name::after,
.bw_address span.country-name::after { content: ""; }
 
Style the whole address
.bw_address { background-color: #fff; padding:5px; color: #baba54; font-weight: bold;  }
 

See also

  • oik options > Overview: Custom CSS
  • oik-css

Published: February 11, 2014 | Last updated: December 4, 2017

Information

Shortcode: bw_address – Display the address
Letters: B

Syntax

Syntax

[bw_address
type="Work| type - Address type."
alt="| 1 - suffix for alternative address"
tag="div| span - HTML formatting tag"]

Other examples

  • bw_address – styled as an address label
  • Some basic shortcode examples: address, email, telephone

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-2023. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 6.1.1. PHP: 7.4.33. Memory limit: 768M