WHMpress looks for any possible template in the path /wp-content/themes/your-theme/whmpress/short-code-name/. If found an HTML in template is used to render the shortcode as per user selection. If user does not selected a template “default.html” is used. Starting with VC 4.6, WHMpress requires that default template for each shortcode must be named as “default.html. If you do not want to make your own template for a shortcode, simply delete its folder.

While rendering the shortcode, WHMpress will use html in selected template but will replace the placeholders (a place holder is enclosed in curly brackets like this {$place-holder}) with values from WHMCS.

A Sample template file for whmpress_pricing_table will look like this.

/wp-content/themes/your-theme/whmpress/whmpress_pricing_table
<div class="&quot;your-style-style2”">
<h3>{$product_name}</h3>
<div class="price-unit">{$product_price}</div>
<ul>{$product_description}</ul>
{$product_order_button}

Leave A Comment

*
*