Home>Support>Row Style issue

Row Style issue

Hello

Previously, i have old version of site origin plugin.

Today i have updated it to latest version and i found the issue with ROW STYLE

There is bug in latest version with row style

– full
– full with stretch

I have also fixed this bug after spending many hours.

Let me here from you if you need help to fix this bug.

THanks,
Lyuba

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

  1. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Voloshko,

    There are currently no known bugs with the row layouts so I would be very happy if you managed to find and fix one. Could you please clarify what the issue you were experiencing was?

  2. 8 years, 3 months ago Voloshko Lyuba

    hello

    when i try to assign layout attribute to row
    – full
    – full stretch

    this is not working on front end

  3. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Voloshko,

    Typically that’s a theme or plugin conflict. Out of interest, how did you resolve this issue?

  4. 8 years, 3 months ago Voloshko Lyuba

    Hello

    no its not plugin conflict, actually i have found few line of code missing in new version.

    And i haved copied that line of code to latest version, and now working for me :)

  5. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Voloshko,

    Could you please elaborate?

  6. 8 years, 3 months ago Voloshko Lyuba

    Hello

    default-styles.php file

    there is one method
    static function row_style_attributes( $attributes, $args ) {….}

    The old version of plugin having this line
    “$attributes[‘class’][] = $args[‘row_stretch’];”

    in new version it missing

    this line is regarding row attributes “full width / full width with stretch “

  7. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Voloshko,

    Just to clarify, did you download our plugin from WordPress.org? What version are you currently using?

  8. 8 years, 3 months ago Voloshko Lyuba

    Hello Alex

    I have download plugin from wordpress.org and version 2.4.9

  9. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Voloshko,

    Hm okay. Did you make any modifications to default-styles.php? I’m asking because the functionality for full within is the first thing that takes happens in the method you referenced. Reference:

    if( !empty( $args['row_stretch'] ) ) {
    	$attributes['class'][] = 'siteorigin-panels-stretch';
    	$attributes['data-stretch-type'] = $args['row_stretch'];
    	wp_enqueue_script('siteorigin-panels-front-styles');
    }
    

    Please note that data-stretch-type instead of class is intentionally being used.

  10. 8 years, 3 months ago Private Message - Voloshko Lyuba

    This is a private message.

  11. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Voloshko,

    Do you have a public URL where we can take at an example row? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.

    It should be noted that your solution isn’t a solution. It’s a workaround. You’ll notice that my above code makes reference to $args[‘row_stretch’] but in a different manner. This is because for better compatibility we don’t just set a class the row_stretch as a class as we don’t have a CSS selector for that.

    Once I can see what you’re working with I can tell you why it’s not working out of the box for you. As mentioned previously, this is not a widespread problem so there’s something going on with your website that is preventing it from working as intended.

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