Image instead of Header Text code not working

Hi!

First off, thanks for the amazing theme and support forums, they’ve been really helpful for building my site. However, today I’ve encountered my first problem that I couldn’t find an answer or fix for.

Previously, I used a piece of JavaScript I found on the forums to replace the header text on my site with an image. It worked fine until a couple days ago, when the image vanished. I’m not sure what has happened, as I don’t recall changing anything. I’ve attached below a screenshot where the image should be.

This is the JS I have in the field:

> jQuery('.header-text').html`('<img src="http://probba30.org/wp-content/uploads/2018/09/Probba-GAB30-Logo-copy.png">');`
>
> });

Do you have any idea what could be wrong?

Thanks in advance,
Michael

Your JS code outputs nothing because it’s invalid. Try replacing it with this:

    (function($){

      "use strict"

      $('.header-text').html('<img src="http://probba30.org/wp-content/uploads/2018/09/Probba-GAB30-Logo-copy.png">');

    })(jQuery);

Regards,
Kharis

That did the trick, thanks so much for the quick reply! I’m not very well versed with JS, I was pretty sure that was the source of my problem.

No worries! Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis