I am so sorry if someone asked before but i coldn't find in the form.
So,
I want to use different css class in category_item.php file for each layout grid.
First tried to call each grid in the file like this but didn't work. It gives blank page.
Than i tried to copy category_item.php and name it category_item-2.php and than applied this code in to category.php under the link's grid part.
Deleted this part
than added this
It works fine but gives weird character in the its div.
imgur.com/a/SuifPqd
I coldn't find the reason from where those "1" is coming.
I hope someone can help me.
Regards
So,
I want to use different css class in category_item.php file for each layout grid.
First tried to call each grid in the file like this but didn't work. It gives blank page.
<?php if ((isset($this->leading) || isset($this->primary) || isset($this->secondary) || isset($this->links)) && (count($this->leading) || count($this->primary) || count($this->secondary) || count($this->links))) : ?>
<?php if (isset($this->links) && count($this->links)) : ?>
<!-- links items here -->
<?php else : ?>
<!-- rest items here -->
<?php endif; ?>
<?php endif; ?>Than i tried to copy category_item.php and name it category_item-2.php and than applied this code in to category.php under the link's grid part.
Deleted this part
<?php // Load category_item.php by default
$this->item = $item;
echo $this->loadTemplate('item'); ?>than added this
<?php // Load category_item.php by default
$this->item = $item;
echo include 'category_item-2.php'; ?>It works fine but gives weird character in the its div.
imgur.com/a/SuifPqd
I coldn't find the reason from where those "1" is coming.
I hope someone can help me.
Regards
Edited 4 years 4 weeks ago by Okan
