Tagged: featured image, post, share buttons
-
AuthorPosts
-
January 11, 2015 at 1:49 pm #377959
Hi Folks,
I would like to be able to insert an image, so I can set a custom url link, but to also set a featured image for SM shares and the various other things dependant on a Featured Image. I don’t however want the featured image embedded in the post. How to I modify the theme to allow me to do that?
Thanks in advance.
Cheers
JohnJanuary 11, 2015 at 2:18 pm #377962As a follow-up question, I just noticed that if I set the blog post format to “image” it disables the image link. Can I get the link to work?
January 11, 2015 at 6:04 pm #377993I was just testing this. Try setting your post type to standard and just checking the box under the featured image to “Don’t display image on single post”
I think that will fix your issues. Now for me to figure out how to set the post width… That is my issue.
January 11, 2015 at 6:10 pm #377995That works for “single posts” only, but not for any of archive pages which end up displaying both featured and embedded image.
Would post width not be dependent on the sidebar width?
January 12, 2015 at 7:10 am #378152January 12, 2015 at 12:38 pm #378228Hi @Ismael, thanks for the prompt response. After some tinkering yesterday I think I’ve found a series of settings that gets me what I am looking for, mostly.
I embed the image, and create a link. I set a featured image but disable it from appearing in Single Posts. I set Post Format to Standard. For the Blog Page I have set it to show Single Author, Small preview pic and Full Content. Any other settings and something goes awry, either with the Featured image also appearing, or the main image cropped in some way.
WP has changed a lot since I last played with it. I used to be able to simply modify single.php, or archive.php but now everything seems linked to other files. If I wanted too, say have the share buttons appear on the blog page or archive page, how would I do that?
January 15, 2015 at 9:42 pm #380467Hey!
There wouldn’t really be any point in adding the social share to your blog page and archives. They are for users who want to share something they find interesting on your site so having them on pages or posts with actual content would be good. Your blog pages and archives will continually change as you create more posts so it’s only going to confuse people.
It’s also going to confuse the social networks because they will not know what featured image or article summary to grab from.
If you still wish to add though then open up /enfold/archive.php and find line 73.
<!--end content-->
And add this above it.
<?php echo avia_social_share_links(); ?>
Regards,
ElliottFebruary 13, 2015 at 5:20 am #395497I’ve run into a similar problem. I am helping a friend set up his site and neither of us can figure this out. When we set the single blog post layout to any of the three options and check the box so the featured image won’t show on the post, it puts this little icon at the top of the post with either 1) a link to the image in my uploads folder, or 2) a link to the author page for the single author. Now how do we get rid of that?
Ideally, what he wants to do is have the featured image show in the post and have it be clickable through to a custom URL. But since you can’t edit the destination on click of the featured image in a post, we opted to get rid of it from the post and insert the image separately as a media element with a custom URL for the click through. That works fine for now, but after reading some other messages here on the forum, I’m guessing we’ll run into duplicate image issues on the archive page in the future.
Any help is greatly appreciated. Thanks in advance!
EDIT: We seem to have found a roundabout solution. If you set the Blog Layout for Single Post Style to “Single post with big preview image” and also put custom CSS in General Styling to remove the image overlay effect from the site, that appears to do the trick. It doesn’t work when you use either of the other two Single Post Style options, it has to be the one with big preview image. The CSS we used is below:
.image-overlay { display: none !important; }
- This reply was modified 9 years, 9 months ago by Urcleman. Reason: Found a solution
-
AuthorPosts
- The topic ‘Disable Featured Image from appearing in Blog Post’ is closed to new replies.