| | #1 |
| [Insert witty user title] War Room Member Join Date: 2011 Location: Philadelphia, Pennsylvania
Posts: 962
Thanks: 123
Thanked 329 Times in 140 Posts
Blog Entries: 2 |
On my site VPS-Review.net ... see when you click the images? It brings up the image in a fancy display-like thing? I want it to direct to the post instead. I believe this is the HTML: <div class="preload_image"> <a class="single_image" href="<?php $links=wp_get_attachment_image_src( get_post_thumbnail_id($post->ID),full); echo $links[0]; ?>"><img src="<?php print_thumbnail_src('280','180') ?>" alt="single_review" /></a> </div><!--end preload--> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> What would I need to do to make it direct to the appropriate post instead of the image-thing? Thank you!! |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Houston
Posts: 174
Thanks: 10
Thanked 45 Times in 40 Posts
|
Click on the image in your post/page editor and click the edit icon that appears on top of the image. You'll see a box that says "Link URL". Type the URL you want the image to link to in that box and save.
|
| Creating an Affiliate Tools Page Couldn't Get Any Easier. Find out how. Free Screencast Videos Resource Guide Here | |
| |
| | #3 |
| Director of Marketing War Room Member Join Date: 2011 Location: PeerFly Office
Posts: 1,238
Thanks: 343
Thanked 523 Times in 340 Posts
|
Try this: HTML Code: <div class="preload_image"> <a class="single_image" href="<?php the_permalink(); ?>"><img src="<?php print_thumbnail_src('280','180') ?>" alt="single_review" /></a> </div><!--end preload--> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> |
| [SIGPIC][/SIGPIC] ^ My Blog Are you an affiliate that runs PPV advertising? You need my PPV target scraper! Have a Facebook Page? FPTraffic, manages over 1,000,000,000 (BILLION) Likes! Check it out :) | |
| |
| | #4 |
| [Insert witty user title] War Room Member Join Date: 2011 Location: Philadelphia, Pennsylvania
Posts: 962
Thanks: 123
Thanked 329 Times in 140 Posts
Blog Entries: 2 |
Luke, didn't quite have luck with that. It just made the popup bring up the entire post. Chriscobb, think it's more of a backend sort of thing so every image leads to the post, not just the individual pic. |
| |
| | #5 |
| Hybrid Entrepreneur War Room Member Join Date: 2010
Posts: 89
Thanks: 1
Thanked 6 Times in 4 Posts
|
Try removing the class of "preload_image" or change it to another class.
|
| | |
| |
| | #7 |
| Hybrid Entrepreneur War Room Member Join Date: 2010
Posts: 89
Thanks: 1
Thanked 6 Times in 4 Posts
|
Sorry for not being clear. Try Luke's code and change/remove the class. You might have to add some CSS on the changed class. Just to make it look like the image before. Code: <!--Luke's Code-->
<div class="a_preload_image_before_class"> <!-- changed class-->
<a class="single_image" href="<?php the_permalink(); ?>">
<img src="<?php print_thumbnail_src('280','180') ?>" alt="single_review" />
</a>
</div><!--end preload-->
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> |
| | |
| |
| | #8 |
| [Insert witty user title] War Room Member Join Date: 2011 Location: Philadelphia, Pennsylvania
Posts: 962
Thanks: 123
Thanked 329 Times in 140 Posts
Blog Entries: 2 |
You're speaking a foreign language to me - haha. ![]() Is there anything I can provide to make the answer more clear-cut... like copy/pasting some HTML from elsewhere for you? |
| |
| | #9 |
| Director of Marketing War Room Member Join Date: 2011 Location: PeerFly Office
Posts: 1,238
Thanks: 343
Thanked 523 Times in 340 Posts
| |
| [SIGPIC][/SIGPIC] ^ My Blog Are you an affiliate that runs PPV advertising? You need my PPV target scraper! Have a Facebook Page? FPTraffic, manages over 1,000,000,000 (BILLION) Likes! Check it out :) | |
| |
| | #11 |
| WordPress Expert War Room Member Join Date: 2011 Location: New Delhi, India
Posts: 1,097
Thanks: 29
Thanked 172 Times in 131 Posts
|
Preloading images means the image is loaded even before it is requested by the user. It is a technique used often to load large images so that they are ready when user checks it out. It is not responsible for the pop-up windows. Some other code or plugin is responsible for this. By the way, you are using a theme which isn't very good with SEO. Alt="single_review"??? Are you trying to rank for "single review"? |
| >> Web Design, Wordpress & SEO - XtraPunch.com << Web Design & SEO Agency | Serving World Wide from New Delhi, India | |
| |
| | #12 |
| Active Warrior War Room Member Join Date: 2010 Location: Denver, CO
Posts: 32
Thanks: 0
Thanked 4 Times in 3 Posts
|
This was my first thought too. Did you try this? I'm not familiar with this theme, but by default WordPress points new images to a dedicated attachment page and not the post. Try going back to your posts and change the link settings for the images to the "Link to Post" option before you start banging your head against the wall screwing around with code.
|
| |
| | #13 |
| [Insert witty user title] War Room Member Join Date: 2011 Location: Philadelphia, Pennsylvania
Posts: 962
Thanks: 123
Thanked 329 Times in 140 Posts
Blog Entries: 2 |
Hm yeah I didn't do the single_review... that was like that. As for trying it manually, ah, I thought that would do it! Was excited, never saw that "post URL" button... but did it and nothing changed Very strange...
|
| |
| | #14 |
| Hybrid Entrepreneur War Room Member Join Date: 2010
Posts: 89
Thanks: 1
Thanked 6 Times in 4 Posts
|
@xtrapunch Yeah you're right, I didn't find out when I checked out the site. The reason why I removed the class preload_image because, I usually use the preloaded images to load the fancybox/lightbox popup. @resellcells The <!--changed class--> is just a comment in HTML it won't do anything to the codes. Copy and paste the code below: Code: <div class="preload_image">
<a href="<?php the_permalink(); ?>">
<img src="<?php print_thumbnail_src('280','180') ?>" alt="single_review" />
</a>
</div><!--end preload-->
<h2>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2> |
| | |
| |
| | #15 |
| WordPress Expert War Room Member Join Date: 2011 Location: New Delhi, India
Posts: 1,097
Thanks: 29
Thanked 172 Times in 131 Posts
|
I know the poor SEO image alt tags is due to the theme. Most of these Internet marketers offer themes that are bloated with codes and have poor SEO. I had created a website review theme a few months back for a client. That guy's original theme was very buggy and poorly coded.
|
| >> Web Design, Wordpress & SEO - XtraPunch.com << Web Design & SEO Agency | Serving World Wide from New Delhi, India | |
| |
| | #16 | |
| Evan Mugford War Room Member Join Date: 2010 Location: N.S. Canada
Posts: 414
Thanks: 22
Thanked 54 Times in 49 Posts
|
try adding rel="nofollow" target="_parent" sounds like you have fancy box plugin and its taking over the link | |
|
Evan-M Easily The Worlds Best Wordpress Popup plugin Visit Website Design Firm For All Your Wordpress Coding Needs | ||
| |
|
| Bookmarks |
| Tags |
| html, question, wordpress |
| |