Remove icons

bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2012-11-03 09:28

Hi,

I want to remove "View full size" and "Photo details" in sidebar:

[img]http://gallery.menalto.com/files/1_28.jpg[/img]

How can I do this?

Thanks.

AttachmentSize
1.jpg2.58 KB
 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2012-11-03 22:16

For "view full size" just remove the view full size permission.

For "Photo details" add this to the bottom of your theme's screen.css file:
#g-exifdata-link{display:none}

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sun, 2012-11-04 00:02

Hi tempg,

Second problem resolved.

But in first question, I want allow users open full size image by clicking on resized photo, but hide that icon.

Thanks.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-11-09 17:34

Need a url to see if that item has a id or a unique class then you can remove it with .css
or you might be able to use jquery to remove it as well if there is something unique about it.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
morganfeldon@gm...
morganfeldon@gmail.com's picture

Joined: 2009-06-22
Posts: 31
Posted: Wed, 2012-11-28 14:23

If you want to completely remove that link from the Sidebar, it's in:

\themes\YOURTHEME\views\photo.html.php

Remove these lines:

Quote:
<div id="g-photo">
<?= $theme->resize_top($item) ?>
<? if (access::can("view_full", $item)): ?>
<a href="<?= $item->file_url() ?>" class="g-fullsize-link" title="<?= t("View full size")->for_html_attr() ?>">
<? endif ?>
<?= $item->resize_img(array("id" => "g-item-id-{$item->id}", "class" => "g-resize")) ?>
<? if (access::can("view_full", $item)): ?>
</a>
<? endif ?>
<?= $theme->resize_bottom($item) ?>
</div>

If you would like a less brute-force method, you could go into \themes\YOURTHEME\css\screen.css and add display:none; to the .g-fullsize-link class:

Quote:
#g-view-menu .g-fullsize-link {
background-image: url('../images/ico-view-fullsize.png');
display: none;
}

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2012-11-28 23:25

Thanks, @morganfeldon.

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sun, 2013-03-17 09:20

I used custom code CSS above.

Icons now is not available in sidebar.

But if view source code in photo page, I still see:

Quote:
<div id="g-main">
<div id="g-main-in">
<div id="g-view-menu" class="g-buttonset g-buttonset-shift">
<ul class="g-menu">
<li>
<a class="g-menu-link g-fullsize-link"
href="/var/albums/abcd/file-name.jpg"
title="View full size">
View full size </a>
</li>
<li>
<a id='g-comments-link' class="g-menu-link "
href="#comments"
title="View comments on this item">
View comments on this item </a>
</li>
</ul>

</div>

So how to complete remove this?

Thanks.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sun, 2013-03-17 17:04
bigu_c wrote:
I used custom code CSS above.

CSs doesn't remove code from the page.

http://galleryproject.org/node/109561#comment-399622

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Mon, 2013-03-18 00:27

And code morganfeldon posted above is not available on GreyDragon theme.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Mon, 2013-03-18 13:51

Then you'd have to sort through your specific theme to see where the links are created.

If the CSS works, the code doesn't really matter; the user still won't see the links/icons/whatever is there.

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Wed, 2013-03-20 06:39

Here is photo file, please tell me which lines I have to remove.

Thank you.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-03-20 13:27
tempg wrote:
If the CSS works, the code doesn't really matter; the user still won't see the links/icons/whatever is there.

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Wed, 2013-03-20 13:34
tempg wrote:
tempg wrote:
If the CSS works, the code doesn't really matter; the user still won't see the links/icons/whatever is there.

But Google Bots reads them, then index my images with wrong title.