Tagged: woocommerce
-
AuthorPosts
-
December 9, 2014 at 6:52 am #365189
I saw a thread that showed the code for the Quick CSS to remove the “Add to Cart” and “Show Details” button, but I was wondering how to remove just the “Show Details” button?
Thanks in advance!
-Aric
December 9, 2014 at 7:19 pm #365501Hey a3brown4!
Try adding this to your custom CSS.
button-mini-delimiter { display: none !important; } .show_details_button { display: none !important; }
Regards,
ElliottMarch 30, 2015 at 1:20 pm #420377Could you also teach how to change the “Show Details” text? It does not translate correct to Danish..
March 30, 2015 at 1:40 pm #420384Hi!
Thank you for coming back.
You have to edit enfold\config-woocommerce\config.php line 223:
Look for:
if(in_array($product->product_type, array('subscription', 'simple', 'bundle'))) { $output .= '<a class="button show_details_button" href="'.get_permalink($product->id).'"><span '.av_icon_string("details").'></span> '.__("Show Details","avia_framework").'</a>'; }
and replace “Show Details” with the text you like.
Could you tell us the correct translation so we can update the translation file for the future releases please?
Best regards,
GünterMarch 30, 2015 at 1:45 pm #420388Its amazong how fast you guys respond, thanks!
Den correct Danish translation is: “Vis detaljer”
March 30, 2015 at 1:56 pm #420403Hey!
Thank’s a lot for this. I forward it to Kriesi for the next update.
Enjoy the theme and feel free to come back with further questions and/or problems you have.
Cheers!
GünterAugust 15, 2016 at 4:50 pm #672799Hello
It does not translate correct to Portuguese Brasil…
beyond the “show details” are not the product filters translated:Sort by Default Order
Default Order
Name
Price
Date
PopularityDisplay 15 Products per page
15 Products per page
30 Products per page
45 Products per pageeveryone should be in Portuguese ..
it happens in all our sitesthanks.
August 19, 2016 at 5:24 am #674472Hi,
Did you install WordPress in your own language? https://codex.wordpress.org/Installing_WordPress_in_Your_Language
Best regards,
IsmaelNovember 18, 2016 at 4:16 pm #714085Hi Ismael. The Problem is:
My theme is in portuguese and translated except:
Filter the products as I mentioned above. And the “show Details” button.I have opened the translator in POEDIT and these words do not exist.
I had to translate in enfold/config-woocommerce/config.phpNovember 18, 2016 at 4:18 pm #714088Hi!
You can try using this free software – https://poedit.net/ and edit language files in Enfold/lang folder. Please make sure to update the file before ediring.
If you are using a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ please see – http://kriesi.at/documentation/enfold/child-theme-translations/Best regards,
YigitMarch 21, 2017 at 3:27 pm #764225i have the same problem
i have try this css but not workbutton-mini-delimiter { display: none !important; }
.show_details_button {
display: none !important;
}March 21, 2017 at 3:30 pm #764230the code is right but i not understand why not load the custom css…..
March 22, 2017 at 6:26 am #764569Hi,
Is
button-mini-delimiter
a class? If so you are missing the . at the beginning of the statement.
Best regards,
RikardMarch 30, 2017 at 2:30 pm #769481Hello! this worked for me :D
.show_details_button {
display: none !important;
}
.button-mini-delimiter {
display: none !important;
}
.show_details_button {
display: none !important;
}I dont know why it works only if I repeated this before and after delimiter…
March 30, 2017 at 2:32 pm #769485Hey!
@paul_chezan Glad you figured it out and thanks for sharing your solution :)
There might be an error in your custom CSS as it should work when you add the code once :)Regards,
YigitApril 3, 2017 at 8:54 am #770953Hello, @Yigit, it worked like this: first it removes the button, the second should remove the delimiter but it removes it only if I put once again the first code… and that’s the third.. :) If you figure it out where is the error I’ll be glad to fix it, because I don’t like strange codes either… :D
April 4, 2017 at 4:55 am #771482Hi,
Ok, thanks for the feedback. So everything is working as it should?
Best regards,
RikardApril 5, 2017 at 9:31 am #772340Hello!
Yes it works like it should, but @Yigit said that there might be a CSS error because I had to introduce twice the same code to work…
kind regards! :DApril 5, 2017 at 11:57 am #772434Hi,
@paul_chezan Please start a new thread and attach temporary admin logins in private content field so we can look into it. If you post it here, it will be visible to creator of this thread as well :)Best regards,
YigitSeptember 26, 2019 at 9:09 am #1142154Hi,
I changed the text in Line: 410 in enfold-child/config-woocommerce/config.php
But it is not working, Can you please tell any other solution?
Kind regards
- This reply was modified 5 years, 2 months ago by torahulparashar.
September 27, 2019 at 8:53 am #1142598Hi,
You can’t override the config file in the child theme. What you need to do is remove the default hook.
remove_action( 'woocommerce_after_shop_loop_item', 'avia_add_cart_button', 16);
And create your own hook and callback. Just copy the “avia_add_cart_button” function in the child theme’s functions.php file, rename it, then do your own modifications.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.