Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

How to hide the switch view panel

  • Iwona
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 years 4 months ago #239 by Iwona
How to hide the switch view panel was created by Iwona
How to hide the switch view panel in featured product grid?
I don't want the user switch view. I want the grid view was the only view in my store.

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #240 by boggler
Replied by boggler on topic How to hide the switch view panel
Hello,

the easiest thing is probably to just hide the switch using css. You can edit the module file assets/gallery.css, change
span.clsSwitch {
	color:#666666;
	background-color:#cccccc;
	font-size:1.1em;
	padding:4px;
}

to
span.clsSwitch {
	color:#666666;
	background-color:#cccccc;
	font-size:1.1em;
	padding:4px;
        display: none;
}

Please Log in or Create an account to join the conversation.

  • Iwona
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 years 3 months ago #252 by Iwona
Replied by Iwona on topic How to hide the switch view panel
Thank You, but this solution resolved my problem in a half way. After this I still see small images to switch view (Img1, Img2). In google chrome browser I see two images to switch view, but in Mozilla firefox I see only one of this. See attachment. What shoul I do?
Attachments:

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #253 by boggler
Replied by boggler on topic How to hide the switch view panel
Your web browser may be caching the stylesheet, you should clear the cache for Google chrome (use the menu option tools->clear browing data)

Please Log in or Create an account to join the conversation.

  • Iwona
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 years 3 months ago #254 by Iwona
Replied by Iwona on topic How to hide the switch view panel
No It's not brawser cache.
Is see that solution in css display:none; in span.clsSwitch{} don't hide the code
<img id="Img2" name="Img1" class="view" src="<?php echo $baseurl."modules/mod_virtuemart_featureprodgrid/assets/pro_img2_normal.jpg"; ?>
in module/tmpl/default.php

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #257 by boggler
Replied by boggler on topic How to hide the switch view panel
Nevertheless you are making a mistake somewhere, the code for the buttons is contained in the span tag with the class clsSwitch, giving it a css style of display:none will hide it without a doubt.

If for some reason you cannot make it work you can try deleting the code on lines 4-6 from the template entirely.
<span class="clsSwitch">Switch View <a href="javasc*ript:showGrid('<?php echo $uniqid; ?>','gridview','listview');" title="Grid View"><img id="Img1" name="Img2" class="view" src="<?php
                        echo $baseurl."modules/mod_virtuemart_featureprodgrid/assets/pro_img1gallery.jpg"; ?>" width="15" height="13"/>
                    </a><a href="javasc*ript:showGrid('<?php echo $uniqid; ?>','listview','gridview');" title="List View"><img id="Img2" name="Img1" class="view" src="<?php echo $baseurl."modules/mod_virtuemart_featureprodgrid/assets/pro_img2_normal.jpg"; ?>"/></a></span><br /><br />

Please Log in or Create an account to join the conversation.

Moderators: boggler
Time to create page: 0.247 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.