The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Remove link image attached to image

4 posters

Go down

Solved Remove link image attached to image

Post by System32 November 24th 2022, 4:10 pm

So, I am using my own code to attach image before a link, and it works fine. But when I upload image by servimg and then add it, it becomes link for some reason and next to the image I can see the link img.

My code:

Code:
.post-content a {
  color:#1e88e5;
  text-decoration:none;
}
.post-content a::before {
  content: url('https://i.ibb.co/LhdS8fn/link.png');
}

Remove link image attached to image Screen96


Last edited by System32 on November 29th 2022, 8:08 pm; edited 1 time in total
System32
System32
Forumember

Male Posts : 387
Reputation : 22
Language : Serbian,English

View user profile https://pomoc-srb.forumotion.com/

Back to top Go down

Solved Re: Remove link image attached to image

Post by pedxz November 25th 2022, 2:30 am

Hello @System32,

You can use this solution (replace your code to)
Code:
.post-content a {
  color:#1e88e5;
  text-decoration:none;
}
.post-content a:not([href^="https://servimg.com/view/"]):not([href^="https://servimg.com/r/"])::before {
  content: url('https://i.ibb.co/LhdS8fn/link.png');
}
pedxz
pedxz
Forumember

Posts : 717
Reputation : 140
Language : 🇵🇹

View user profile https://www.forumotion.com/create-forum/modernbb

TonnyKamper likes this post

Back to top Go down

Solved Re: Remove link image attached to image

Post by skouliki November 29th 2022, 7:57 pm

When your request is complete, please mark it as Solved.
skouliki
skouliki
Manager
Manager

Female Posts : 12928
Reputation : 1562
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Remove link image attached to image

Post by SLGray November 29th 2022, 10:51 pm

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


Remove link image attached to image Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50610
Reputation : 3478
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum