Home>Support>Remove default options from Row Styles

Remove default options from Row Styles

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Is there a way (without editing plugin file inc/styles.php) to remove some of the options from Row Styles.

e.g. I want to hide CSS Declarations and some other options in the WordPress theme I’m developing.

I know how to add custom fields, but can’t figure how to remove default ones.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 9 months ago Alex S
    Hi, I Work Here

    Hi Dušan,

    The filter that’s used to add row styles is a general filter that allows you to manipulate the $fields array. This means that you remove a certain field you filter siteorigin_panels_row_style_fields and unset the field (array item) you don’t want to use. For rows that will be: unset( $fields['row_css'] );.

    Kind regards,
    Alex

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More