WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] Footer text widget formatting -- bug? (2 posts)

  1. ElectricFeet
    Member
    Posted 1 year ago #

    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="http://schema.org/LocalBusiness">
    <div itemprop="address" itemscope itemtype="http://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?

  2. ElectricFeet
    Member
    Posted 12 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic