Redirect K2 Articles to URL

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Apr 18, 2013 10:15 pm
Reply with quote
Report this post
On the home page I am trying to find a way to redirect the 4 block images on the bottom to a url rather than to a K2 article. I currently have a plugin installed in the K2 content that redirects to a url for a category of virtuemart but want to find a more effective way. It currently sends you to the K2 article for a second and then redirects you to virtuemart category (the redirect script is set to 0 seconds as well). I want a way to have it immediately take you to the virtuemart category.
User avatar
Senior Boarder

GK User
Fri Apr 19, 2013 4:12 am
Reply with quote
Report this post
If these images are static meaning it doesn't change then you can use javascript to change the url to virtuemart category.

Post your website link we can advice more.

See you around...
User avatar
Platinum Boarder

GK User
Fri Apr 19, 2013 1:05 pm
Reply with quote
Report this post
www.ThriftOutfitters.com

I am referring to the images that say WOMEN, MEN, SUNGLASSES & LIVING at the bottom of the homepage.
User avatar
Senior Boarder

GK User
Fri Apr 19, 2013 2:02 pm
Reply with quote
Report this post
Copy below code at the end of "/templates/gk_storebox/js/gk.scripts.js".

Code: Select all
jQuery(document).ready(function(){
var arts = jQuery('.gkNspPM-NewsBlocks > figure > figcaption a');
   arts.each(function(i){
      var num = i + 1;
     jQuery(this)
        .addClass('nspmylink' + num )
   });
   jQuery('.nspmylink1').attr('href','http://www.thriftoutfitters.com/categorywomen').attr('target','_self');
   jQuery('.nspmylink2').attr('href','http://www.thriftoutfitters.com/categorysunglasses').attr('target','_self');
   jQuery('.nspmylink3').attr('href','http://www.thriftoutfitters.com/categorymen').attr('target','_self');
   jQuery('.nspmylink4').attr('href','http://www.thriftoutfitters.com/categoryliving').attr('target','_self');
});


Change links corresponding to your website link.

See you around...
User avatar
Platinum Boarder

GK User
Fri Apr 19, 2013 7:21 pm
Reply with quote
Report this post
THANK YOU!!!!!!
User avatar
Senior Boarder

GK User
Fri Apr 19, 2013 8:00 pm
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder


cron