Skip Navigation

[Fermé] content template inline styles removed with function

This support ticket is created Il y a 7 années et 3 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 réponse, has 2 voix.

Last updated by Minesh Il y a 7 années et 3 mois.

Assisted by: Minesh.

Auteur
Publications
#477246

hej toolset.

i am using the hex2rgb function …
https://toolset.com/forums/topic/colorpicker-value-and-hex2rgb/
… in a content template …
https://toolset.com/forums/topic/functions-in-intermediate-view-of-many-to-many/

… and my trouble is that somehow the editor is correcting/removing my inline-style attribute containing the function.

in my case …

<td style="background-color:rgba([hex2rgb slug='wpcf-colors-picker' output='red'],[hex2rgb slug='wpcf-colors-picker' output='green'],[hex2rgb slug='wpcf-colors-picker' output='blue'],0.5)"></td>

… is corrected to …

<td></td>

(that becomes visible of course not on save but on reload!)

the function works well in the same template placing the function anywhere else but with the style attribute.

as luo recommended before all other plugins have been deactivated and theme has been switched to default 2017.

besides the code worked before puting it to the content template.

any idea how to disable this (auto)correction?

thanks in advance for your support!

best,
s

#477369

Minesh
Supporter

Languages: Anglais (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

1)
Could you please share problem URL?

2)
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

Le sujet ‘[Fermé] content template inline styles removed with function’ est fermé à de nouvelles réponses.