Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Be|theme demo. We don`t offer theme customization.


Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
3. If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.


IMPORTANT!!! Along with your inquiry, please attach the address of the page which concerns the question. This will cause the time to answer on your question will be much shorter. If you do not want to publish your address publicly in the forum, please send a private message. Thanks!

Set Layout > Margin | Bottom to zero for all

Is there a way to set this to be zero instead of default? I find that I am going in to always set this to zero for items and wasn't sure if there was a global setting to change this (either in the options panel or through functions/code files). 

Comments

  • Please sign in to see answear!
  • Both the column and the wrapper options, is there no way to override this to be zero? Even if its from a code level?
  • Please sign in to see answear!
  • edited May 11
    Can I make a recommendation or a request for update that would add a class for when at default? 

    something like:



    // Wrap | Classes -------------------

    if( key_exists( 'attr', $wrap ) ){

    $wrap_class[] = $wrap['attr']['class'];

    // Wrap Items | column margin
    if( $wrap['attr']['column_margin'] ){
    $wrap_class[] = 'column-margin-'. $wrap['attr']['column_margin'];
    }

    // ****************** Wrap Items | column margin is set to default *********************
    if( empty($wrap['attr']['column_margin']) ){
    $wrap_class[] = 'column-margin-default'. $wrap['attr']['column_margin'];
    }

    // Wrap Items | vertical align
    if( isset( $wrap['attr']['vertical_align'] ) ){
    $wrap_class[] = 'valign-'. $wrap['attr']['vertical_align'];
    }

    // Wrap | Background size
    if( isset( $wrap['attr']['bg_size'] ) && ( $wrap['attr']['bg_size'] != 'auto' ) ){
    $wrap_class[] = 'bg-'. $wrap['attr']['bg_size'];
    }

    }




    // Items --------------------------------------------

    if( is_array( $wrap['items'] ) ){
    foreach( $wrap['items'] as $item ){

    if( function_exists( 'mfn_print_'. $item['type'] ) ){

    // Item | Size
    $class = $classes[$item['size']];

    // Item | Type
    $class .= ' column_'. $item['type'];

    // Item | Custom Classes
    if( isset( $item['fields']['classes'] ) ){
    $class .= ' '. $item['fields']['classes'];
    }

    // Column | Margin Bottom
    if( $item['type'] == 'column' && ( ! empty( $item['fields']['margin_bottom'] ) ) ){
    $class .= ' column-margin-'. $item['fields']['margin_bottom'];
    }

    // ********************* Column | Margin Bottom is default *********************
    if( $item['type'] == 'column' && ( empty( $item['fields']['margin_bottom'] ) ) ){
    $class .= ' column-margin-default'. $item['fields']['margin_bottom'];
    }


    // Print
    echo '<div class="column mcb-column '. $class .'" style="font-weight: normal;">';
    call_user_func( 'mfn_print_'. $item['type'], $item );
    echo '</div>';

    }

    }
    }

    this would allow us to set a default margin through CSS for that option if desired. Or even placing a "Default Margin" option in the theme options under a panel.

  • Please sign in to see answear!
Sign In or Register to comment.