Tagged: custom html
- 
		AuthorPosts
 - 
		
			
				
March 8, 2016 at 10:11 am #594910
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.
March 9, 2016 at 7:38 am #595348Hey 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,
RikardMarch 9, 2016 at 1:19 pm #595542the 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.
March 14, 2016 at 9:50 am #597628Hi!
Did you try the code block element? Place all custom css code in that area.
Regards,
IsmaelMarch 14, 2016 at 11:57 am #597661Thank 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.- 
		This reply was modified 9 years, 7 months ago by 
mahasvin.
 
March 17, 2016 at 4:46 am #599412Hi!
This is wp’s wpautop feature. Try to turn it off with this plugin: https://wordpress.org/plugins/toggle-wpautop/
Regards,
IsmaelMarch 17, 2016 at 8:26 am #599479I 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?
March 18, 2016 at 11:37 am #600212Hi!
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,
IsmaelMarch 18, 2016 at 11:44 am #600219Too 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.
March 19, 2016 at 2:09 pm #600694 - 
		This reply was modified 9 years, 7 months ago by 
 - 
		AuthorPosts
 
- The topic ‘How to remove empty paragraphs around code comments?’ is closed to new replies.
 
