-
AuthorPosts
-
May 10, 2014 at 9:17 pm #262823
I am adding this to a code widget and trying to add formatting (line breaks) but it keeps stripping the code? Any ideas?
<div itemscope itemtype=”http://schema.org/LocalBusiness”> <span itemprop=”name”>Westfield Air Conditioning LTD</span>
<div itemprop=”address” itemscope itemtype=”http://schema.org/PostalAddress”>
<span itemprop=”streetAddress”>3 Hopefield Drive</span>
<span itemprop=”addressLocality”>Leeds</span>
<span itemprop=”addressRegion”>West Yorkshire</span>
<span itemprop=”postalCode”>LS26 0XP</span>
<span itemprop=”addressCountry”>GB</span>
Phone: <span itemprop=”telephone”>01132 829541</span></div>May 12, 2014 at 2:51 am #263060Hi Richard!
The problem is the quotes, i tried with this and it worked on my end:
<div itemscope itemtype='http://schema.org/LocalBusiness'> <span itemprop='name'>Westfield Air Conditioning LTD</span> <div itemprop='address' itemscope itemtype='http://schema.org/PostalAddress'> <span itemprop='streetAddress'>3 Hopefield Drive</span> <span itemprop='addressLocality'>Leeds</span> <span itemprop='addressRegion'>West Yorkshire</span> <span itemprop='postalCode'>LS26 0XP</span> <span itemprop='addressCountry'>GB</span> Phone: <span itemprop='telephone'>01132 829541</span></div>
Best regards,
JosueMay 12, 2014 at 9:15 am #263191Hi Josue
I dropped your code in the widget but it still wont put each line of the address on a seperate line. See under ‘LEEDS OFFICE’.
May 12, 2014 at 10:19 am #263215Hey!
Try to add br tags to the code:
<div itemscope itemtype='http://schema.org/LocalBusiness'> <span itemprop='name'>Westfield Air Conditioning LTD</span><br/> <div itemprop='address' itemscope itemtype='http://schema.org/PostalAddress'><br/> <span itemprop='streetAddress'>3 Hopefield Drive</span><br/> <span itemprop='addressLocality'>Leeds</span><br/> <span itemprop='addressRegion'>West Yorkshire</span><br/> <span itemprop='postalCode'>LS26 0XP</span><br/> <span itemprop='addressCountry'>GB</span><br/> Phone: <span itemprop='telephone'>01132 829541</span></div>
Regards,
PeterMay 12, 2014 at 10:22 pm #263612yeah, it just strips the <br/> out. I am using the code widget?
May 12, 2014 at 11:14 pm #263651Hi!
It is, try with this code:
<div itemscope itemtype='http://schema.org/LocalBusiness'> <span itemprop='name'>Westfield Air Conditioning LTD</span><br> <div itemprop='address' itemscope itemtype='http://schema.org/PostalAddress'><br> <span itemprop='streetAddress'>3 Hopefield Drive</span><br> <span itemprop='addressLocality'>Leeds</span><br> <span itemprop='addressRegion'>West Yorkshire</span><br> <span itemprop='postalCode'>LS26 0XP</span><br> <span itemprop='addressCountry'>GB</span><br> Phone: <span itemprop='telephone'>01132 829541</span></div>
That worked on my end.
Regards,
JosueMay 12, 2014 at 11:23 pm #263655When I add that code to the code widget and save it, it strips out the <br>. Do I have to select any of the settings in the code widget?
May 12, 2014 at 11:52 pm #263663Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
JosueMay 13, 2014 at 11:21 am #263873This reply has been marked as private.May 13, 2014 at 5:26 pm #264062Hi!
Check it now:
http://www.westfieldairconditioning.co.uk/The br stripping happens, we will look into that, in the meantime i managed to do a workaround via CSS:
.avia_codeblock div[itemscope] span { display: block; }
Regards,
JosueMay 13, 2014 at 8:11 pm #264166Thank you so much!
May 13, 2014 at 8:19 pm #264173You are welcome, glad we could help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.