rsirota
rsirota

Reputation: 333

Question about inserting <script> to site where I do not have full access to the code

Let me try to ask this again in more detail. The web site I am working on is a 3rd party site from eTailPets.com in which I can modify pages by inserting code or css into the <head> or <body> section: Backend access

I have a specific piece of code which displays the google ratings. However, if I insert this code into the <body> section the code will execute and the google reviews will be at the top of the section. Google at the top of the body

However I would like it at the end of the section before the footer. Here are a couple of images which show the tags when using the inspector:

Footer Can it be added after this section??? Or before this section?

Any guidance would be valuable if anyone needs to see the actual website to help me debug it send me a message and I can send you the link.

This is the code I need added:

<script src="https://static.elfsight.com/platform/platform.js" async></script> <div class="elfsight-app-5d4ae808-912c-4e1e-8436-f1a3f06856f7" data-elfsight-app-lazy></div>

Upvotes: -3

Views: 34

Answers (1)

Lubomyr Pryt
Lubomyr Pryt

Reputation: 169

You can't do it simply by inserting new code so I'll assume you're able to edit existing code.

If it is integraded by adding HTML code, just move that code to the place you want it to be.

If the widget is created via JavaScript - you need to edit that JavaScript.

There's no other way.

Upvotes: 0

Related Questions