• Resolved GaryIFPG

    (@garyifpg)


    When I first installed Material Design I came across a selector where I could change the field spacing to tight. Now I can not find it. Can anyone tell me where to find that?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author GusRuss89

    (@gusruss89)

    Hi @garyifpg

    It’s an attribute of the md-form shortcode.

    [md-form spacing=”tight”]

    You can use the shortcode generator (material design button on the form editor) to set your options. The help tab also contains documentation.

    Thanks,
    Angus

    Thread Starter GaryIFPG

    (@garyifpg)

    Thanks Angus but there is no noticeable difference after applying that change.

    I am also having problems with the Submit button color which is blue on blue. Making changes in Customize has no affect on it.

    Plugin Author GusRuss89

    (@gusruss89)

    @garyifpg can you paste your form code here?

    Thread Starter GaryIFPG

    (@garyifpg)

    [md-form spacing="tight"]
    
    [md-text label="Name"]
    [text text-name]
    [/md-text]
    [md-text label="Email"]
    [email email-540]
    [/md-text]
    [md-text label="Telephone"]
    [tel tel-195]
    [/md-text]
    [md-text label="Company"]
    [text text-company]
    [/md-text]
    [md-select label="I am a..."]
    [select menu-Iama "Franchisor" "Franchise Consultant" "Franchise Supplier"]
    [/md-select]
    [md-select label="IFPG Member"]
    [select menu-ifpg-member "Yes" "No"]
    [/md-select]
    [md-submit]
    [submit "Submit"]
    [/md-submit]
    
    [/md-form]
    Plugin Author GusRuss89

    (@gusruss89)

    @garyifpg the code looks right. Are you sure it doesn’t make a difference? It can be a bit subtle. Maybe try taking a screenshot of each and then comparing those.

    Can you also send a link to your form (front end)? I will take a look.

    Thanks,
    Angus

    Thread Starter GaryIFPG

    (@garyifpg)

    https://ifpgretreat.com/landing/

    After taking screenshots before/after, I see that there is a small difference. Can you let me know how I can make it tighter via CSS?

    Also, can’t figure out why the button is blue on blue. CSS issue?

    Plugin Author GusRuss89

    (@gusruss89)

    Hi @garyifpg

    You can fix the button colour with this CSS:

    #cf7md-form .mdc-button--raised:not(:disabled) {
      color: #FFF !important;
    }

    And tighten the spacing with this CSS:

    #cf7md-form .mdc-layout-grid__inner {
      grid-gap: 12px; /* or whatever value looks best to you */
    }

    You can add this CSS under Appearance > Customize > Material Design Forms > Custom CSS.

    Thanks,
    Angus

    Thread Starter GaryIFPG

    (@garyifpg)

    Thank you Angus!

    Gary

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Tighter Field Spacing’ is closed to new replies.