Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #595348

    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

    #595542

    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.

    #597628

    Hi!

    Did you try the code block element? Place all custom css code in that area.

    Regards,
    Ismael

    #597661

    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.

    • This reply was modified 8 years, 8 months ago by mahasvin.
    #599412

    Hi!

    This is wp’s wpautop feature. Try to turn it off with this plugin: https://wordpress.org/plugins/toggle-wpautop/

    Regards,
    Ismael

    #599479

    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?

    #600212

    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

    #600219

    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.

    #600694

    Hi!

    Sorry we could not help you that time.

    We would be happy if you decide for Enfold or one of our themes for one of your future projects.

    Regards,
    Günter

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘How to remove empty paragraphs around code comments?’ is closed to new replies.