Hello Steve,
Thanks for the very detailed post information. What you are trying to accomplish requires a template customization, we would highly to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
After the child theme is set up, please add the following code in your child theme’s functions.php file
// Custom Pricing Table Column
// =============================================================================
function custom_x_shortcode_pricing_table_column( $atts, $content = null ) {
extract( shortcode_atts( array(
'id' => '',
'class' => '',
'style' => '',
'featured' => '',
'featured_sub' => '',
'title' => '',
'currency' => '',
'price' => '',
'interval' => ''
), $atts, 'x_pricing_table_column' ) );
$id = ( $id != '' ) ? 'id="' . esc_attr( $id ) . '"' : '';
$class = ( $class != '' ) ? 'x-pricing-column ' . esc_attr( $class ) : 'x-pricing-column';
$style = ( $style != '' ) ? 'style="' . $style . '"' : '';
$featured = ( $featured == 'true' ) ? ' featured' : '';
$featured_sub = ( $featured_sub != '' ) ? ' <span class="x-featured-sub">' . $featured_sub . '</span>' : '';
$title = ( $title != '' ) ? $title : '';
$currency = ( $currency != '' ) ? $currency : '';
$price = ( $price != '' ) ? $price : '';
$price = do_shortcode( $price );
$interval = ( $interval != '' ) ? $interval : '';
$output = "<div {$id} class=\"{$class}{$featured}\" {$style}>"
. '<h2 class="man">'
. $title
. $featured_sub
. '</h2>'
. '<div class="x-pricing-column-info">'
. "<h3 class=\"x-price\">{$currency}{$price}</h3>"
. "<span class=\"x-interval\">{$interval}</span>"
. do_shortcode( $content )
. '</div>'
. '</div>';
return $output;
}
add_action('wp_head', 'change_recent_posts_to_v2');
function change_recent_posts_to_v2() {
remove_shortcode( 'cs_pricing_table_column', 'x_shortcode_pricing_table_column' );
remove_shortcode( 'x_pricing_table_column', 'x_shortcode_pricing_table_column' );
add_shortcode( 'cs_pricing_table_column', 'custom_x_shortcode_pricing_table_column' );
add_shortcode( 'x_pricing_table_column', 'custom_x_shortcode_pricing_table_column' );
}
In the code above, I have modified it so that the price area will accept a shortcode.
Hope this helps. Kindly let us know.