Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #996058
    fabipaolini
    Participant

    Hi! 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!
    Fabi

    #996191
    Rahul
    Moderator

    Hey there,

    Please try this instead :

    .entry-thumb:: before {
    content: url (‘http://www.fabipaolini.com/wp-content/uploads/2016/05/fp.png’);
    }
    #998167
    fabipaolini
    Participant

    For some reason it’s not working 🙁
    any other ideas?

    #998383
    John Ezra
    Member

    Hi 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!

    #999591
    fabipaolini
    Participant

    Perfect! It worked! Thanks for the tip!

    #999682
    Rahul
    Moderator

    You’re welcome!

  • <script> jQuery(function($){ $("#no-reply-996058 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>