Jump to content
  • Sign Up
  • 0

Исключение кода из определенных категорий woocommerce


Liv0n
 Share

Question

Доброго времени суток. Есть сайт, онлайн магазин на WP, есть код- кнопка (на скрине)

<div class="woocommerce-product-details__short-description">
    <h5 class="wd-entities-title green sg-popup-id-12581">Нашли дешевле? Снизим цену!</h5>
        <?php echo $short_description; // WPCS: XSS ok. ?>
</div>

нужно как-то ограничить данный код от 2 категорий товаров на сайте, ранее работал с opencard там было все просто, а тут информации найти не могу, либо просто не так ищу.

Прошу помощи либо статьей, либо направить в нужное русло поисков, может я просто формулирую неправильно данный вопрос. Заранее благодарю.

Screenshot (2).png

Edited by Liv0n
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy