Articles on: Developers

API & CSS Classes for Chamevo Products

Chamevo provides API checks and CSS classes you can use to target products with the designer enabled.


1. API Check (PHP)


You can check if a post or product has the Chamevo Product Designer enabled by using the following function:


global $post;

if( is_fancy_product($post->ID) ) {
echo "This is a fancy product.";
}


2. CSS Classes


When a product has the Chamevo Product Designer enabled, the following CSS class is added to the <body> tag:


.fancy-product



You can use this class to apply custom CSS styling only on pages with Chamevo-enabled products.

These tools help developers add conditional logic (PHP) or apply targeted styling (CSS) specifically for Chamevo products.

Updated on: 04/11/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!