Archived

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

  • 0

Call A Section Via Shortcode

Question

Posted · Report post

Is there a way to call a Section via shortcode, like http://wordpress.org...ze-pages-light/ allows me to call a widget via shortcode?

Example of Desired Section via Shortcode:


This is my collection of Boxes

[plboxes]

I hope you liked my collection of Boxes.

Example of Widget via Shortcode (via the plugin linked to above):

This is my Search Box widget area.

[otw_is sidebar=otw-sidebar-1]

Use it to search my site.

Thank you.

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

Where are you trying to call the section? Inside a widget?

Share this post


Link to post
Share on other sites

Posted · Report post

If, for example, I wanted a Hero Section within the page content area, I could use something like this if Sections were able to be called via shortcode:


This is my Hero section

[plhero]

I hope you liked my Hero section.

The talk about widgets was just saying that it's possible with widgets (not PageLines-specific) and that I'd like the same sort of functionality in PageLines for the Sections.

Thank you.

Share this post


Link to post
Share on other sites

Posted · Report post

There are no shortcodes for page sections. You'll either need to add the section below or above the content area section. If you need to add a hero-like element to the content area, there may be a suitable HTML workaround for it.

Share this post


Link to post
Share on other sites

Posted · Report post

Thank you for confirming there are no shortcodes for sections. Can you or I submit that to Tracking as a feature request?

Could you tell me / provide the code for the HTML workaround you're referring to?

Thank you.

Share this post


Link to post
Share on other sites

Posted · Report post

Please dont submit it, sections use classes and child classes. They just wont work as shortcodes.

Share this post


Link to post
Share on other sites

Posted · Report post

What do you plan on having in your Hero section? That way I can point you to the right tutorials.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks, Simon. Bummer.

Catrina, any generic example is fine. Thank you.

Share this post


Link to post
Share on other sites

Posted · Report post

Hero is used primarily to add content that has a button.

If you want to use the button functionality used in Hero, you can add buttons using the buttom shortcodes available here: http://demo.pagelines.me/tools/

Share this post


Link to post
Share on other sites