add class to body tag (body_class) to page with content editor enabled

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Content Editor add class to body tag (body_class) to page with content editor enabled

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #532087
    Hence Wijaya
    Participant

    Is there a function to detect if a page uses / activate visual builder? I want to add a special class to apply special css. Thanks

    #534287
    J. Davis
    Keymaster

    Hi,

    I’m sorry but I’m not really sure I understand your question correctly. If you mean that there is output content created in the editor at front-end and not text from TinyMCE you can try this
    get_post_meta($postID, '_mpce_enabled', true);
    You can get more information at \motopress-content-editor\includes\ce\MPCEContentManager.php file

    Best regards,
    John

    #534458
    Hence Wijaya
    Participant

    Thanks John. That is what i need. Some page builders add specific class to body tag, so we can use that selector to make specific style if _mpce_enabled.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.