Hi. I currently have a sidebar code where I can make the dvb4 default sidebar appear on what style I want it to appear on. Instead of it appearing on all styles. The code is this:
. I currently have it set to appear only with the default vb4 style. But I want to use it on 3 of my 8 styles. So I learned I'd have to add in_array to the code. Which would look like this?
I tested this ^....and it didn't work. So if someone could clean this code up for me or arrange it properly so I get the desired effect?
Code:
if ($style['styleid'] != 14) $show['sidebar'] = false;
Code:
if (in_array($style['styleid'] array(14.16) $show['sidebar'] = false;
Comment