page open on new window
-
is there a way to open amazon product page on new window once a product is selected from wpzon list? thanks
-
Go to Plugins->Editor and from the right drop-down menu choose WpZon.
Then find the following lines of code:$content .= '<div style="width:100%"> <div style="float:left;width:15%;"> <img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" /></div> <div style="float:left;margin:0px 50px 90px 0;width:75%;"><a href="'.$link.'" rel="nofollow" >'.$titlel.'</a><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.' </span><strike style="color:#444;"><span style="font-size:13px;text-decoration:none;font-weight:500;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;">'.$avab.'</div><a href="'.$link.'" rel="nofollow">'.$seed.'</a></div></div>'; } else { $content .= '<div style="width:100%"> <div style="float:left;width:15%;"> <img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" /></div> <div style="float:left;margin:0px 50px 90px 0;width:75%;"><a href="'.$link.'" rel="nofollow">'.$titlel.'</a><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.' </span> <strike style="color:#444;"><span style="font-size:13px;text-decoration:none;font-weight:500;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;">'.$avab.'</div><a href="'.$link.'" rel="nofollow">'.$seed.'</a></div></div>';}} elseif ($col == "2") { if ($descr == "1") { if(($i % 2)==0){ $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:4%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; } else { $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:0%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; }} else { if(($i % 2)==0){ $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:4%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; } else { $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:0%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; }} $i++; if(($i % 2)==0){$content .= '<div style="clear:both"></div>';} } elseif ($col == "3") { if ($descr == "1") { if (($i % 3)==0) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } elseif (($i % 3)==1) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } else{ $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:0%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } } else { if (($i % 3)==0) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } elseif (($i % 3)==1) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } else{ $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:0%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } } $i++; if(($i % 3) == 0 ){$content .= '<div style="clear:both"></div>';} }
and replace it with this.
$content .= '<div style="width:100%"> <div style="float:left;width:15%;"> <img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" /></div> <div style="float:left;margin:0px 50px 90px 0;width:75%;"><a href="'.$link.'" rel="nofollow" target="_blank">'.$titlel.'</a><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.' </span><strike style="color:#444;"><span style="font-size:13px;text-decoration:none;font-weight:500;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;">'.$avab.'</div><a href="'.$link.'" rel="nofollow" target="_blank">'.$seed.'</a></div></div>'; } else { $content .= '<div style="width:100%"> <div style="float:left;width:15%;"> <img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" /></div> <div style="float:left;margin:0px 50px 90px 0;width:75%;"><a href="'.$link.'" rel="nofollow" target="_blank">'.$titlel.'</a><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.' </span> <strike style="color:#444;"><span style="font-size:13px;text-decoration:none;font-weight:500;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;">'.$avab.'</div><a href="'.$link.'" rel="nofollow" target="_blank">'.$seed.'</a></div></div>';}} elseif ($col == "2") { if ($descr == "1") { if(($i % 2)==0){ $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:4%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; } else { $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:0%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; }} else { if(($i % 2)==0){ $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:4%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; } else { $content .= '<div style="margin-bottom:140px;float:left;width:48%;margin-right:0%;"> <div style="width:250px;height:97px;" > <img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both"><span style="color: #'.$pricecol.';font-size:15px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:13px;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;">'.$avab.'</div></div></div>'; }} $i++; if(($i % 2)==0){$content .= '<div style="clear:both"></div>';} } elseif ($col == "3") { if ($descr == "1") { if (($i % 3)==0) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" target="_blank" /></a></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } elseif (($i % 3)==1) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } else{ $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:0%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike>'.$desc.'<div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } } else { if (($i % 3)==0) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } elseif (($i % 3)==1) { $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:6%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } else{ $content .= '<div style="margin-bottom:130px;float:left;width:29%;margin-right:0%;"> <div style="width:200px;height:97px;" > <a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0px 0 0 30px;border:none;" /></a></div> <a href="'.$link.'" rel="nofollow" target="_blank">'.$title.'</a> <div style="float:left;margin:3px 0 0px 0;clear:both;"><span style="color: #'.$pricecol.';font-size:14px;text-decoration:none;font-weight:600;"> '.$sprice.'</span> <strike style="color:#444;"><span style="font-size:12px;font-weight:500;;">'.$lprice.'</span></strike><div style="font-size:12px;clear:both;color:#777;">'.$avab.'</div></div></div>'; } } $i++; if(($i % 3) == 0 ){$content .= '<div style="clear:both"></div>';} }
Hi Lora,
Thanks so much for the codes. It works.I applied it on top of the existing image CLICKABLE codes. This image clickable function involved a big block of your codes.
The image is not clickable anymore.What should I do to make the image clickable work again along with this new page codes?
Thanks and God bless.
Hi,
Sorry for that, it was a mistake on my part ??Please find the following line of code (2 times)
<img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" />
and replace it with:
<a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0;float:left;border:none;" /></a>
Then look for the line (4 times)
<img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" />
and replace it with:
<a href="'.$link.'" rel="nofollow" target="_blank"><img src="'.$img.'" style="margin:0;padding:0 0 20px 30px;border:none;" /></a>
Thanks, God bless!
In 2-3 weeks, hopefully i’m going to make an update and add the shortcode to the WordPress editor.Hi Lora,
Thanks. It works now.
(To use mediumImage and clickable image and new page, some text and image positions should be adjusted accordingly)Once again, thanks and God bless
- The topic ‘page open on new window’ is closed to new replies.