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 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.