Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

deactivate links to single post view WordPress

  • SOLVED

Hi! I use wordpress with headway themes.

I would like to deactivate the links of the featured image and the blog headline of an entry targeting to the single post view. Is this possible? I just use the blog to show photos with a headline. There is no need to see it as single. Is this possible with css? and if yes, how??

http://alpha.restaurant-richard.de/kuche/



Answers (4)

2012-10-04

Arnav Joy answers:

can you provide me login access to your site


Arnav Joy comments:

you can also try this jquery method , though it is only for this page

<script>
jQuery(document).ready(function($)){
$('.pageid-19').find('a.post-thumbnail').attr('href','javascript:void(0)');
}
</script>


Arnav Joy comments:

please ignore above message , try this

<script>
jQuery(document).ready(function($){
$('.pageid-19').find('a.post-thumbnail').attr('href','javascript:void(0)');
});

</script>


klaus dyba comments:

This worked for the photos. Not the headlines, though... any idea?


Arnav Joy comments:

try this

<script>

jQuery(document).ready(function($){

$('.pageid-19').find('a.post-thumbnail').attr('href','javascript:void(0)');
$('.pageid-19').find('h2.entry-title').find('a').attr('href','javascript:void(0)');

});



</script>



klaus dyba comments:

Worked!


klaus dyba comments:

Worked! If you could tell me know how to avoid the mouse-arrow while hovering over the image and the headline (only there) I would be happy!

2012-10-04

Michael Caputo answers:

Not possible with CSS.
We would need to see your theme files.

2012-10-04

Jatin Soni answers:

You need to modify php files

header.php and either index.php or front-page.php or home.php

need to check in your theme files

2012-10-04

Francisco Javier Carazo Gil answers:

You have to delete the anchor references in loop (index.php or loop.php of your theme) to http://codex.wordpress.org/Function_Reference/the_permalink the_permalink and the echo to the URL of thumbnail: wp_get_attachment_image_src.