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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:24:40+00:00 2026-06-01T22:24:40+00:00

From the top: I’m using the Yin & Yang WP theme (‘ http://onioneyethemes.com/yin-and-yang/ ‘)

  • 0

From the top:

I’m using the Yin & Yang WP theme (‘http://onioneyethemes.com/yin-and-yang/‘) for my portfolio and I’ve run into a little bit of a snag with/on the jQ side of things. I’ve copied the code over into a separate template to use in the same fashion, but I want the thumbnail links to open external pages. If the links are internal – it’s fantastic. External ..not so much. It hangs.

You can see a ‘working’ [not really] version here: http://ii.colorspace.am/events

I rifled through the code and systematically pulled out js references to find the offender.

This seems to be the culprit: http://ii.colorspace.am/wp/wp-content/themes/yin_and_yang/js/jquery.easing.1.3.js?ver=3.3.1 BUT I could be totally off the mark.

Unfortunately, it also seems to control the slider functions (on the thumbnail/drop down contact).

If anyone can tell me what I need to do to allow me to link externally (be it tweak a little code or duplicate the easing file and make some modifications), that’d be greatly appreciated.

I’m guessing the solution can be found in here http://css-tricks.com/snippets/jquery/smooth-scrolling/ but it’s all greek to me, so I wouldn’t have the slightest idea what to do with it 🙁

  • 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-01T22:24:41+00:00Added an answer on June 1, 2026 at 10:24 pm

    It’s because of cross-origin policy. You can’t open stuff via ajax unless hosts, ports and protocols match. If you can’t get events.colorspace.am to be ii.colorspace.am there’s two things you can try:

    1. on ii.colorspace.am host a .php file that acts as a proxy. Basically it would only contain <?php die(file_get_contents($_GET['url'])); ?> and on top of that some basic validation to make sure that $_GET['url'] is actually a valid address within events.colorspace.am. After you put this file on, you would have to update the link on the gallery so that instead of http://events.colorspace.am/g/20120331 it will be http://ii.colorspace.am/file.php?url=http://events.colorspace.am/g/20120331. So either this, or:

    2. Redirect the user. If the gallery link allows you to enter javascript:window.open('http://events.colorspace.am/g/20120331') this would be easy. But in reality some pop-up blockers might cancel that and you’re safer residing to method 1, but replacing the die(file_get_contents(...)) code with this one

      <script> window.location.href=<?php echo json_encode($_GET['url']); ?>; </script> Please wait you will be redirected...
      

      Which should basically redirect the user.

    /EDIT:

    Finally understood the question. Here’s what you need to do:

    1. On <a class="project-link" href="http://events.colorspace.am/...> add the target="_blank" attribute.
    2. Open in Notepad or whatever /wp-content/themes/yin_and_yang/js/jquery.quicksand.init.js
    3. Towards the start of the file locate a line saying

      eQgetProjectViaAjax = function(e) { 
      
    4. Immediately below it, add these lines:

      var href = $(this).attr('href');
      if(href.indexOf('://')!==-1){
          href = href.split('://');
          host = window.location.href.split('://');
          if(href[0]!==host[0]) return setTimeout(function(){ $('#overlay').hide(); },500);
      
          href = href[1].split('/');
          host = host[1].split('/');
          if(href[0]!==host[0]) return setTimeout(function(){ $('#overlay').hide(); },500);
      }
      
    5. Save everything and try it again. It will work this time.

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

Sidebar

Related Questions

I'm using the Accordion from the jQuery UI library (http://jqueryui.com/demos/accordion/) as a sidebar. When
I am using SnowFall app, in which a image is falling from top of
I wrote a sample code for image transforming from top to bottom, by using
jqGrid Edit form invoked using Edit button from top toolbar is defined as grid.navGrid(#grid_toppager,
I've got an ItemsControl which fills from top to bottom, but I can't get
I have to move Ant image from top to bottom. On touch, Ant Image
I have here a bubble popping game where bubbles fall from top of the
can anybody tell How to dispaly gradient effect from top to bottom in android
I am loading a jQuery UI window a few scrolls down from the top
I would like to add a uitoolbar able to slide -in from the top

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.