Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1189418

    Hello,
    I am having some problems with the size of the sidebar thumbnails. I tried to edit their size in theme options as well in CSS but no results. They remain 80×80 regardless of what I do. Can you help?

    #1190533

    Hey radoicosminstefan,

    Please go to Settings > Media and change the size there:
    Image 2020-03-05 at 18.12.22.png

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1190552

    Hello Victoria,

    Thank you for your reply.
    I have tried the solution and cleared the cache but unfortunately it does not work.

    #1190655

    Hi radoicosminstefan,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    #top div ul.product_list_widget li img {
        width: 80px;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1190780
    This reply has been marked as private.
    #1190846

    Are you able to see the message above?

    #1191121

    Hi,
    To make the widget price amount larger, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .product_list_widget span.woocommerce-Price-amount.amount {
    	font-size: 15px !important;
    }

    After applying the css, Please clear your browser cache and check.
    According to this article you can make the email not mandatory by adding this code to the end of your functions.php file in Appearance > Editor:

    add_filter( 'woocommerce_billing_fields', 'ts_unrequire_wc_phone_field');
    function ts_unrequire_wc_phone_field( $fields ) {
    $fields['billing_email']['required'] = false;
    return $fields;
    }

    Please give this a try.

    Best regards,
    Mike

    #1191614
    This reply has been marked as private.
    #1191615
    This reply has been marked as private.
    #1192220

    Hello guys,

    I managed to resolve the problem above and the code works perfectly. Thank you.

    1. On the product page is it possible to place the product reviews directly under the “add to cart” button and allow for reviews with pictures?

    2. Can we also bold this price code?
    .product_list_widget span.woocommerce-Price-amount.amount {
    font-size: 15px !important;
    }

    Thank you,
    Stefan

    #1192222

    3. Also on the product page, the product detail tabs seemed to have changed, became bigger and no longer fit on one single row.

    #1192239

    Hi,
    Sorry for the late reply, I have checked a few of your product pages but I don’t see a ” product reviews” section, I do see a “review” tab next to the description under the “size” and “add to cart” button, is this what you mean?
    If so the “review” tab can’t be moved to it’s own section, it is part of the description tabs.
    To make the main price above the description bold, please try this css:

    span.woocommerce-Price-amount.amount {
    font-size: 15px !important;
    font-weight: bolder !important;
    }

    After applying the css, Please clear your browser cache and check.
    For me the product detail tabs are all in one row, do you mean this occurs on mobile devices?

    Best regards,
    Mike

    #1192295

    Hello Mike,

    Thank you for your reply.

    1. Yes, I am referring to the “review” tab, next to description and under the size and add to cart button. Is there any way to add/change the product page and add a review standalone section? Please check attached image for reference. https://snipboard.io/3zNveo.jpg

    3. The product detail tabs look a bit weird both on mobile as well as desktop, please check attached image: https://snipboard.io/nY34Ja.jpg

    Best regards,
    Stefan

    #1192348

    Hello, Mike

    I have another question.

    4. In the checkout page, under the mobile phone field can we have a rule that says the user’s mobile phone has to be 10 numbers long? Eg: 0123456789
    Currently, some users enter smaller mobile phone numbers, eg: 0123456

    Best regards,
    Stefan

    #1192572

    Hi,
    1) I believe to achieve this you will need to look for a woocommerce plugin.
    3) for the detail tabs on mobile, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media only screen and (max-width: 767px) { 
    #top div div.product .woocommerce-tabs ul.tabs li a,#top div div.product .woocommerce-tabs ul.tabs li.active a {
        padding: 0 !important; 
    }
    #top .woocommerce-tabs .tabs li a {
        margin: 0 -4px 0 0;
    }
    }

    After applying the css, Please clear your browser cache and check.
    4) to validate a minimum of 10 numbers adding this code to the end of your functions.php file in Appearance > Editor may work:

    // Limit Woocommerce phone field to 10 digits number
    add_action('woocommerce_checkout_process', 'my_custom_checkout_field_process');
      
    function my_custom_checkout_field_process() {
        global $woocommerce;
      
        // Check if set, if its not set add an error. This one is only requite for companies
        if ( ! (preg_match('/^[0-9]{10}$/D', $_POST['billing_phone'] ))){
            wc_add_notice( "Incorrect Phone Number! Please enter valid 10 digits phone number"  ,'error' );
        }
    }

    or this one:

    // validation for Billing Phone checkout field
    add_action('woocommerce_checkout_process', 'custom_validate_billing_phone');
    function custom_validate_billing_phone() {
    $is_correct = preg_match('/^[0-9 \-]{10}/i', $_POST['billing_phone']);
    if ( $_POST['billing_phone'] && !$is_correct) {
    wc_add_notice( __( 'Phone Number must be minimum 10 numbers.' ), 'error' );
    }
    }

    Best regards,
    Mike

    #1192586

    just for info : besides the image size in the widget areas ( if they are latest news or latest portfolio) – it would take alswas that thumbnail sized image as source – but
    there is a filter : avf_newsbox_image_size which can manage that to have another source for that widget thumbnail.
    so maybe you like to take instead the square images (180px x 180px) you only had to know what newsbox or portfoliobox you like to select:

    function my_avf_newsbox_image_size( $image_size, array $args, array $instance ){
      if( $args['widget_id'] == ( 'portfoliobox-3' || 'newsbox-2' || 'newsbox-4' ) ){
        $image_size = 'square';
      }
      return $image_size;
    }
    add_filter( 'avf_newsbox_image_size', 'my_avf_newsbox_image_size', 10, 3 );
    #1192661

    Hello Mike,
    Thank you for your reply.

    1) Alright
    3) The code works but it removed padding entirely on mobile. If I increase the 0s with 1-2 px it goes back to the way it was originally.
    4) Works great, thanks.

    Guenni007, I did not understand your message, sorry. Can you elaborate?

    Best regards,
    Stefan.

    #1192674

    maybe it has changed in the meanwhile – and uses now the srcset for those images too.
    The flter allready exists and let you influence what generated image-size is used for those widget thumbnails.
    You can style these images with css – but on former enfold versions ( it only resizes the 36px or 80px thumbnail ) there is always defined a thumnail size as source for those (featured)-images
    I talk about the sidebar widget images. This filter can redefine the source for it.

    • This reply was modified 5 years, 3 months ago by Guenni007.
    #1193092

    Hi,
    3) yes the padding is removed from the tabs on mobile, this allowed the large tabs to have the same width as the container and not create multiple rows. But you could have top and bottom padding if you change the css to this:

    @media only screen and (max-width: 767px) {
    #top div div.product .woocommerce-tabs ul.tabs li a, #top div div.product .woocommerce-tabs ul.tabs li.active a {
        padding: 9px 0px!important;
    }
    }

    Best regards,
    Mike

Viewing 19 posts - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.