Community Forums › Forums › Archived Forums › General Discussion › Damn Image Duplicating Won't Stop!?
Tagged: streamline
- This topic has 6 replies, 3 voices, and was last updated 10 years, 2 months ago by Summer.
-
AuthorPosts
-
January 28, 2014 at 11:35 pm #87617Anthony GalliMember
When I insert an image into streamline "in-post" it also shows up "above the title." How can I prevent this duplicating? I don't want to completely get rid of the functionality of "above the title" pictures. In some blog posts I would like to include an "in-post" image and in other blog posts I would like to just have an "above the title" image (but please stop the duplicating). Ya feel me?
For some reason this seems like a surprisingly difficult problem to solve and I would be eternally grateful if you could help me. Thanks!
Here's an example of the problem from one of my posts:
http://www.anthonygalli.com/2014/01/11/5-steps-on-how-to-create-a-mac-vision-board/
I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com
January 29, 2014 at 8:15 am #87667David ChuParticipantHi,
I don't have Streamline, but some Studiopress themes have slightly tricky Featured Image setups. For instance, on some themes, if you set up a Featured Image, that would go at the top of the Post, and then other images put in the Post content would appear in the Post without duplicating. Not sure on this one, though. Official support may shed some light on that.You could try just using a Featured Image on your Post, and not put it in content.
Dave
Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers
January 29, 2014 at 11:07 am #87701SummerMemberAnthony, are you saying that none of the options from your previous thread worked: http://www.studiopress.community/topic/remove-featured-image/
Which version of Streamline are you running? And what version of Genesis?
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJanuary 29, 2014 at 1:49 pm #87719Anthony GalliMemberI tried both codes multiple times in multiple places. I went into the child theme, theme functions, and copy and pasted the code to the bottom of the text:
function prefix_stop_auto_featured_image( $args ) {
if ( ! isset( $args['context'] ) || 'archive' !== $args['context'] )
return $args;
$args['fallback'] = false;
return $args;
}The "in-post" image still duplicates "above the title" as shown in my post: http://www.anthonygalli.com/2014/01/11/5-steps-on-how-to-create-a-mac-vision-board/
I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com
January 29, 2014 at 2:11 pm #87721SummerMemberAnd you're using Genesis 2.0, and you also added the "add_filter" to call that function?
Make sure you have this:
add_filter( 'genesis_get_image_default_args', 'prefix_stop_auto_featured_image' ); function prefix_stop_auto_featured_image( $args ) { $args['fallback'] = false; return $args; }
in your functions, exactly as above... it's what I put at the end of the last thread you started but you didn't use my code mod.
That will call the function, and remove the fallback feature, no matter what post display you're using.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJanuary 29, 2014 at 5:35 pm #87747Anthony GalliMemberThank you so much Summer for your patience!
I used the last code you just posted and it worked! I don't know what went wrong. I was copying and pasting a variety of codes so I guess I overlooked this one. Thanks again. You the best!
I always did like Summer
I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com
January 29, 2014 at 6:42 pm #87753SummerMemberYou're welcome! I know how easy it can be to get cross-eyed after staring at the same chunk of code over and over again for days, LOL
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After Dark -
AuthorPosts
- The topic ‘Damn Image Duplicating Won't Stop!?’ is closed to new replies.