Tagged: x
-
AuthorPosts
-
May 17, 2016 at 2:52 pm #996058
fabipaoliniParticipantHi! I’ve tried this on my site but it’s not working
Any ideas of what might be wrong?
The page is:
fabipaolini.com/blog.entry-thumb:: before {
content: url (‘http://www.fabipaolini.com/wp-content/uploads/2016/05/fp.png’)
}Thanks!
FabiMay 17, 2016 at 4:34 pm #996191
RahulModeratorHey there,
Please try this instead :
.entry-thumb:: before { content: url (‘http://www.fabipaolini.com/wp-content/uploads/2016/05/fp.png’); }May 18, 2016 at 4:32 pm #998167
fabipaoliniParticipantFor some reason it’s not working 🙁
any other ideas?May 18, 2016 at 7:33 pm #998383
John EzraMemberHi there,
Thanks for updating the thread and apologise for the incorrect CSS. There were some syntax errors that were causing it not to work. These were the single quotes were replaced by curly single quotes, this happens during copy and pasting between sources. What happens is the CSS got reformatted, it happens in Word Processors like MS word and similar and also on web pages, hence it is always best to copy code and CSS from enclosed code sections.
Aside from that there was also spacing that was causing the CSS to break. Upon fixing those and testing on your site it does work now on my end.
You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
.entry-thumb::before { content: url('http://www.fabipaolini.com/wp-content/uploads/2016/05/fp.png'); }Note the above CSS is tested to work, if for some reason it doesn’t you may have syntax errors in your other CSS preventing it from working. Check to see for a missing “}” closing curly bracket or unclosed quotation marks.
You can also test for syntax error by putting the CSS above all your other CSS (put it at the very top) If it works there then you have a syntax error somewhere below. If it doesn’t some other conflict is preventing it from working and we will need to check further.
Let us know how that goes. Hope this helps – thanks!
May 19, 2016 at 10:22 am #999591
fabipaoliniParticipantPerfect! It worked! Thanks for the tip!
May 19, 2016 at 11:05 am #999682
RahulModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-996058 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
