![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: options
-
AuthorPosts
-
April 16, 2014 at 6:48 am #251943
My products are simple without variations so options button is redundant also don’t want add to cart functionality as user should first go to product single page before adding to cart.
Is there a function to remove these and only have ‘Show Details’ link ?
Thank you!-
This topic was modified 10 years, 4 months ago by
ttem.
April 17, 2014 at 9:04 am #252504Hey ttem!
Yes – open up wp-content/themes/enfold/config-woocommerce/config.php and replace:
ob_start(); woocommerce_template_loop_add_to_cart(); $output = ob_get_clean(); if(!empty($output)) { $pos = strpos($output, ">"); if ($pos !== false) { $output = substr_replace($output,"><span ".av_icon_string('cart')."></span> ", $pos , strlen(1)); } }
with
$output = '';
Regards,
PeterApril 17, 2014 at 9:39 am #252532Thank you Peter that successfully removes the ‘select options’ link
There was still a redundant delimiter so I removed this from line 213:
if(empty($extraClass)) $output .= " <span class='button-mini-delimiter'></span>";
Now the ‘Show Details’ link is floated right…what is the best way to get it centered?
April 17, 2014 at 5:11 pm #252791April 17, 2014 at 8:34 pm #252868Yigit,
I think I have it figured since I will only have one button ‘Show Details’ for all products, I changed the following width from 49% to 100%
#top .avia_cart_buttons .button {width: 100%;}
That now centers the ‘Show Details’ button..regardless of this css
#top .avia_cart_buttons .button:last-child { float: right;}
Should be ok?
April 17, 2014 at 9:37 pm #252888May 28, 2014 at 10:15 am #271045hi there,
same goal here – except i would like to have both ‘add to cart’ and ‘show details’ removed.
where would i do that?thanks in advance
PedroMay 28, 2014 at 3:14 pm #271172Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.avia_cart_buttons { display: none !important; }
Cheers!
YigitFebruary 17, 2015 at 6:25 am #397253I also would like to remove all Add to Cart buttons
I have added .avia_cart_buttons { display: none !important; } to the Quick CSS under General Styling tab but the red add to card button is still there. what to do?February 17, 2015 at 4:35 pm #397580Hey!
Please add following code to Quick CSS as well
button.single_add_to_cart_button { display: none !important; }
Cheers!
YigitJanuary 18, 2016 at 6:24 pm #567300The quantity button is still added with this option. How do I remove that as well?
January 18, 2016 at 6:31 pm #567303@cinchmedia: why would you want to do that? just want to sell one single product at a time or don’t you want to sell a product at all (f.e. just for promotion purposes..)?
January 19, 2016 at 11:00 pm #568204Hey!
can you provide us a link to your site showing the elements in question please? we need to be able to inspect the elements.
Best regards,
Andy -
This topic was modified 10 years, 4 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.