PilotPress > Where to add shortcodes

Hi X!

I am working on a site that has Ontraport + PilotPress added. It’s an online course site so you see more or less depending on what you pay.

Right now they have a page with accordions and videos in those accordions. Certain accordion sections have certain visibility. I’m wondering, where do I place the short code? In the accordion text itself… in the section? I’m clueless. http://hyperbitsmusic.com/live-sessions-2/

[show_if has_one=“2016-SMC”]
[show_if has_one=“2016-FMC”]
etc.

thanks!!

Hi There,

In the text area if what you are trying to achieve is display the content when you click accordion heading. See this: https://screencast-o-matic.com/watch/cbihbzl2aU

Hi X,

It doesn’t seem to work, though I love how simple that could be. Here’s an image showing where I added them. What am I missing?

If you look at the page, you shouldn’t be able to see anything because you don’t have access: http://hyperbitsmusic.com/live-sessions-2/

I know there’s an under construction page, login credentials are above.

Hi There,

I can see it is not showing up and there’s error on the console:

That is from your FB fixel code. Please fixed that first. If the issue persists after that, we might be seeing cache content. Did you clear cache before disabling WP FASTEST CACHE plugin? It is imperative to clear cache so we can see the latest code and not stale content.

Good to know about Pixel! thanks!

I think more of the issues is formatting the shortcode. I am now able to hide a Custom Headline with the “show if” shortcode however I am unable to format the accordion so I can also hide it. It’s my understanding that I have to add it in a raw content box and I can’t just hide an accordion with a short code.

So, here we go again, I’m an element gal not a shortcode gal SO struggling to write the short code for a group of accordions. It needs a class (ac2), title, content (text or iframe), and access visibility.

I’d like to remake the look exactly as this page I already did with elements. Here’s my totally botched attempt. I think I am failing at adding the class and adding the access visibility.

[show_if has_one=“2016-SMC”][accordion][x_accordion_item class=“ac2”][accordion_item title=“LIVE SESSIONS” item_class=“ac2” open=“false”][/accordion_item][/accordion][/show_if]

Oh my! I finally figured it out… here it is if anyone needs it in the future:

[accordion class=“ac2”][show_if has_one=“2016-SMC”][accordion_item title=“LIVE SESSIONS” open=“false”][/accordion_item][/show_if][/accordion]

Hello There,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.