• Hi there.
    
    Firstly, thank you for the excellent FREE plugin.
    
    I’m just struggling with columns!
    <strong>how can i use 2column in desktop and 1column in mobile devices?</strong>
    is there any css code to responsive column ?
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Krzysztof Pi?tkowski

    (@wckalkulator)

    Hi, there is no option for that. You can override template files and create your own layout.

    Thread Starter ardalan1373

    (@ardalan1373)

    can you help me how do it?
    I am not good enough in programming!

    Thread Starter ardalan1373

    (@ardalan1373)

    sorry @wckalkulator
    how can i create my own layout?

    i copy-paste every file in the view directory to the themes/your-theme/wc-kalkulator directory! but i can’t see any .css file for change style!

    Plugin Author Krzysztof Pi?tkowski

    (@wckalkulator)

    @ardalan1373 use just view/woocommerce/product.php in your theme

    The starting point is:

    <?php
    if (!defined('ABSPATH')) {
        exit;
    }
    
    ?>
        <input type="hidden" name="_wck_product_id" value="<?php echo absint($view->product_id); ?>">
        <input type="hidden" name="_wck_hash" value="<?php echo wp_hash($view->product_id); ?>">
    <?php
    foreach ($view->fields as $field) {
        echo '<pre>' . print_r($field, true) . '</pre>';
    }
    ?>

    It will loop over all fields in your fieldset and print_r field’s parameters. You can use it to build your custom layout.

    You can override field’s templates to change their look. Field’s are wrapped by <tr><td> tags by default, but you can override it and change table tags to divs and use flex layout for example.

    CSS rules goes to your theme’s css. You can create a new file and enqueue it (wp_enqueue_style()) as every other stylesheet.

    Making custom layouts is for advanced users and developers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how can use 2column in desktop and 1column in mobile devices?’ is closed to new replies.