Skip Navigation

[Resolved] En los Edits Layout no parece el bloc de Scripts

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.28 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Rafael Corts 4 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1480535
Captura de pantalla 2020-01-27 11.47.47.png
Captura de pantalla 2020-01-27 11.46.25.png

Hola Nigel, necesito poner un código javascript en una pagina plantilla singular, para un tema de redes sociales,

<!-- Go to <em><u>hidden link</u></em> to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5e2eb3a7e64ab091"></script>

per no consigo hacer a parecer la ventana de Scrips, como lo debo hacer?
Saludos.
Rafa Corts

#1480755

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2020-01-27 at 13.02.07.png

Con Layouts puedes añadir código particular en Toolset > Layouts CSS and JavaScript, pero se añade a todas las páginas.

Si quieres incluir JavaScript en una plantilla para que se usa solo en las entradas mostrado utilizando este plantilla podrías añadir una célula Visual Editor, dentro de script tags, como ves en el pantallazo.

#1480887
Captura de pantalla 2020-01-27 15.12.29.png

Hola Nigel, tal como lo pongo al guardar me lo borra, también he puesto un alerta para probar y en cambio este funciona.
Este código debería de estar dentro del Body.
Parece que no le guste.
Saludos.
Rafa Corts

#1482873

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Me parece que tienes un problema con el atributo src, que falta protocolo, p.j.

<script src="<em><u>hidden link</u></em>"></script>
#1484991

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.