• Resolved JoeUntitled

    (@joeuntitled)


    Hi, while PageBuilder has a load of available units available for column margins, gutter, and padding, it doesn’t seem to have the rem unit available. Is it likely that they’ll be added to the plugin? If not, which plugin file do I need to edit to add them myself?

    Thanks in advance!

    https://ww.wp.xz.cn/plugins/siteorigin-panels/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Add this code inside your theme’s functions.php file:

    function my_theme_new_measurement_units() {
    	$measurements = array(
    		'px',
    		'%',
    		'in',
    		'cm',
    		'mm',
    		'em',
    		'ex',
    		'pt',
    		'pc',
    		'rem'
    	);
    
    	return $measurements;
    }
    
    add_filter( 'siteorigin_panels_style_get_measurements_list' , 'my_theme_new_measurement_units' );
    Plugin Author Greg – SiteOrigin

    (@gpriday)

    Thanks for helping out desertSailors. I’ve also just added this to the core of Page Builder. Seems like an important unit to have. It’ll be available in the next update.

    https://github.com/siteorigin/siteorigin-panels/commit/ef15348cff0b8c21f842ac3fefaacff43bb6b69c

    Thread Starter JoeUntitled

    (@joeuntitled)

    Brilliant, thanks for the help!

    Is there any way to use those units in the layout settings page? At the moment I can’t see a way to change the units for those default settings, which is something we’ll probably have to do when we start using the plugin on client sites.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Rem unit for column layout’ is closed to new replies.