Home>Support>Prevent setting custom cell widths and allow setting default column ratios

Prevent setting custom cell widths and allow setting default column ratios

Hello,

I was wondering if anyone was working on updating the plugin to allow dynamic changing of the default row layout (line 869 in js/siteorigin-panels.js) as well as a default column ratio. That would be very beneficial to have.

Another request is for the ability to disable custom cell width changing, as in the draggable bar to resize and the editable number box in the center of the cell. We need to lock down the editors to specific layouts, so that would be nice too.

I have also made a modification that would nice to have in the plugin, it allows you to do an add_filter to set the default number of columns when creating a new row.
Replace line 288 in tpl/js-templates.php with the following:

$cells = apply_filters('siteorigin_panels_column_cells', 2 );
$cells_field = '<input type="number" min="1" max="8" name="cells"  class="so-row-field" value="'.$cells.'" />';

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

  1. 7 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Brmoore,

    Those are very interesting ideas. To clarify, no, no one is currently working towards these changes.

    If possible, could you please submit the code mentioned as pull requests for the 3.0 branch? We may have changed things slightly so it would be a good idea to retest them before submitting the PR. If you’re not familiar with doing this or would rather I did it, let me know and I’ll submit one for you. :)

    We appreciate any submitted pull requests and will always consider merging them! :)

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