Adding an icon to a link from an external URL
-
.page-item-39.current_page_item:before { content: ""; display: block; position: absolute; background-image: url(http://imgur.com/VllrIkn) no-repeat; top: -1px; left: -20px; }This is the code. I am trying to add the icon from the image url to the current page item if it is page-item-39. Adding text works fine, however, adding the image does not work. I’ve tried with or without quotation marks and a number of different combinations, I just can’t get it to work.
Any help would be greatly appreciated.Thank you.
-
Hi @persiane, can you give us a link to the site you are referring to? CSS is theme specific and the only site associated with your name, https://majulane.wordpress.com/ , doesn’t have any content.
- The topic ‘Adding an icon to a link from an external URL’ is closed to new replies.