Display Image Excerpts in Pages
I am trying to display images next to the excerpts in my pages like this – http://marvelousmommy.com/category/giveaway/ I got it working with a plugin called “Thumbnail for Excerpts” however it made the images in the slider show up twice!
So (in functions.php) I removed <?php the_excerpt(); ?> from
<?php the_excerpt(); ?>
<?php do_action(‘graphene_slider_postentry’); ?>
and it worked however it also removed the text excerpt so I’m left with only the image, the title, and the ‘view full post’ button.
Could you tell me the best way to go about displaying images in the pages excerpts without affecting the slider?? Should I remove the plugin and replace the code or should I keep the plugin and alter the CSS class to display: none on the slider??
I appreciate your time and help! Thanks so much!
Amy @ Marvelous MommyAdminAdmin
If you have a child theme, put it in your child theme’s
Otherwise, use the WordPress theme editor to edit the theme’s style.css and put it at the bottom of that file. Note though if you use this way, the change would be lost the next time you update the theme.AdminAdmin
Try this instead:
For me, the best way to add excerpt image is to use the theme’s
graphene_before_post_contentaction hook, though this may be difficult for you to achieve if you’re not familiar with PHP.AdminAdmin
You must be logged in to reply to this topic.