-
AuthorPosts
-
March 31, 2020 at 3:25 pm #1199348
Hello,
I would like to ask you if it is possible to set the width of the product description to 100% so it can cover the entire section, as it is shown in the image
here: https://imgur.com/a/G01sGHjI have added the below code to Custom CSS, but no luck:
.woocommerce-page .main-column.col-md-8 {
width: 100%;
}
.woocommerce-page .sidebar.sidebar-column.col-md-4 {
display: none;
}Best Regards,
Leo- This topic was modified 4 years, 8 months ago by techielab.
March 31, 2020 at 8:02 pm #1199507Hi Leonidas,
Can you give us a link to the page mentioned? so we can check further why it’s not working.
Best regards,
NikkoMarch 31, 2020 at 9:04 pm #1199534Hello you can check here: https://teleshop.gr/product/blue-blouse/
Thank you!
April 1, 2020 at 12:10 pm #1199710Hi techielab,
It’s not possible with CSS alone, you’ll need to do the following steps:
1. Go to wp-content > themes > enfold > config-woocommerce > config.php (line 1181):add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1 );
replace with:
// add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1 );
(though it is not recommended to make a change in the core of the parent theme, however just using remove_action in the child theme’s functions.php doesn’t negate it, so you’ll need to remove or comment it out)
2. In your child theme’s functions.php add this code:
add_action( 'woocommerce_after_single_product', 'woocommerce_output_product_data_tabs_opening_div', 4 ); add_action( 'woocommerce_after_single_product', 'woocommerce_output_product_data_tabs', 5 ); add_action( 'woocommerce_after_single_product', 'woocommerce_output_product_data_tabs_closing_div', 6 ); function woocommerce_output_product_data_tabs_opening_div() { echo '<div class="product">'; } function woocommerce_output_product_data_tabs_closing_div() { echo '</div>'; }
Best regards,
NikkoApril 1, 2020 at 5:14 pm #1199809Hello,
thank you for your quick reply! When you say child theme’s functions.php, you mean at the directory /wp-content / themes / enfold / functions-enfold.php ?
Thanks!
April 2, 2020 at 9:44 am #1200047Hi,
You can place it in the parent theme, look for the function.php file. Not the one you referred to. Please note that any edit you do to that file will be overwritten on updates though. Consider installing a child theme file you need to customise the theme: https://kriesi.at/documentation/enfold/install-enfold-theme/#why-child-theme
Best regards,
RikardJune 8, 2020 at 10:06 pm #1220677Hello,
i did what you mentioned and while it works fine, the problem is that the linked products i have added (under product data), appear in the middle of the page (example https://autoleaders.gr/product/gps-tracker-teltonika-fmb130-%ce%bc%ce%b5-bluethooth-%cf%87%cf%89%cf%81%ce%af%cf%82-%ce%ba%ce%b5%cf%81%ce%b1%ce%af%ce%b5%cf%82/)
How can i put the linked products in the bottom?
June 9, 2020 at 4:55 pm #1220901Hello any update?
June 10, 2020 at 11:41 am #1221140Hi techielab,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend and try to replicate it on our end for testing.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoJune 10, 2020 at 12:55 pm #1221171Hello,
Account created!
June 12, 2020 at 8:40 pm #1222175Hi techielab,
Thanks for giving us admin access.
Please use a child theme, so modifications made on functions.php isn’t lost during an update.
I tried to check further but Theme Editor seems limited to view config-woocommerce > config.php and shows 403 Forbidden error.
Can you give us ftp access as well?Best regards,
NikkoJune 12, 2020 at 9:19 pm #1222181Hello,
thank you for your support! I don’t know how to use child theme, but for sure i will take a look at it!
June 15, 2020 at 8:29 pm #1222811Hi techielab,
For the child theme, you can download and find more information in our documentation: https://kriesi.at/documentation/enfold/child-theme/
I have tried the FTP credentials using Filezilla (FTP software) and tried different settings and even FTP however it doesn’t work, please check.
I also tried to install an FTP plugin and tried to make changes however it gives the 403 forbidden error.Best regards,
NikkoJune 23, 2020 at 1:04 pm #1224849Hello,
can you let me know how i can disable the related products, when someone views a product page?
I don’t want to show “Related Products”, Thank you!June 23, 2020 at 2:10 pm #1224873June 24, 2020 at 1:24 am #1224971Hi,
I still can’t access via FTP :(
As for Related Products, you can disable this by adding this code in your child theme’s functions.php:remove_action( 'woocommerce_after_single_product_summary', 'avia_woocommerce_output_related_products', 20);
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.