Hi,
I’m trying to use a condition to show or hide a sidebar, depending upon the value returned from a function. At the moment, the function simply returns the string ‘show’:
function sidebar_display()
{
return 'show';
}
If I echo this function in a code block it shows the return value, as expected:
However, when I try to use this in a condition on my “sidebar” block, the content is not showing on the front end, where I would expect it to display:
Am I missing something really obvious? Any help would be gratefully received.
Thanks