Want excerpts to show full size first image instead of excerpts
I have excerpts for posts enabled on my home however I want the full size first image to be displayed and not the thumbnail. How can I do this? I figured out how to show the full size first image by adding the tag in ATO Don't strip this section under configure excerpts but when i do that the post thumbnail and the first image are displayed.
Thanks in advance for anyone's help on this. |
Don't use the featured image function.
|
So I have to go back through each post and disable the featured image?
|
You could also try adjusting the thumbnail size in the Thumbnail section of the theme options.
|
Is there a way to actually edit the theme file to make the excerpt really just be the post only shortened?
I do not want it pulling the image in from the featured image area and I want it to pull in all the images in the first 250 characters....not just one. I'm looking in functions.php but not finding what I am looking for....i think? |
Okay so it looks like if I manually add the
Code:
<!--more--> If there is a way to do this automatically I would be interested still though. |
Okay so by deleting:
Code:
$text = strip_tags($text, $bfa_ata['dont_strip_excerpts']); edit: If you leave this in the code and just add the < img > tag to the tags not to strip in the ATA settings it also works. The only problem is I also have the featured image running so I am getting doubled up images at the top of the posts. Is there a way to turn this call off to the images or do I need to delete the entire post_thumbnail section? The latter seems more scary to me by a long degree. |
add the following to the CSS Inserts
HTML Code:
img.attachment-post-thumbnail {display:none;} |
Great. That worked. Is this a very clean way to do it? It seems like there should be a place in the excerpt code that says like:
get_the_post_thumbnail but I can't seem to find it? If I could just delete something like that without deleting the whole thumbnail creation I would love to do that....it seems cleaner from my point of view then just hiding the image with the CSS. Am I thinking that through right? |
you can certainly edit the theme code insteading of using the css and it will be 'cleaner' on the page, but the next time you update the theme you have to go back and make the changes all over again.
so you have to ask yurself, which will be easier in the long run |
All times are GMT -6. The time now is 01:04 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.