• Resolved ElectricFeet

    (@electricfeet)


    I have text inside text widgets in the footer widget areas.

    With “Automatically add paragraphs” selected, the text appears small and centred in each footer widget area. This is how I want it to be and note that this is how it is at themesandco.com . Without “Automatically add paragraphs” selected, it appears larger and left-aligned.

    [Already this looks like a bit of a bug, as I wouldn’t expect a paragraph setting to alter the rest of the formatting. But it’s no big deal as you simply select “Automatically add paragraphs” to get the nice formatting.]

    A bigger problem arises, however, when you need to put more complex html in the footer widget areas. I have address, phone number and opening hours inside the text widgets and want to mark them up with schema.org microdata. For example, something like:

    <div itemscope itemtype="https://schema.org/LocalBusiness">
    <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
    <span itemprop="streetAddress">Our street</span>
    <span itemprop="addressLocality">Our city</span>,
    <span itemprop="addressCountry">Our country</span>
    </div>
    Phone: <span itemprop="telephone">Our tel</span>
    </div>

    However, adding the microdata makes the formatting appear large and left-aligned again, whatever the paragraph setting ??

    Is this a customizr problem or a wordpress problem? Does anyone know if there is a quick fix that I could use to get around it?

Viewing 1 replies (of 1 total)
  • Thread Starter ElectricFeet

    (@electricfeet)

    Managed to solve this by ignoring the paragraph setting altogether and inserting my own paragraphs between the divs and the spans.

Viewing 1 replies (of 1 total)
  • The topic ‘Footer text widget formatting — bug?’ is closed to new replies.