- This topic is empty.
-
AuthorPosts
-
October 9, 2019 at 10:16 am #297107
yolandal
ParticipantHi there,
I’m struggling with a code to hide something.
An article of my site is https://neuropathie.nu/speerpunt-fibromyalgie-en-obesitas/below in the WP Embed Link box you see 3 blocks with date, downloads, access. (This is because of a download manager plugin).
I want to hide these 3 buttons, and have been playing with this
.oefooter { display: none; } or
.wp-embed-excerpt span.oefooter { display: none; }But nothing seems to work. What am I doing wrong?
October 11, 2019 at 7:43 am #297187yolandal
ParticipantNobody?
In the meantime I’ve uninstalled the plugin, so you can’t see the code live anymore.
But in that case I would like to hide the WP logo in the embed link.What could be the code for that?
October 14, 2019 at 2:18 am #297278JeroenR
ParticipantI think the reason why nobody is responding is that no one likes to look at a whole website to find what’s going on.
Maybe you can isolate the problem and copy the corresponding code to a tool like codepen?October 14, 2019 at 2:34 am #297279yolandal
ParticipantOK, I thought I already focused on the code itself. It not necessary to search the whole website.
But I’ll make it shorter.I would like to hide the WP button in every embed link on a post.
The code is below, and when I add display: none, the icon is gone.
But when I add this code to my CSS, it doesn’t work, and the icon still shows. Even when I use !importantSo I hope this makes it more clear what my question is?
.wp-embed-site-icon {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
height: 25px;
width: 25px;
border: 0;
display: none;
}October 14, 2019 at 3:58 am #297282JeroenR
ParticipantNo, sorry, it doesn’t. I took a look at the source of your website. There is no usage of the classname
wp-embed-site-icon
, noroefooter
. So I’m wondering which buttons you’re trying to hide.October 14, 2019 at 4:01 am #297283yolandal
ParticipantI’ve de-installed the plugin that created the oefooter. The icon is still there, but I’ve overwritten it with a white icon.
this is not the best way, but for now it works. Although I would do it better with the code. -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.