Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I’ve found a solution for that – at least until PB has really fields for that.
    You can set a visual style in each grid. With this code you can add options to the dropdown:

    function mytheme_panels_row_styles($styles) {
    $styles['full-width'] = __('Full Width', 'vantage');
    return $styles;
    }
    add_filter('siteorigin_panels_row_styles', 'mytheme_panels_row_styles');

    And with this filter you can add it to the panel-grid class-attribute:

    add_filter('siteorigin_panels_row_classes', 'siteorigin_panels_row_add_class',10,2);
    
    function siteorigin_panels_row_add_class($classes,$visual_style)
    {
    	if(isset($visual_style['style']['class'])) $classes[] = $visual_style['style']['class'];
    
    	return $classes;
    }

    Its not perfect, but an option.

    Hey,

    unfotunately, I wasn’t able to find a filter to solve this problem in a more clean way. You can change row 828 in ‘siteorigion-panels.php’.

    From:
    $classes = array( 'panel', 'widget' );
    To:
    $classes = array('widget');

    But I wouldn’t do that. I would propose to change the style like you want it just for SiteOrigion Panels. If you send me a link to the page, I will give you the necessary css-code.

    Thread Starter redmarketing

    (@redmarketing)

    Hey,

    it’s good to know that w3 just benifits not-logged users^^ I tried it aswell and was wundering why nothing happend.

    Lazyload dosn’t help if the server needs 10s to answer…

    The problem was solved for us after we had updated our server. If that isn’t an option for you, try WP Super Cache. It saves your pages as html. Unfotunately, if you update sth. you need to clear the chache…
    But maybe you’ll find a way to handle it.

    Thread Starter redmarketing

    (@redmarketing)

    Haha, my bad… After I’ve tried it with a ‘clean’ version of WordPress, I noticed the matter of the div^^

    But still thx for the fast answer.

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