Widgets were removed. I posted a workaround here: https://forum.tagdiv.com/topic/so-how-do-we-handle-widgets-now/#post-297830
Can you guys just allow proper PHP to be run through that part? Or make a widget that allows for it?
That … doesn’t really help. That’s just putting articles on the side.
I did find a workaround though, folks. I got a plugin called Widget Shortcode, from there you can use the element, “Text with title”.
Press Edit Content and get the shortcode for the widget and place it in there.
You can find the shortcode in the Appearance>Widgets section, just press on the widget you want to use and you’ll see it at the bottom of the drop down.
I’ve tested this in a widget, and it works as intended. Something in the Header Ad area, both in the backened and using TD editor, is blocking the PHP from connecting properly to the plugin.
Hi Calin,
While it shows up, part of the PHP code is using a plugin that’s called Twitch Conditional. That plugin hides that video from showing up if we’re not live. If we are, then it shows up.
So what you showed me in https://www.screencast.com/t/K3cZ33YJ0cE0 should not even show up. Either it’s there when I’m live or not when I’m offline.
This worked fine up until the update.
It’s not reading the PHP correctly, I’m getting artifacts.
The code is <?php if (twitch_is_live('moarcookies')) { ?>
<div align="center" style="background-color:#c1711b; color:#fff; padding-left:10px; padding-right:10px;">See when we’re live! Join in the conversation and click on the Twitch icon in the lower right of the stream!</div><br /><div id="twitch-embed"></div>
<script src="https://embed.twitch.tv/embed/v1.js"></script>
<script type="text/javascript">
new Twitch.Embed("twitch-embed", {
width: "100%",
height: 480,
channel: "moarcookies",
allowfullscreen: true,
});
</script>
<?php } else { ?>
<?php } ?>
This, before the 9.7 update, worked fine and hid the content if I wasn’t live. Now it just shows up regardless.
Thanks. This worked. I just needed to add a space into the header ad box to enable it once the code was in the header.
Can we get these buttons?
Thank you, Simon. I went with the per category method and it worked great.
Nvm, just gonna forget about that theme.