Shop page, change class

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 2 reply threads
  • Author
    Posts
    • #74350
      Orb10-1
      Participant

      Hi,
      there’s a problem I’m not able to fix.
      On shop page, I used [wtcpl-product-cat] and I removed the default woocommerce shop page php.
      Till there no issue.
      However the issue comes with the “vendor img and name” for every product appearing on shop page: they don’t have a unique class for that hook.
      The classes used are: wcfmmp_sold_by_wrapper (div, span, a)…these are the SAME used on vendor/product page. Thus, there’s a css conflict because I can’t edit the vendor information on shop page products without affecting it on the product page (product summary).

      I’d like to clone the php for the shop page products and add a specified class to use only on shop page (like wcfmmp_sold_by_wrapper-2), but my biggest issue is here: after days I didn’t find which php file is called and from where.

      Thanks

    • #74912
      WCFM Forum
      Member

      Hi,

      Well, in that case you have write CSS with body class reference.

      Shop page body has this class – post-type-archive-product
      But single product page does not have this.

      So, write your CSS like this –

      .post-type-archive-product .wcfmmp_sold_by_wrapper {}

      Thank You

    • #75785
      Orb10-1
      Participant

      Yes, it’s a helpful trick, but that body class is not specific to the shop page.
      However I’ve found another way to set up the shop correctly.
      Thanks

Viewing 2 reply threads
  • The topic ‘Shop page, change class’ is closed to new replies.