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 8902911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:44:05+00:00 2026-06-15T01:44:05+00:00

I am having trouble making link. I have a slide in a Magento store.

  • 0

I am having trouble making link.

I have a slide in a Magento store. Theme is responsive and slider is javascript.

This is the code i have:

<div id="camera_wrap" class="camera_wrap camera_orange_skin">
<div data-thumb="{{skin url='images/camera/slides/thumbs/slide1-thumb.png'}}" data-src {{skin url='images/camera/slides/b1.jpg'}}"></div>
</div>

Slider is showing picture and assosiated thumbnail. I want to make slider clickable but i cant get it working. Any ideas?
If i place

onclick="location.href='newurl.html';"

inside div, image is not showing 🙁
Any suggestions?

  • 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-06-15T01:44:06+00:00Added an answer on June 15, 2026 at 1:44 am

    Don’t use inline onclicks… Assign your div a class and a custom data attribute. Example:

    <div class="onclick-link" data-href="mylink.html">Some content here...</div>
    

    And then:

    $('.onclick-link').unbind('click').click(function() {
        window.location.href = $(this).attr('data-href');
    });
    

    This can be used for all div’s you want to turn into a link, bu assigning the class and the data-href attribute.

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

Sidebar

Related Questions

Here i have some code from my website I'm making. I'm having trouble styling
I'm having trouble making python print out texts properly aligned. I have tried everything
I'm having trouble with the way I designed this little report I'm making. Is
I have just started making web pages and I'm having lots of trouble with
I'm having trouble making this work: $(function() { $(.button).click(function() { var newentry = $(input#entry).val();
I am having trouble making this work and am looking for some help. Currently
I'm having trouble making this mouseover event repeatable. Meaning each time you mouseover, then
i have used observed_field for arrays of data... but i am having trouble making
I'm having trouble making php usort work. I fetch this from DB: Array (
i am rather new to Javascript and i am having trouble making a function

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.