Jump to content
Sign in to follow this  
riccardop

Problems with shortcodes on banners

Recommended Posts

riccardop

Hi, When I enter a nextgen gallery short code in the Banner Media field (Add HTML Media for the banner, e.g. Youtube embed code.) I then see the short code on the page rather then the gallery. If I inser the same short code in the Feature Media HTML field (Youtube, Flash etc... Feature Page Media HTML or Embed Code.) then the gallery shows fine in the page. Any idea on how to fix it? thanks Riccardo

Share this post


Link to post
Share on other sites
riccardop

I tried adding add_filter( 'banner_media', 'do_shortcode'); to my functions.php but didn't work

Share this post


Link to post
Share on other sites
cmunns

what if you wrapped your shortcode in this? do_shortcode('[your-code]');

Share this post


Link to post
Share on other sites
riccardop

Thanks Adam, but unfortunately didn't work for me. What I see now on the page is: do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]'); Riccardo

Share this post


Link to post
Share on other sites
kastelic

Assuming your still doing this in functions.php not in the banner edit area try: echo do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]');

Share this post


Link to post
Share on other sites
riccardop

Opps, I was actually putting it in the Banner Media field. I tried to put it in the functions.php of my child theme. I tried with both: do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]'); and them echo do_shortcode('[nggallery id=13 sc_id="sc1" sc_id="sc1"]'); with the former I then see printed on the page [nggallery id=13 sc_id="sc1" sc_id="sc1"] In the latter I see the gallery printed above the header of every single page. Is there a way to make the banner section accept shortcodes like the other sections in Platform Pro? Thanks. All the best Riccardo

Share this post


Link to post
Share on other sites
catrina

I'm not sure if shortcode can be put enabled in the banner media section since only HTML would be allowed. There is no HTML that can be added instead?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
riccardop

Thanks Catrina, I need to place a nextgen gallery into a banner section and the only way to do this that I know is through shortcode. I don't think there is a way to do it through simple HTML. I'm able to do this with feature sections but I'm having problem with banner sections. All the best Riccardo

Share this post


Link to post
Share on other sites
riccardop

Thanks Catrina, "add_shortcode" Didn't work. Th strange thing is that I can add shortcodes to the banner title or to the banner content with no problems but not into the banner media that seems the most obvious place to inser shortcodes. It seems there is a bug in the platform pro code.

Share this post


Link to post
Share on other sites
catrina

I'm not sure if it's a bug, but it's an irregularity. Have you tried deactivating your plugins?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
riccardop

Hi, I tried deactivating all the plugins and no luck. Riccardo

Share this post


Link to post
Share on other sites
Simon

FIxed in 1.5.2!! Will be released soon.

Share this post


Link to post
Share on other sites
riccardop

thanks, That is great news! awesome theme by the way!

Share this post


Link to post
Share on other sites
riccardop

Just updated to 1.5.2. Shortcodes on banner work like a charm!!! Thanks Simon!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×