Post by bryansummers » Fri Apr 13, 2012 1:20 pm

is it possible to remove the grid link on the products page. I dont want the ability to switch views, currently list is the default and would like to disable or hid the grid option.

thanks

Bryan

Newbie

Posts

Joined
Fri Jan 07, 2011 12:51 pm

Post by MarketInSG » Fri Apr 13, 2012 1:51 pm

open file catalog/view/theme/default/template/product/category.tpl & also search.tpl & also manufacturer_info.tpl

Find & remove

Code: Select all

<div class="display"><b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display('grid');"><?php echo $text_grid; ?></a></div>


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by Iamdbat » Sat Jun 20, 2015 8:06 am

Thanks Market

But is the Javascript still running for the Display function - for a novice how would you strip it right out to make the code tight

Ie - remove unnecessary Java / HTML and CSS and or just replace the DISPLAY:List/GRID with a small message like

"Need Support?: - Give us a call

instead?

Of course it would be far better if Opencart had a reasonable looking grid in the first place which would make trying to change things not needed in the first place

Active Member

Posts

Joined
Sat Jan 28, 2012 7:32 am
Who is online

Users browsing this forum: No registered users and 8 guests