Skip to content

How To Style PPOM fields? ​

📝 Note: PPOM's built-in Style Settings are available only with PPOM Pro.

The PPOM meta fields can be easily customized using the in-built style settings. To access these, follow these steps:

1. Navigate to WooCommerce > Settings > PPOM settings.

2. Click on the Style Settings tab.

There are multiple areas to customize, such as:

  • General settings (refer to field labels and descriptions, as well as options label and option price label)
  • Input Box settings (where you can customize background text color and borders)
  • Price Table settings (for which you can set text and background color)
  • Tooltip settings (that includes any helper text that appears in the fields, including the color codes/names).

Other dedicated style settings can be found in the following areas:

WooCommerce > Settings > PPOM settings > Fields Settings > Collapse Field - to customize the aspect of the collapse field:

Collapse style settings

Customized Collapse field

WooCommerce > Settings > PPOM settings > Fields Settings > Fields Popup - where you can customize the fields popup button, where PPOM meta can be displayed:

Fields Popup style settings

Customized Fields Popup button

WooCommerce > Settings > PPOM settings >  Enquiry Form - to customize the aspect of the form buttons:

Enquiry Form style settings

Customized Enquiry Form button

Style the File Input button, progress bar, and heading ​

The built-in Style Settings cover the general field styling, input boxes, price tables, and tooltips described above. To style the File Input upload button, progress bar, or heading, add targeted CSS through Appearance > Customize > Additional CSS. For more information about adding CSS, see How to code basic CSS.

css
.ppom-wrapper .ppom-file-container .btn.btn-primary,
.ppom-wrapper .ppom-file-container .btn.btn-primary:hover,
.ppom-wrapper .ppom-file-container .btn.btn-primary:focus {
  background-color: #8b4513 !important;
  border-color: #8b4513 !important;
  color: #fff !important;
}

.ppom-wrapper .filelist .progress-bar {
  background-color: #8b4513 !important;
}

.ppom-wrapper fieldset[id^="ppom-file-container-"] > legend.form-control-label {
  font-size: 14px !important;
}

The first rule styles the upload button in its normal, hover, and focus states. The second changes the upload progress bar to the same color. The third changes only File Input headings, without changing every PPOM field label. Replace #8b4513 with your desired color, #fff with your desired text color, and 14px with your desired heading size.

Was this helpful?