Hello Lucy,
If you want to go with the shortcode route, then you will have to make use of a child theme. What you are trying to accomplish requires a template customization. The child theme allows you to make code changes that won’t be overwritten when an X update is released.
To install the child theme, you have to do this:
-
Download the child theme and upload it to your WordPress dashboard in Appearance > Themes like any normal theme. Please do not activate it yet.
- Go to X > Validation > Theme Options Manager and download the XCS file to your local computer.
- Go back to Appearance > Themes and then activate your newly uploaded child theme.
- Go back again to X > Validation > Theme Options Manager and import the XCS file that you have previously downloaded. This is to make sure that your child theme will have the same settings as your parent theme.
- Lastly, if you have made any file modifications, please make sure to note those files. Copy those files and place it in your child theme’s folder in the same order. And if you added any custom codes in your parent theme’s functions.php file, you will have to transfer those codes to your child theme’s functions.php file.
Once you have your child theme active and ready, please follow these steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file
<?php
// =============================================================================
// VIEWS/GLOBAL/_CONTENT-THE-CONTENT.PHP
// -----------------------------------------------------------------------------
// Display of the_content() for various entries.
// =============================================================================
?>
<?php do_action( 'x_before_the_content_begin' ); ?>
<div class="entry-content content">
<?php do_action( 'x_after_the_content_begin' ); ?>
<?php the_content(); ?>
<?php x_link_pages(); ?>
<?php do_action( 'x_before_the_content_end' ); ?>
</div>
<?php do_action( 'x_after_the_content_end' ); ?>
You may replace <?php x_link_pages(); ?>
with <?php echo do_shortcode('[the shortcode here]'); ?>
. Just make sure to insert the correct plugin shortcode.
3] Save the file named as _content-the-content.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/views/global/
. You will have to create this folder path since it does not exist in your child theme yet.
Please let us know how it goes.