Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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”&gt; <span itemprop=”name”>Westfield Air Conditioning LTD</span>
    <div itemprop=”address” itemscope itemtype=”http://schema.org/PostalAddress”&gt;
    <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>

    #263060

    Hi 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,
    Josue

    #263191

    Hi 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’.

    http://www.westfieldairconditioning.co.uk/

    #263215

    Hey!

    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,
    Peter

    #263612

    yeah, it just strips the <br/> out. I am using the code widget?

    #263651

    Hi!

    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,
    Josue

    #263655

    When 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?

    #263663

    Hi,

    Can you create an administrator account and post it here as a private reply?

    Regards,
    Josue

    #263873
    This reply has been marked as private.
    #264062

    Hi!

    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,
    Josue

    #264166

    Thank you so much!

    #264173

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.