Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Alignement product / price and color
New Landing › How can we help? › Themeforest Theme Support › Dante › Alignement product / price and color
- This topic has 20 replies, 2 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
March 4, 2015 at 7:02 pm #155100
Hello,
Could you help me with 2 alignement pb :
– Shop page: the product name is not exactly at the same level as the price (in height). And my client would like the product name align-right near the price but I don’t manage to do it… http://www.les-citoyennes.fr/boutique/
– Select a product and in the cart page, the colour is not aligned with the value. And in french we need a space between color and the value but I don’t manage to find where I can add this space.Thanks in advance !
Nice eveningMarch 5, 2015 at 6:06 am #155192Hi,
1- Please use this custom css code:-ul.products li.product .product-details { float: left; width: 80%; text-align: right; }
2- I need screenshot image to get the issue.
Thanks
MohammadMarch 5, 2015 at 8:01 am #155207Thanks Mohammad!
For point 1, it’s on the right now, I forgot to change the width ๐
But as you can see on the print screen 1, even if I put the price size at 1em, it’s slighlty lower than the product price (URL : http://www.les-citoyennes.fr/boutique/)Hereis also the print screen 2 for point 2. I need a space between “couleur” and “:” and to align in height “couleur” and “gris”.
Thanks for your help!
Nice dayAttachments:
You must be logged in to view attached files.March 5, 2015 at 8:08 am #155212Hi,
1- Please use this custom css code:-.woocommerce ul.products li.product .price{ font-size:14px !important; }
2- I need specific page url with issue.
Thanks
MohammadThanks
MohammadMarch 5, 2015 at 8:16 am #1552151- even in 14 px,the price is a bit under the product name, see that on http://www.les-citoyennes.fr/boutique/. Can you see it? I have it on Firefox, Chrome…
2- on the Shop URL I just gave, click on 1 bag, then select a color and click on “Voir le panier” on the right part of the orange banner. You’ll arrive on the cart page with my pb (same pb on the check out page if you click on “Payer la Commande” )
March 5, 2015 at 10:03 am #155236Hi,
1- Its font style in numbers so we cant control.2- Please use this custom css code:-
.woocommerce td.product-name dl.variation dd{ padding:1px !important; }
Thanks
MohammadMarch 5, 2015 at 10:10 am #155237Ok and OK.
And for the space between “couleur” and “:” ? it’s mandatory in french grammar… ๐March 5, 2015 at 10:17 am #155239Hi,
Please paste code in functions.php of child theme.<?php function sf_text_strings( $translated_text, $text, $domain ) { //$translated_text = strtolower($translated_text); switch ( $translated_text ) { case 'couleur:' : $translated_text = __( 'couleur :', 'woocommerce' ); break; } return $translated_text; }
Thanks
MohammadMarch 5, 2015 at 1:39 pm #155306OOps I’ve put I wrong place I guess, my site doesn’t work anymore, and WP also.
I’ve paste the original code for functions.php but still
Parse error: syntax error, unexpected ‘<‘ in /homepages/14/d507560346/htdocs/les-citoyennes/wp-content/themes/dante/functions.php on line 36March 5, 2015 at 1:44 pm #155307OK fixed via FTP. Where do I have to paste the code, I have no child theme as I just changed a few customize css…
March 5, 2015 at 1:51 pm #155308Hi,
I have attached child theme to you.
Thanks
MohammadAttachments:
You must be logged in to view attached files.March 6, 2015 at 10:11 am #155500The child theme cancell all the settings and the site is live.
Even if it’s not clean, could you telle me where pasting the script you’ve sent in the functions.php content?
March 6, 2015 at 10:14 am #155501Hi,
You can insert the code at top of file.
Thanks
MohammadMarch 6, 2015 at 10:22 am #155509When I put this script :
<?php
function sf_text_strings( $translated_text, $text, $domain ) {
//$translated_text = strtolower($translated_text);
switch ( $translated_text ) {
case ‘couleur:’ :
$translated_text = __( ‘couleur :’, ‘woocommerce’ );
break;
}
return $translated_text;
}before :
<?php/*
*
* Dante Functions
* ————————————————
* Swift Framework
* Copyright Swift Ideas 2014 – http://www.swiftideas.net
*
* VARIABLE DEFINITIONS
* PLUGIN INCLUDES
* THEME UPDATER
* THEME SUPPORT
* THUMBNAIL SIZES
* CONTENT WIDTH
* LOAD THEME LANGUAGE
* sf_custom_content_functions()
* sf_include_framework()
* sf_enqueue_styles()
* sf_enqueue_scripts()
* sf_load_custom_scripts()
* sf_admin_scripts()
* sf_layerslider_overrides()
*
*/…. it breaks the site with a Parse error
March 6, 2015 at 10:31 am #155515Hi,
Please remove all code and insert the code because you missed ?> tag .Thanks
Mohammad -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.