Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7565621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:12:05+00:00 2026-05-30T14:12:05+00:00

I got this gallery. I want to apply a magnifying glass (or something) when

  • 0

I got this gallery. I want to apply a magnifying glass (or something) when you hover the image, so the user easily can see that the image can get bigger.
The effect I want is similar with this one.

I’ve been looking in the different files in wordpress, and my problem is that I just CAN’T add
<span class="roll" ></span> inside a link, with the image.

If anyone knows how to do this, please tell. 🙂

Thanks.

I’ve put this in footer.php

<script>
//$('a.image:link').prepend('<span class="roll"></span>');
$('.gallery-icon a:link').each(function() {
     $(this).prepend('<span class="roll"></span>');
     // OR
     //$(this).wrapInner('<span class="roll"></span>');
});
</script>

<script>
$(function() {
// OPACITY OF BUTTON SET TO 0%
$(".roll").css("opacity","0");

// ON MOUSE OVER
$(".roll").hover(function () {

// SET OPACITY TO 70%
$(this).stop().animate({
opacity: .7
}, "slow");
},

// ON MOUSE OUT
function () {

// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 1
}, "slow");
});
});
</script>

and this in the css.

span.roll {
    background:url(images/zoom.png) center center no-repeat #000;
    height: 120px;
    position: absolute;
    width: 150px;
    z-index: 7000;
    -webkit-box-shadow: 0px 0px 4px #ff0066;
    -moz-box-shadow: 0px 0px 4px  #ff0066;
    box-shadow: 0px 0px 4px  #ff0066;
}

When I look in the code from my webdeveloper it looks like this:
image-code

It’s like wordpress overwrites all my css, etc..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:12:07+00:00Added an answer on May 30, 2026 at 2:12 pm

    how about using jQuery to append(prepend) a span to your link?
    without seeing your code, heres a small teaser

    $('.IMAGELINK').each(function() {
         $(this).prepend('<span class="roll"></span>');
         // OR
         $(this).wrapInner('<span class="roll"></span>');
    });
    

    with javascript disabled the zoom function would be disabled
    and so this span would’nt be added to the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an ajax loaded image gallery that loads an image to the dom
Ive got an assignment to create an image gallery using flickr - this has
I've got an image gallery that is showing one image per row inside of
I got an iframe on my page, and a menu that the user can
I am trying to understand this javascript-code I got that I'm supposed to use
I got this HTML Code: <div class=gallery id=gallery_x> <p> <a href=http://a-dynamic-link.com>image1</a> <a href=http://another-dynamic-link-com>image2</a> </p>
I have got a PHP image gallery, which has about 20000 photo files. I
I've already got a background image. But i'm builid a gallery which would have
Can anyone help me achieve this: So basically, I have a gallery system, let's
So I'm really stuck at this point. In my case I've got an gallery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.