Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #808340

    Hello Sirs,

    How are you?

    I would like to position SKU below the price in single product page.

    I used the following css code:

    span.sku_wrapper {
    display: block;
    font-weight: bold;
    position: absolute;
    top: -500px;
    }

    The css code worked, as you see in screenshot: https://prnt.sc/fjvolp
    but when the post excerpt is bigger with more text, then the text overlaps SKU…
    …as you see in screenshot: https://prnt.sc/fjvowc

    Could you help me?

    I need your precious support…

    Best Regards,
    Nick

    #808348

    Hey nickgin,
    Please include the url to the pages in question so we can take a closer look.

    Best regards,
    Mike

    #808987

    Hello Mike,

    Thank You very much for your quick answer.

    url (SKU in correct position)

    url (SKU in wrong position)

    I am waiting your answer.

    Thank You for your excellent support.

    Best Regards,
    Nick

    #809295

    Hi,
    Try this code in the General Styling > Quick CSS field:

    .template-shop .product_meta{position: absolute!important; top: 750px!important; }

    Or you could try editing your copy of wp-content/themes/enfold/config-woocommerce/woocommerce-mod.css and changing these two lines, but if you do this you should use a child theme: Read about it & Get it here
    postimage

    Best regards,
    Mike

    #809328

    Hi Mike,

    Thank You for your excellent support!

    Your css code worked with SKU, but I have some side effects now.

    Some classes such as posted_in, tagged_as & div.woocommerce-tabs.wc-tabs-wrapper are overlapped.

    See on screenshots: https://prnt.sc/fkw2s2
    https://prnt.sc/fkw2zw

    I am waiting your answer.

    Best Regards,
    Nick

    • This reply was modified 7 years, 6 months ago by nickgin.
    #809334

    Hi,
    can you please remove “.template-shop” from the code I gave you and see if that helps, otherwise please remove all and I’ll have to try again :)

    Best regards,
    Mike

    #809341

    Thank you for your answer Mike, but unfortunately it didn’t work… the elements still are overlapped.

    I am using the following css code:

    span.sku_wrapper {
    display: block;
    font-weight: bold;
    position: absolute;
    top: -500px;
    }

    .product_meta {
    position: absolute!important;
    top: 750px!important;
    }

    I am waiting your support.

    Best regards,
    Nick

    #809403

    Hi,
    OK, I’ll have to try again.
    Can you please include a admin login in the private content area so we can take a closer look?

    Best regards,
    Mike

    #809406

    Ok, thank you very much Mike!

    Best regards,
    Nick

    #810761

    Hi,

    Please remove the css codes then add this script in the functions.php file.

    // sku position
    function ava_custom_script_mod(){
    ?>
    <script>
    (function($){
    	function a() {
    			$('.sku_wrapper').insertAfter('.pwb-single-product-brands');     
    	}
    
    	a();
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod');

    Best regards,
    Ismael

    #810946

    Hi Ismael.

    You are a brilliant moderator!! You are a perfect team!!

    It worked!! Thank You very much!!

    Best regards,
    Nick

    #811099

    Hi Nick,

    Glad you got it working for you! :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.