• Resolved ihdumille

    (@ihdumille)


    Hi
    I want to show the latest products on my frontpage. I have the widget in my right sidebar.
    I only want to show image of the product. No prices or names.

    Someone helped me with this code

    span.woocommerce-Price-amount.amount, small.woocommerce-price-suffix {
    display: none !important;
    }
    
    .woocommerce ul.product_list_widget li img {
    float: right !important;
    width: 50% !important;
    }

    But it toke the prices away from all the shop and also I still have the productname, I don’t want that.
    Can you help me?
    regards Christina

    • This topic was modified 2 years, 4 months ago by ihdumille.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello Christina!

    Thanks for reaching out!

    I want to show the latest products on my frontpage. I have the widget in my right sidebar.
    I only want to show image of the product. No prices or names.

    If you are using the Newest Products block from our WooCommerce Blocks plugin, please post on a forum dedicated to the plugin here: https://www.ads-software.com/support/plugin/woo-gutenberg-products-block/#new-topic-0

    If you are not using the WooCommerce Blocks plugin, please let us know the tool(s) you are using to add the latest/newest products widget to your site.

    Thanks!

    Thread Starter ihdumille

    (@ihdumille)

    Hi Joseph

    I am using the widget called “product list”

    Hi @ihdumille

    Can you provide a link to the page where the widget is being shown so that we can take a closer look?

    We’ll look forward to hearing from you.

    Thread Starter ihdumille

    (@ihdumille)

    I call the widget “det nyeste” on the right side with the santa pictures
    https://meisolle.dk/

    Hello!

    Thanks for the info.

    Can you please check if this code works for you? To add it please head to WP Dashboard > Appearance > Customize > Additional CSS.

    .woocommerce ul.cart_list li a, .woocommerce ul.product_list_widget li a {
    	text-indent: 100%;
    	white-space: nowrap;
    	overflow: hidden;
     }


    Link to image: https://snipboard.io/kcN1Tg.jpg

    Let us know how that goes.

    Thread Starter ihdumille

    (@ihdumille)

    Hi Igor
    Thanks, perfect, the text disapeard, but now there is this too much space, there. I guess that’s because of the text “de nyeste” and “kurser lige nu”. Is that something you can help me with too?

    Plugin Support Daniyal Ahmed (a11n)

    (@daniyalahmedk)

    Hi there,

    Can you please add the following CSS code in Appearnce > Customize > Additional CSS, and add the following CSS code:

    
    .woocommerce ul.product_list_widget li a img {
        float: left !important;
    }
    

    Let me know how it goes!

    Best,

    Thread Starter ihdumille

    (@ihdumille)

    The first one “de sidste nye” the images is under the text now but not the other one “kurser lige nu”.
    And it would be nice if it was the text that moved to the right insteed, so it fits my shop. Is that possible?
    And the prices in my woocommerce shop are gone

    The widget below is at Html code with links and looks like this

    <figure class="wp-block-image alignright size-large is-resized"><a href="https://meisolle.dk/courses/anderledes-dukkemageri-2/"><img src="https://meisolle.dk/wp-content/uploads/2019/10/meisollefb-600x600.jpg" alt="" width="100" height="100" /></a><figcaption>Gratis workshop</figcaption></figure>

    • This reply was modified 2 years, 4 months ago by ihdumille.

    Hello,

    And it would be nice if it was the text that moved to the right instead, so it fits my shop. Is that possible?

    For further assistance you can reach out to your Cenote theme support.

    And the prices in my woocommerce shop are gone

    To clarify, were the prices visible on the shop page before starting this forum thread?

    May I ask if you switch your theme temporarily to Storefront are the prices visible at the shop page?

    Let us know, thanks.

    Thread Starter ihdumille

    (@ihdumille)

    I was not sure.
    I just removed the code you gave me and left the one I had from the beginning and I see now, that it was allready gone when using the first piece of code, that I pasted above.

    Do I have to install Storefront? Is it insteed of woocommerce?

    Hi @ihdumille

    Thanks for the update.

    Do I have to install Storefront? Is it insteed of woocommerce?

    No, Storefront is not an alternative of WooCommerce. Storefront is one of the default WordPress themes.

    Your site is running on Cenote theme. We want you to temporarily switch your site’s active theme to Storefront. If the problem disappears at that point, that will indicate that the problem is from the theme. If the problem still persists, then we will go ahead with further troubleshooting. Hope I could clarify. ??

    If you’d prefer not to make any changes on your live site, then you can create a duplicate/staging site. Many hosting providers offer site staging facilities, but if you don’t have such a feature, you can create one with the WP Staging plugin. You can test the theme-change on the staging site and let us know the results.

    Thread Starter ihdumille

    (@ihdumille)

    I activated the storefront theme.
    There are still no prices in the shop and now the sidebar pictures from Newest products are very small. (de nyeste)

    The “Seneste kurser” are looking as they should

    The right sidebare is aligend to fit the wide of the shop, I think just this theme doesn’t have a centeret Menu. So it looks a bit odd.

    Hi @ihdumille!

    I activated the storefront theme.
    There are still no prices in the shop and now the sidebar pictures from Newest products are very small. (de nyeste)

    Thank you for changing your theme.

    I checked your site and confirmed no prices are displayed on your store products.

    As a first step, to try and discover why the prices aren’t displaying, could you please disable all the custom codes you’ve added regarding hiding product prices and the alignment of the sidebar to see if the issue is related to them?

    If the issue persists, please try a full conflict test by switching your theme back to Storefront and disabling all plugins except WooCommerce. Once you do this, check again if the product prices are now displaying.

    You can find a more detailed explanation of how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Let us know how that goes for you!

    Thread Starter ihdumille

    (@ihdumille)

    Hi

    I moved this code and the prices are back again

    span.woocommerce-Price-amount.amount, small.woocommerce-price-suffix {
    display: none !important;
    }

    .woocommerce ul.product_list_widget li img {
    float: right !important;
    width: 50% !important;
    }

    .woocommerce ul.cart_list li a, .woocommerce ul.product_list_widget li a {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    }

    .woocommerce ul.product_list_widget li a img {
    float: left !important;
    }`

    Without beeing a wizard with coding I removed this piece of code and the prices are back in the shop but also in my Product list widget on the frontpage.

    span.woocommerce-Price-amount.amount, small.woocommerce-price-suffix {
    display: none !important;
    }

    Hi @ihdumille!

    That’s good news.

    We are glad that the prices are displaying now ??

    If you want, you can change the Storefront theme to the theme you previously had.

    Regarding your request about hiding prices and text from the latest products widget, I couldn’t find it in the WooCommerce core widgets nor with the WooCommerce Blocks extension.

    Are you using a plugin for that?

    To further check into this and point you in the right direction, kindly provide us your System Status; you can find it via WooCommerce > Status. Select ‘Get system report’ and then ‘Copy for support’. Once you do this, you can paste your response here.

    Thanks!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Latest product widget without prices’ is closed to new replies.