This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

White background on "columns"

  • Creator
    Topic
  • #14922
    Kjetil
    Participant

    Hi
    Is there an easy way to give “columns” (as in the layout Builder) a white background – the same background as you get in a “content” page element?
    I’ve put two widgets side by side in the bottom of our front page – http://www.dolcevita.no – but would like the same boxed layout as behind the post grid just above them. That would make them stand out much better.
    Eventually, is there some other way to put those two widgets there and get the white background automatically?
    Thanks,
    Kjetil

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #14942
    Jason Bobich
    Keymaster

    You’d just filter on the “boxed-layout” class to that element like this:

    function my_element_classes( $classes ) {
    	$classes['element_columns'][] = 'boxed-layout';
    	return $classes;
    }
    add_filter( 'themeblvd_element_classes', 'my_element_classes' );
    #14949
    Kjetil
    Participant

    Works perfectly. Added it to my child theme’s function.php file.
    Beautiful!
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.