- This topic has 8 replies, 2 voices, and was last updated 3 years, 8 months ago by
Tom.
-
AuthorPosts
-
September 1, 2018 at 4:00 pm #666245
Jason
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 #666323Tom
Lead DeveloperLead DeveloperSo 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 1, 2018 at 7:52 pm #666325Jason
You got it correct, sir. π
September 1, 2018 at 7:56 pm #666327Tom
Lead DeveloperLead DeveloperI 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 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 #666711Tom
Lead DeveloperLead DeveloperI’m curious what the issue is. If you ever find the time to nudge them, definitely let me know what they say π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 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 #666977Tom
Lead DeveloperLead DeveloperVery strange – I’ll try to find time to test it as well.
Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.