Support ForumOverride shortcode template in a child theme – Support Forum https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/feed Sun, 20 Apr 2025 13:05:51 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3527 <![CDATA[Override shortcode template in a child theme]]> https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3527 Fri, 11 Jul 2014 15:15:05 +0000 Felipe Hello,
I am trying to overwrite the latest posts shortcode (I want to change the color classes e put the post thumbnail above the title).
I found a post here on the forums that talks about overwritting the functions but it is from over a year ago and the instructions in it don´t apply anymore.
Could you guys point me to where I need to get the code and where to put it in the child theme?
Thank you

]]>
https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3553 <![CDATA[Reply To: Override shortcode template in a child theme]]> https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3553 Mon, 14 Jul 2014 05:52:17 +0000 IshYoBoy Hi Felipe,

First of all welcome to the Forum and congratulations on your new theme! Hope you love it already.

Sure we can help. All shortcodes are located in the “IshYoBoy Boldial Assets” plugin. So feel free to explore the ishyoboy-shortcodes folder.

To override any of the shortcodes or theme functionality you will have to use a child theme. We recommend starting with the starter one we have provided along with the theme. You can override the templates for every shortcode by copying it from:

wp-content\plugins\ishyoboy-boldial-assets\ishyoboy-shortcodes\assets\backend\vc_extend\shortcodes_templates\ish_recent_posts.php

To your child theme:

ish-plugins/ishyoboy-shortcodes/assets/backend/vc_extend/shortcodes_templates/ish_recent_posts.php

Hope this was what you were looking for. If not, please let us know.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3587 <![CDATA[Reply To: Override shortcode template in a child theme]]> https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3587 Mon, 14 Jul 2014 12:46:41 +0000 Felipe Worked perfectly! Thanks for the quick reply.

]]>
https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3589 <![CDATA[Reply To: Override shortcode template in a child theme]]> https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-3589 Mon, 14 Jul 2014 14:56:54 +0000 IshYoBoy You’re welcome. We’re glad it worked ;)

PS: if you’re satisfied with our theme and support you can always motivate us even more by rating our Boldial theme on Themeforest. Be careful because we accept only 5 star support ;)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-10785 <![CDATA[Reply To: Override shortcode template in a child theme]]> https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-10785 Sun, 06 Dec 2015 12:29:28 +0000 Atasoglou One Question please to clarify something:

How did you come up with the path of the child theme?

You map: /ishyoboy-boldial-assets/[…] (parent theme)
to: /ish-plugins/[…] (child theme)

How is this derived?

Thanks,
Athanasios

]]>
https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-10819 <![CDATA[Reply To: Override shortcode template in a child theme]]> https://support.ishyoboy.com/forums/topic/override-shortcode-template-in-a-child-theme/#post-10819 Mon, 07 Dec 2015 16:20:58 +0000 IshYoBoy Hey Athanasios,

The file is from a plugin, not from the parent theme. If we make it so, WordPress gives you with an opportunity to override and existing file from the parent theme via a child theme by keeping the same folder structure as in the parent theme.

But there is no such functionality for files inside a plugin. In order to provide you with this extra ability we decided to put all files in a folder called “/ish-plugins/” and then keep the exact same path as in the plugin. The extra folder is there to avoid collisions with parent theme.

Let’s say we have the same folder structure in the parent theme and in a plugin’s root:

Parent theme: “assets/index.php”
Plugin file: “assets/index.php”

If both are overridable then if we create a file in the child theme:

Child theme: “assets/index.php”

Then which file shall it override? The Parent theme one ore the plugin one? So this is the reason behind the extra folder.

We map: /ishyoboy-boldial-assets/[…] (plugin)
to: /ish-plugins/ishyoboy-boldial-assets/[…] (child theme)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>