Tagged: custom html
I am making custom HTML/CSS code for the page in text editor. Everything goes well except Enfold inserts paragraphs around code comments. So <!-- some comment-->My custom code<!-- end of some comment-->
becomes <p><!-- some comment-->My custom code<!-- end of some comment--></p>
. How can I change that behaviour in child theme?
I tried to remove wpautop, but it did not worked.
Hey mahasvin,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply. Also please point out where you are adding your custom code.
Thanks,
Rikard
the page in question is Front Page, where I need to comment code for less CSS aware admins. But commenting code breaks layout. Please do not update installation. I need solution within the existing stack. I added sinfo in Private section.
Hi!
Did you try the code block element? Place all custom css code in that area.
Regards,
Ismael
Thank you for the tip, Ismael.
But I need this in text editor, not visual framework.
In case WP theme changed, HTML/CSS code must stay.
Hi!
This is wp’s wpautop feature. Try to turn it off with this plugin: https://wordpress.org/plugins/toggle-wpautop/
Regards,
Ismael
I am afraid it is not. I have per page wpautop switch, I also tried filter it out, does not work. It is something in avia framework. Is there a way to filter it out?
Hi!
I logged in to the site but the plugin’s panel is disabled. Please give us full admin right then we’ll check the issue.
Best regards,
Ismael
Too late, sorry. I removed temp admin account from the system, and decided to move without enfold for further projects. It is nice work per se, but probably not for every need, which I fully understand. That will save you some hours too.
In case you know where the internal AVIA filter for the_content is located, please let me know.
Consider this one closed as unresolved in time.