Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Merge theme shortcodes. WordPress

Hi, well here is what i would like to do. I have few themes i like, i want to know how to merge a theme shortcode into another, for instance, one of the themes has the layout and the slider i like, and i have another couple of themes with the shortcodes i need. Is there any way to merge the shortcodes with the css and everything into one of the themes? there is already a similar question here, but the answer is not very specific, hope any of you guys can help me.

Answers (3)


Arnav Joy answers:

well to do this you have to find all things used by that shortcode like :- css/js/images any other resources used by that shortcode and then place all these things to new place.


Francisco Javier Carazo Gil answers:


1. First one you have to find in the code of themes the shortcodes definition. Look for the function add_shortcode in all files.
2. Recover also the function called by the shortcodes and paste it in your functions.php (the functions.php of the theme which is going to be the merge of the others)
3. Look at every functions added, you have to find if there is any extra resource, in images, in CSS code... to be able to add this to your new theme.


Gabriel Reguly answers:

Hi Israel,

You should to build a 3rd theme (or a child theme, at least) , so I suggest you start here [[LINK href=""]][[/LINK]].

Once you are familiar with that is just a matter of

1.finding the shortcodes functions and all functions that they depend on.
2.find any js/jQuery functions used by the shortcodes.
3.find any css and images that are used by the shortcodes your theme.

Good luck,