Page 1 of 1

Banners Diferentes

Posted: Thu Jun 28, 2018 7:19 pm
by silvalucas90
Fala galera beleza?

Estou tentando usar um banner diferente no header para cada categoria tentei usar esse codigo porem encontro um erro

Code: Select all

<?php if (isset($category_id) && $category_id == '59' ) { ?>
<img class="img-responsive banner" src="image/agrega/banner1.jpg" alt="">
<?php } ?>
erro: Undefined variable: category_id

Re: Banners Diferentes

Posted: Thu Jun 28, 2018 7:51 pm
by straightlight
Solution posted here: viewtopic.php?f=190&t=205359#p727768 . Topic re-created (different language but still the same request).