x

Embed code showing in editor, not on live site

I saw this question posted multiple times, but I'm not knowledgable enough to follow what the solutions were for the others - it always seems to be something pretty unique to the code being embedded.

Here is the code I am trying to embed:

<div class="indeedjobs-widget" data-id="31e3916c5196fcfeeafe" data-theme="light" data-height="320"></div> <script> (function(d, id) { if (d.getElementById(id)) return; var js = d.createElement('script'); js.id = id; js.src='https://www.indeedjobs.com/widget.js'; d.head.appendChild(js); })(document, 'indeedjobs-js'); </script>

Here is my live site where the code is supposed to be embedded:

https://www.stlaccountinggrandjunction.com/careers.html

Any help would be greatly appreciated. How do you look up the errors the code is giving? I see a lot of posts about what the error is but I don't know how to check it.

Thanks!

Gina

3,059 Views
Message 1 of 7
Report
2 Best Answers

Best Answer

@ginatallmancpa Interesting, the raw Indeed code does indeed appear to have an issue rendering on the front end of a Weebly page. Seems to present fine in an online web code editor like CodePen (https://codepen.io/pen/) and also in the Weebly Site Editor itself but the script encounters errors when actually run on a Weebly site.

Did you try using the Indeed Weebly app?

https://www.weebly.com/app-center/indeed-jobs

The reviews for this app are not very good but it's worth a try (it's free). Perhaps install it in your site and then drag and drop the element on your page and configure as required and see if that is able to get around the issue. If not, I'd report this to Indeed for resolution.

View Best Answer >

3,041 Views
Message 4 of 7
Report

Best Answer

Hello,

I was never able to get the code to work. I ended up installing the Indeed App for Weebly instead, and it did the job. You can find and install it on your Weebly site here: https://www.weebly.com/app-center/indeed-jobs?ref=ac-search

Hope that helps!

Gina

View Best Answer >

2,568 Views
Message 8 of 7
Report
6 REPLIES 6

Best Answer

@ginatallmancpa Interesting, the raw Indeed code does indeed appear to have an issue rendering on the front end of a Weebly page. Seems to present fine in an online web code editor like CodePen (https://codepen.io/pen/) and also in the Weebly Site Editor itself but the script encounters errors when actually run on a Weebly site.

Did you try using the Indeed Weebly app?

https://www.weebly.com/app-center/indeed-jobs

The reviews for this app are not very good but it's worth a try (it's free). Perhaps install it in your site and then drag and drop the element on your page and configure as required and see if that is able to get around the issue. If not, I'd report this to Indeed for resolution.

3,042 Views
Message 4 of 7
Report

Paul,

Thanks!

I didn't even know there was an Indeed app for Weebly. It did the job. Indeed support told me to wait 24 hours for the code to start working, but it seems like I had this same issue last year when I had a job posted and the code never started working (in fact it was still embedded in my website when I went to add the code this time). Oh well, this will work, thanks again!

Gina

3,039 Views
Message 4 of 7
Report

Hello,

It's great that your code had worked. I'm also facing the same issue, but having a hard time understanding the solution. Can you please help me out?

My Code:

<div class="indeedjobs-widget" data-id="9c1fc93ce9598fd60243" data-theme="light" data-height="320"> </div>
<p><script> (function(d, id) { if (d.getElementById(id)) return; var js = d.createElement('script'); js.id = id; js.src=<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_end"></span>'https://www.indeedjobs.com/widget.js'; d.head.appendChild(js); })(document, 'indeedjobs-js'); </script></p>
<p>&nbsp;</p>
<!-- wpSmiley Tonguearagraph -->
<p>&nbsp;</p>
<!-- /wpSmiley Tonguearagraph -->

2,570 Views
Message 8 of 7
Report

Best Answer

Hello,

I was never able to get the code to work. I ended up installing the Indeed App for Weebly instead, and it did the job. You can find and install it on your Weebly site here: https://www.weebly.com/app-center/indeed-jobs?ref=ac-search

Hope that helps!

Gina

2,569 Views
Message 8 of 7
Report

Hello! I've a similar problem: multiple embed codes on the same page don't work. I see them in the editor page but not in the live site when published. I've tried to install "Indeed app" but it doesn't work. Can you please explain in details how you have solved your problem? Thanks! Smiley Wink

1,386 Views
Message 8 of 7
Report

Hello, it seems that since I posted this solution the Indeed App for Weebly has stopped working too. I ended up just posting a button on my website that linked to our external job posting at Indeed. I only hire about once a year so I didn't want to put any more effort into it. Good luck!

1,270 Views
Message 8 of 7
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.