When you select the image you want, before setting it as ‘featured image’, make sure you’re changing the link URL to none. Otherwise just delete the a tags around the <img>.
Or are you using a php include in your theme to put the featured image there?
Hi John
Tried that suggestion about deleting the link URL before inserting teh featured image. Doesn’t work.
Where can I delete the tags round the <img>?
Am using the built in featured image that appears in the dashboard. No idea if it uses a php include…
I imagine there will be something in the theme that sets featured images to become links. This will be in the php. If you didn’t write the theme you’ll have to hunt out what’s causing it.
Find the php include for the featured image and change it to:
<?php if ( has_post_thumbnail()) : ?>
<?php the_post_thumbnail('post-image'); ?>
<?php endif; ?>
That gets the image, without a link. Back up first 🙂
Any idea as to what sort of file I should be looking for… or where to look? Lib folder? functions.php?
Never done this before. 🙁
Log in to your FTP
go to public_html > wp-content > themes > your-theme-name
In there will be a bunch of .php files. Try page.php, there should be something telling your pages to display the featured image. Any reference to ‘thumbnail’ is what you’re looking for.
What is the name of the theme you are using? I’ll download it and have a look if you like 🙂
Hi John
Template is called poerplay… but it’s a paid for theme. been sytruggling to get support from its creator.
Here is the page.php code
<?php get_header();?>
<!– TOP IMAGE OR VIDEO –>
<?php if (have_posts()) : the_post();
phi_get_image_top();
phi_get_video_top();
phi_panel_slider();
phi_page_title(); // Adds page title with breadcrumbs (In functions.php)
phi_content_start(); // Start content wrapper (In functions.php)
phi_get_video_content(); // Post video medium (In functions.php)
phi_get_image_content(); // Post image medium (In functions.php)
the_content(); // Add the content (In functions.php)
phi_content_end(); // End content wrapper (In functions.php)
endif;
get_footer();?>
The whole template is 9Mb as a zipped file. I can send it via yousendit if you like…
That should be powerplay…
Hey man, so have you finally made this work?
I have found that “featured_image_link_to” is found in the meta-boxes.php and functions.php (in my theme obviously).
But I have no knowledge of PHP so don’t have a clue how to replace that get_permalink() with something that would actually disable the whole ‘a href’ thing…