- This topic has 8 replies, 2 voices, and was last updated 3 years, 8 months ago by Tom.
September 1, 2018 at 4:00 pm #666245Jason
The header and hooks both work with Toolset shortcodes, no problems whatsoever.
I just tried to introduce conditional output and neither hook nor header will not output the toolset shortcode within the condition. The conditional stuff works in both header / hooks, as I’ve put normal text in there and there isn’t any problem at all with that.
I’d like to Tom to respond to this as he has been helping me with this Toolset stuff these past few weeks (If possible).
One odd thing is.. when I put a hook and head both in there, the header would pull the shortcode out of the logic but the hook will not. Somehow them both being there allows the header to work. ‘shrug’. 🙂
As always.. LOVE GP! and appreciate any help with this. \m/GeneratePress 2.1.4GP Premium 1.7.2September 1, 2018 at 7:49 pm #666323TomLead DeveloperLead Developer
So the conditions always work, yes?
Shortcodes also work.
However, when you add one of the shortcodes inside a condition, the shortcode doesn’t work?
Am I getting it right?
Let me know 🙂September 1, 2018 at 7:52 pm #666325Jason
You got it correct, sir. 🙂September 1, 2018 at 7:56 pm #666327TomLead DeveloperLead Developer
I suppose that would depend on how they’re implementing their conditionals..
The Header and Hooks just run the content through
do_shortcode()to execute them.
It may be worth asking Toolset support to give it a test – they might have an idea of what’s going on.September 1, 2018 at 9:27 pm #666349Jason
Works on three other themes (X, Divi, The 7, but not in your hook or header. Never had an issue with their conditional stuff until now. I had to ask. I’ll just figure out another way or learn php. No sweat. Still much love and thanks for looking into what you have. Mucho gratzi. ❤️❤️👍September 2, 2018 at 8:45 am #666711TomLead DeveloperLead DeveloperSeptember 2, 2018 at 9:12 am #666743Jason
For you.. I will find out. Lol. But it’ll be a bit as I am already harassing them about their ajax uploads in their forms.. not letting my MEOW image re-namer work.. as well as not being able to upload more than one image at a time.. which is a total buzz kill. 🙂 I’ll be back in a week or so and let you know.September 2, 2018 at 10:03 am #666781Jason
I should probably also mention, just for s’s and giggles.. that I have conditional stuff everywhere else with shortcodes in them all through this site and everything works everywhere, without any problems whatsoever. That’s why I started here.. as it just doesn’t make any sense.September 2, 2018 at 7:29 pm #666977
- You must be logged in to reply to this topic.