
-
AuthorPosts
-
March 2, 2020 at 1:20 pm #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?March 5, 2020 at 6:12 pm #1190533March 5, 2020 at 6:40 pm #1190552Hello Victoria,
Thank you for your reply.
I have tried the solution and cleared the cache but unfortunately it does not work.March 5, 2020 at 9:17 pm #1190655Hi 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,
VictoriaMarch 6, 2020 at 8:28 am #1190780This reply has been marked as private.March 6, 2020 at 12:23 pm #1190846Are you able to see the message above?
March 7, 2020 at 3:18 pm #1191121Hi,
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,
MikeMarch 9, 2020 at 6:46 pm #1191614This reply has been marked as private.March 9, 2020 at 6:51 pm #1191615This reply has been marked as private.March 11, 2020 at 12:20 pm #1192220Hello 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,
StefanMarch 11, 2020 at 12:25 pm #11922223. Also on the product page, the product detail tabs seemed to have changed, became bigger and no longer fit on one single row.
March 11, 2020 at 12:51 pm #1192239Hi,
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,
MikeMarch 11, 2020 at 2:45 pm #1192295Hello 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,
StefanMarch 11, 2020 at 4:50 pm #1192348Hello, 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: 0123456Best regards,
StefanMarch 12, 2020 at 12:50 pm #1192572Hi,
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,
MikeMarch 12, 2020 at 1:37 pm #1192586just 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 );
March 12, 2020 at 3:30 pm #1192661Hello 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.March 12, 2020 at 4:49 pm #1192674maybe 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.
March 14, 2020 at 1:58 pm #1193092Hi,
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 -
This reply was modified 5 years, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.