Jump to content

Archived

This topic is now archived and is closed to further replies.

julianyoung

Shortcodes within a component

Recommended Posts

julianyoung    1
julianyoung

I'm trying to install a third party slider and display it on the front page. I want to keep the front page as "your latest posts" and not create a new page for it

Is there anyway I can embed the shortcode in a component on the front screen?

 

Answer: Done, I simply popped the short code within a text box component and it worked a treat =)

 

  • Like 1

Share this post


Link to post
Share on other sites
batman    389
batman

Hi julianyoung

 

It's wonderful when somebody ask and answer their own questions.

Thanks for sharing the trick with all.

;)


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
magichew    2
magichew

That was the answer that I was looking for but unfortunately its not working out like that for me. Adding the shortcode into a text box just renders the shortcode text itself. If the shortcode is in the post loop element it renders fine.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

magichew

What shortcode are you using ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
magichew    2
magichew

magichew

What shortcode are you using ?

I'm using Birchpress Schduler short codes.

 

It actually doesn't just show the short code as I type it. It shows some extra text.

 

The short code I've put in the text box is [bp-scheduler-bookingform]. The text that appears is birchpress_shortcode_5212b58f365e9

 

I'd love to get to the bottom of this as this is the last thing holding up deployment of the site.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Can you try adding the shortcode to a text widget and see if it works.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
julianyoung    1
julianyoung

Just in case it helps here is some more info about my setup and solution.

 

I added a Text Area Component in the Main Area of a full screen section (Not in the header or Footer)

 

Not on a page, this was done on the home screen where my settings are set as 'your latest posts'

 

The plugin I am using is WP Layer Slider

Share this post


Link to post
Share on other sites
magichew    2
magichew

I've tried a few different variations. In a section with columns, in a one column section.

 

It does work with a sidebar section and a text widget but this is not the functionality I want. That sidebar would be throughout the whole site. I need to customise the shot code on every page to show the options that I need and I can't do that with a sidebar text widget.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi, I have reported this as a possible bug.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
etcio+    10
etcio

I'm using Birchpress Schduler short codes.

 

It actually doesn't just show the short code as I type it. It shows some extra text.

 

The short code I've put in the text box is [bp-scheduler-bookingform]. The text that appears is birchpress_shortcode_5212b58f365e9

 

I'd love to get to the bottom of this as this is the last thing holding up deployment of the site.

 

That's a bug in the shortcode. If it wasn't rendering the shortcode, what'd you see would be [bp-scheduler-bookingform] not birchpress_shortcode_5212b58f365e9

Share this post


Link to post
Share on other sites
barkingsheltie+    7
barkingsheltie

Im using Layerslider, and inserting the shortcode into a textbox in a section. Works. 

 

I also had Sliderpro, which worked similarly (using shortcode), but seemed to be very slow. Of note, when tried to use Layerslider, it loaded, but failed to load slides and indicated JQuery out of date. Error note suggested installing the plugin, jQuery updater. Once installed, slider works fine. 

 

What I am struggling with (and prob not appropriate to post here), is to adjust the padding between the slider, and both the header above (which has two columns, one which has mediabox, the other ubermenu), and the padding just below the slider.

 

I would say Im a beginner with CSS. It might helpful someday for someone to publish the typical classes and div's that users might first look at when customizing new installs. For instance, it appears Mediabox has height set at 200px; if used in branding or for logo, that is too big. Naively I suggest this - perhaps it (the list) is not realistic, or helpful. 


"The first principle is that you must not fool yourself and you are the easiest person to fool"
Richard P. Feynman

Share this post


Link to post
Share on other sites
magichew    2
magichew

I don't know what to say. It's great that all of your short codes are working fine but mine are not. And so short codes don't 100% work in a text box section.

 

I'm not placing any blame (it may well be that Birchpress have to change something to work with DMS but short codes are not working in a text box for me.

 

As I've said, they work in the post content and in a text widget in the side bar, not in a text box section or a media box section.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Let's see if Birchpress is the cause.  Can you try the same code using this plugin to convert to shortcode?  http://wordpress.org/plugins/my-shortcodes/

 

Tell us the result.  Thanks.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
magichew    2
magichew

I've added the Birchpress short code to that plug in and used the short code generated by that plugin and added it to a text widget and I have achieved the same result.

 

I don't know what code the short code should be adding. Perhaps I should be adding that the the My Shortcodes plug in rather than just the Birchpress short code?

Share this post


Link to post
Share on other sites
Rob    547
Rob

It's likely your product is just not compatible Nick.  I purchased a 3rd party slider and it didn't work, also using shortcode.  Then I got another slider from WP.org and it worked fine. It's impossible for us to tell whether a slider or any plugin will definitively work.

 

Some developers pay attention to the latest technologies. Others, including those making premium products, just don't.  It's a shame.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
magichew    2
magichew

Rob Do you mean me when you say Nick? Is there something that I can tell the folks at Birchpress to add into their plug in to make it compatible?

Share this post


Link to post
Share on other sites
Rob    547
Rob

Yes and Yes.  When I asked the folks at Sevenspark to create a section for DMS for their product, Ubermenu, they downloaded the free version of DMS and followed our docs. Within 2 days we had a section.   Birchpress should do the same. They need to upgrade, I suspect, their javascript, jquery and/or ajax code to meet our standard.  Certainly by testing DMS on their own servers, they'd be able to see the problem you're experiencing, directly, and identify its cause and cure.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • bnapoli
      By bnapoli+
      On my site www.anewbeginning.com the "toggle" function mysteriously stopped working.  I have tried all browsers, tried disabling plugins, removing all the relevant CSS but still cant understand why it isn't working.
      The toggle is placed on this page: http://anewbeginning.com/?page_id=15965 and http://anewbeginning.com/?page_id=10779 but it does not display.
      On my other Platform5 websites, that exact code works fine: see here http://4aa.d11.myftpupload.com/?page_id=123
      Code is the same. Please help, thank you!
    • micstepl
      By micstepl+
      Pagelines seems to "disallow" the (a) usage and/or (display) of shortcodes.
      Specifically I need shortcodes in "description" of "tag/catagory" in order to display images/fontawsome, before a category.
      Please can you provide a fix for me to allow. 
    • mrhinsh
      By mrhinsh
      Guys,
       The ProPricing plugin does not seam to render shortcodes.

       
      I am using WP-Types, and as you can see the shortcode is rendered in the "Elements" but not in the "ProPricing".
      Can we get a fix?
    • micstepl
      By micstepl+
      @Simon I do have an urgent request for a client Projekt. After migrating (before it worked) my site to anpother Server I get problems will all ShortCode Sections.
      See this Problem here: http://www.baumeister-scheidl.at/map-try
      thanks in advance!
      Maybe ist a User (MY) fault.
    • globalnative
      By globalnative+
      Hi everyone
      I used to love the Pagelines DMS shortcodes for creating tabs and accordians. 
      It doesn't seem to work in this version of pagelines 5?
      Is there another way to get that functional?
      Thank you kindly
      Nate
×