Removing Featured Image & Audio Player Above Post – Elemin Theme
-
Hello I’m using the Elenim theme and I have the custom CSS upgrade.
Please let me know what CSS I can use to fix these 2 similar issues I am having.
1:
I use featured images (used to have a slider on the old theme and in case we switch themes again in the future it’s nice to have also the featured image shows up in the “related posts” section so I like to have them)When I have a featured image on the post it shows up above the post in small which I do not like.
Here is an example:
http://11213.org/2014/11/01/psychics-zombies-demons/Notice the small image above the video. I do not want it to show up there at all.
The image shows up that way on the site homepage and I don’t want it there either. I removed the featured image on some of the most recent posts but you can see examples of it if you scroll down a bit here: http://11213.org
Here is what it looks like under a specific tag:
http://11213.org/tag/leader/2:
When I use the “audio post format” to get the audio icon next to the post that the Elemin theme provides a duplicate audio player shows up above the post. I do not want it to show up above the post on the posts page itself or on the homepage.Here is an example of it on a specific post:
http://11213.org/2014/10/31/girls-shidduchim-boot-camp-7-exercises-to-get-yourself-in-shape-for-dating/Notice the extra audio player (and image) above the post.
I would like to use the audio post format icon on many of my posts but I don’t want the audio player showing twice, once above the post and once inside the post itself. I just want it to show up within the post.
Please let me know how to remove the extra image and audio player above the posts.
Thank you very much.
The blog I need help with is: (visible only to logged in users)
-
1) You are doing the right thing: remove the featured images.
2) We can certainly use CSS to hide the duplicates but that is not a good idea.
There is a reason why the duplicate audio player is appearing in your post. Perhaps your content got duplicated somehow?
Because an example audio post on Elemin demo site: https://elemindemo.wordpress.com/2011/09/21/september/ has duplicate audio player neither on the homepage nor on the audio post page.
Are you able to review your post content and see if there is any smoking gun :-)
-
I paid for the premium Elemin theme and I am paying for Custom CSS.
Is there a staff member available?
1) I want to continue using the featured image in case we switch themes in the future I don’t want to have to go to each post to add the featured image back also the featured image shows up in the “related posts” section and I want it to keep showing up there.
2) I understand staff can look inside the post itself. I don’t believe there is any duplicate audio in the post.
I attempted to use the Elemin theme in the past and remember having an issue with the audio post format back then and a staff member fixed it with an update.
It has to do with the way it presents an audio post. It seems to add the audio to a feature type of section.
I simply want to be able to get the audio icon to show up for posts in the audio format but want the post itself to remain the same with nothing added.
In both 1) and 2) there is definitely something being added in addition to the post itself and I want to hide it with Custom CSS.
Thank you for your help.
-
Alright, I tagged this post for satff’s attention.
Meanwhile you can post your question in the Elemin theme specific forum here: https://theme-support.wordpress.com/forum/automattic/elemin/
-
Hi there!
Here’s some code to hide the featured images and the duplicate audio player:
.entry-content .wp-post-image {
display: none;
}#mep_0 {
display: none;
}I tested a bit to make sure these don’t spill over on to the places you said you wanted the featured images, but let me know if it doesn’t look right somewhere.
The code to hide the audio player might hide your player in posts if they aren’t tagged as an audio post. From what I can tell, there’s no way to identify these players another way, so if there are players that you include in posts that are not marked as audio posts, you’ll need to add a line of CSS to show the player in that specific post.
Let me know if I can help with anything else.
-
Thank you chaitanyamsv.
shawnajroberts I used the code you gave me as is:
.entry-content .wp-post-image { display: none; }
#mep_0 { display: none; }
The featured image code seems to have worked well so far. It removed the image above the post but still shows in related posts.
The audio code ( is this it?: #mep_0 { display: none; } ) doesn’t seem to have had any effect in anyway.
Our site is mostly audio and video content. We have posts that are just audio however our video posts usually have an audio version below the video.
I would like to be able to have a video post have the video post icon (even if there’s an audio version in the same post) and the posts with just audio alone have an audio icon beside it.
If the code will hide all audio players that are not in an audio post that would not be a solution.
Please let me know what I can try next.
-
Hmm. I just took another look and I see why that code isn’t working for the media players. Unfortunately, the additional media player doesn’t have an identifier that differentiates it from the actual one you added to your post, so I’m having a hard time isolating it to hide it.
I think I figured it out though. Remove the #mep0 code and try this instead:
.format-audio .entry-content>div:first-of-type { display: none; }This should hide the first audio player in any post that’s set to have the Audio post format.
Let me know if you see any problems with that one. :)
-
I removed the old audio code and put in the new one.
It seems to be working well. I will post again if there are any issues but for now this seems to be working exactly as I wanted.
Thank you very much!
-
Fabulous! Glad we got that working the way you want. Sorry for the audio code snafu. :)
Let me know if there’s anything else I can do!
-
I noticed that the featured image and duplicate audio player is still showing when I visit the site on my phone.
I do have this box checked: “Include this CSS in the Mobile Theme”
Does that check box only effect WordPress’s default mobile theme?
Under mobile theme it says:
“Awesome! Your theme, Elemin, is already deemed to be mobile-friendly.”So not sure what effects what.
It would be nice if I can leave the Elemin mobile theme enabled and not have the extra image and audio player but if not its ok because I can use WordPress’s default mobile theme.
I’m just happy I have it all working nicely now on the desktop site.
Let me know what you suggest.
Thank you.
-
Hi there!
I just checked your site on my Android phone and I’m not seeing the featured images or duplicate audio player. Can you try clearly your mobile browser’s cache? If you tell me what mobile browser you’re using I can try to find you some directions to do this.
-
-
I just had another Happiness Engineer take a look on her iPhone in Safari and she’s also not seeing the duplicate player. Could you take a screenshot of what you’re seeing for me? Upload it to your Media Library so I can see.
-
Hello again.
I asked someone else to check on their iPhone and it seems to be working correctly. I guess it’s just my phone…
Anyway, I’m having an issue now with the audio player not showing up when it should.
Take a look at this post:
http://11213.org/2014/12/16/challenge-day-8th-grade-oholei-torah/If you look inside the post itself you will see that I added the audio player twice. That was the only way the audio player would show up in the post itself. It is set to audio post format.
If the theme is adding an audio player automatically above the post then when I put the audio player in it should be the “2nd” audio player which should then show in the post. But it wasn’t showing up so I added it again. Now 1 shows and 1 doesn’t.
Having to add 2 audio players is odd and if/when I ever change themes it will be showing up double.
I thought we found the solution. Not sure what’s happening here now.
Thank you for trying to figure this out for me.
-
Maybe this will help…
That particular post was once published then saved as a draft before we made the changes above.
Today I updated the post and republished it and when I did, I changed it to the audio post format.
But I am still trying to test new posts and it seems to be hit or miss when the audio player shows up inside the post as I want it to and when it doesn’t.
I think it has something to do with when the format is changed to audio post format.
Maybe if its first saved as a standard post and then changed to an audio post format – it does not update to the way I want it to show up.
-
Hmm. I think I know why that’s happening, and I might be able to fix the code I gave you not to do that. Can I remove the audio-hiding code temporarily to do some testing on your site?
-
-
Thank you! I’m going to pop in there now, so if you see the audio players reappearing, that would be me. :)
-
Thanks for letting me poke around! I pinged a developer for a hand since the audio player didn’t seem to be duplicating consistently. Turns out, he’s pretty sure the audio player being duplicated from the audio shortcode is a bug!
So I’ve filed a bug report for that. I’ll let you know as soon as I hear back about that. In the meantime, I’ve reenabled the code I had given you before. I wasn’t able to come up with a better code snippet for you.
-
- The topic ‘Removing Featured Image & Audio Player Above Post – Elemin Theme’ is closed to new replies.