This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Remove default options from Row Styles

5 years ago · Last reply by Alex S 5 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 5 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread