The Responsive theme has a custom home page option, with a feature content div that is defaulted to an image. I cannot get shortcode for my slideshow plugin to work in this. I can insert html just fine, but no shortcode. Also, major noob here.

  • What exactly are you doing to try to get your shortcode to work? – s_ha_dum Apr 29 '13 at 17:15
  • @s_ha_dum - I'm trying to put a slideshow where the featured content would be on the custom homepage. For some reason the shortcode for the slideshow plugin doesn't work in it. Here's a post about what I'm working with. – Jason McNamara Apr 29 '13 at 17:38
  • 2
    @JasonMcNamara So you are posting the slideshow shortcode inside that Featured Content box? We don't know how the plugin was written, but it's likely that the featured content box does not accept shortcodes. – gdaniel Apr 29 '13 at 17:56
  • "I'm trying to put a slideshow where the featured content would be"-- I got that @Jason but didn't know how your theme works. That link suggests the answer though. – s_ha_dum Apr 29 '13 at 17:58

I suspect this is going to require a theme edit.

I am assuming that your shortcode is visible on the front-- something like [gallery]-- but not processed as a shortcode. If that is the case, you will need to find where that content is output in the theme and pass it through do_shortcode before echoing it. That could be more or less difficult depending upon how the theme is written.

If the shortcode does not make it through to the front page at all, then I have to assume that shortcodes are stripped from that content when it is saved. That is a tougher fix and would require more information.

It is possible that the theme has a hook you can use to avoid a direct theme edit.

| improve this answer | |

If you want to execute a shortcode from within a child-theme instead of within the content of a page, you can invoke it with a special function:

<?php echo do_shortcode("[shortcode]"); ?>

The code should be pasted in the active child-theme's functions.php

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.