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 div
s 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; }