Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #470365

    Dear Kriesi,

    we are using a plugin to display in table rows the prices of the variations “Woocommerce Variations Table – Grid”, so now is useless to show the price just under the product name. I hide it with the help of Firebug with:

    #top .price, div .stock { display: none; }

    and I set price style like this:

    span.amount {
    font-size: 20px !important;
    text-align: right;
    display: block;
    }

    and it works..

    The problem is that in the footer there is a widget to display product on sale that use the same span class=”amount”, and may be that class is used also in other places.
    How can I reference just the price on top of product page leaving others instances untouched?

    Thank you Mauro

    #470376

    A second problem is that there are two line brakes to display discounted products

    <span class=”amount”>€ 177.53</span> <ins><span class=”amount”>€ 163.65</span></ins>

    Please see screenshots

    http://www.profumo.it/footer.png

    and

    http://www.profumo.it/prices.png

    #470423

    Also if I use
    #top .price, div .stock { display: none; }

    prices disappear from product category pages.

    (I have canceled from Quick css)

    Please see http://goo.gl/LIcmjq

    #470639

    Hi!

    Thank you for using Enfold.

    You can use this instead:

    .single-product .template-shop span.amount {
    font-size: 20px !important;
    text-align: right;
    display: block;
    }

    It will not affect the widgets in the footer area.

    Cheers!
    Ismael

    #470854

    Thank you Ismail,

    can you please look at my other two questions?

    1) now is useless to show the price range just under the product name. If I hide it with the help of Firebug with:

    #top .price, div .stock { display: none; }

    prices disappear also from product category pages.

    2) there are two strange line brakes to display discounted products

    <span class=”amount”>€ 177.53</span> <ins><span class=”amount”>€ 163.65</span></ins>

    Please see screenshots

    http://www.profumo.it/footer.png

    and

    http://www.profumo.it/prices.png

    Thank you Mauro

    #470903

    Hi!

    In your header.php file, use the following:

    <?php if ( is_product('') ) { ?>
    <style>
    #top .price, div .stock { display: none; }
    </style>
    <?php } else  {} ?>

    That will load the code only into your product and nowhere else! ;-)

    Cheers!
    Basilis

    #471020

    Thank you Basilis
    I have copied header.php in our child theme and I have placed the code before

    <?php do_action(‘ava_after_main_container’); ?>

    and it works. Where is best to put it?

    What will happen if there will be major modification in future updates of header.php?

    Would you mind in the future to add a dedicated class to this div
    <div itemprop=”offers” itemscope=”” itemtype=”http://schema.org/Offer”&gt;
    so that will be possible to hide it without touching headers.php?

    Can please answer also to
    2) there are two strange line brakes to display discounted products

    <span class=”amount”>€ 177.53</span> <ins><span class=”amount”>€ 163.65</span></ins>

    Please see screenshots

    http://www.profumo.it/footer.png

    and

    http://www.profumo.it/prices.png

    How can I have discounted price and regular price all in the same line?

    Thank you Mauro

    #471412

    Hi!

    I think you can out the code into the bottom of your new header.php. As you are using it inside a child theme you are safe when future updates are coming.
    You can make a feature request for Kriesi here about your dedicated class: kriesi.at/support/enfold-feature-requests/

    2.) Use this code:

    span.amount {
    display: inherit;
    }
    

    Regards,
    Andy

    #471643

    Dear Andy ,

    if I use display: inherit; than it doesn’t work anymore the right alignment declared with text-align: right;

    Thank you Mauro

    #471650

    ok I fix it with
    td.pricecol { text-align: right; }

    #471653

    Hi!

    Great you have solved your issues!
    We will be here for anything else needed.

    Best regards,
    Basilis

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Product price style’ is closed to new replies.