-
AuthorPosts
-
December 9, 2015 at 5:08 pm #549877
How cann add a custom text under price for each product?
<div class=”thumbnail_container”>
<span class=”cart-loading”></span>
</div>
<div class=”inner_product_header”>
<div class=”avia-arrow”></div>
<h3>TITLE</h3>
<span class=”price”><span class=”amount”>€9.90</span></span>
***HERE MY TEXT****
</div>December 10, 2015 at 5:47 am #550162Hi unicaweb!
Thank you for using Enfold.
Add this in the functions.php file:
add_action( 'woocommerce_single_product_summary', function() { echo "SOMETHING HERE"; }, 10);
Best regards,
IsmaelDecember 13, 2015 at 10:08 am #551575Don’t work ca you see http://www.ceramicaoutlet.it/categoria-prodotto/rivestimenti/
I add this
add_action( ‘woocommerce_single_product_summary’, function() {
echo “IVA INCLUSA”;
}, 10);in functions.php of my enfold theme
December 13, 2015 at 11:38 pm #551844Hi!
add_action( 'woocommerce_single_product_summary', function() { echo "IVA INCLUSA"; }, 10);
Please try the following and let us know if that worked out for you.
Regards,
BasilisDecember 14, 2015 at 8:36 am #552010Yws I do it but don’t work in loop & single product
http://www.ceramicaoutlet.it/categoria-prodotto/rivestimenti/
December 14, 2015 at 2:28 pm #552274Hey!
Please try adding following code to Quick CSS in Enfold theme options under General Styling tab
.single-product .amount:after { content: ' Here is your custom text'; color: black; }
It should look like this – http://i.imgur.com/VDrMBIx.png
Best regards,
YigitDecember 14, 2015 at 2:53 pm #552299Yes now it works but I need break line not inline. Anf for all loop category products! Not only for single product.
December 14, 2015 at 2:59 pm #552305Hi!
Please change the code to following one
.single-product .amount:after { content: ' IVA INCLUSA'; color: black; position: relative; left: -41px; top: 15px; }
Cheers!
YigitDecember 14, 2015 at 3:08 pm #552318I need also for loop category products (category) see this page please (http://www.ceramicaoutlet.it/categoria-prodotto/rivestimenti/) and for products shortcodes.
December 14, 2015 at 3:14 pm #552323Hi!
Please try using the code as following in that case
.amount:after { content: ' IVA INCLUSA'; color: black; position: relative; left: -41px; top: 15px; }
Cheers!
YigitDecember 14, 2015 at 3:37 pm #552362Don’t work see this category page
http://www.ceramicaoutlet.it/categoria-prodotto/rivestimenti/
where is custom text ?
December 14, 2015 at 3:43 pm #552377Hi!
Do you mind creating a temporary admin login and posting it here privately?
Regards,
YigitDecember 14, 2015 at 3:52 pm #552390yes here login
December 14, 2015 at 4:03 pm #552411Hey!
Please review your website now. There was a dot missing in your custom CSS code :)
Cheers!
YigitDecember 14, 2015 at 4:13 pm #552425I don’t see custom text in category loop. See here http://www.ceramicaoutlet.it/categoria-prodotto/rivestimenti/
December 14, 2015 at 4:14 pm #552427Hey!
Please flush browser cache and refresh your page a few times. It does work fine on my end – http://i.imgur.com/BtBY4GY.png
Regards,
YigitDecember 14, 2015 at 4:19 pm #552438No its wong! Any page has a different position (Homepage, Category; SIngle) and I wnat use php code not css! Tell me file to be modify. Thanks.
December 14, 2015 at 4:22 pm #552443.amount:after {
content: ‘ IVA INCLUSA’;
color: red;
position: relative;
left: -45px;
top: 18px;
}.single-product .amount:after {
content: ‘ IVA INCLUSA’;
color: red;
position: relative;
left: -45px;
top: 18px;
}Now It’s fine!
December 17, 2015 at 7:08 pm #554599Hey!
glad you fount a solution. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Cheers!
AndyDecember 17, 2015 at 7:12 pm #554601Sorry but don’t work well the position in carousel homepage category and in single is not correct again! Its changes anytime… I don’t know!
December 22, 2015 at 1:28 pm #556520Hey!
I checked link in private content and everything looks good to me. Can you elaborate please? and show us what’s happening, by using screenshots for example? you can use imgur.com or dropbox.
Regards,
AndyAugust 29, 2017 at 8:59 pm #845445How do I edit/add text after “Booking Time:”
September 2, 2017 at 9:58 pm #847233 -
AuthorPosts
- You must be logged in to reply to this topic.