Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #269819

    HI,

    I using some specific codes in “input” and “img’ elements, like that:

    <input id=”” class=”FXDB” FX=”L:1″ ………….>
    <img class="FXalert" FX=”FirstName”………… />

    I am using this elements inside a CODE BLOCK, and every thing works perfectly.

    MY PROBLEM happens in some cases when an incorrect code is putted in the page, in this situation the AUTOCORRECT of wordpress change my code and DELETE the FX in the elements.

    How could I disable this autocorrection in specific pages?

    THANKS

    #269846

    Hey!

    This is more of a WordPress issue rather than a theme one, unfortunately is out of the support scope we offer, try contacting a developer.

    Best regards,
    Josue

    #269869

    Hi,

    Ok, no problem. For someone who has a similar problem, the above code on functions.php solved my problem.

    function override_mce_options($initArray) {
    $opts = ‘*[*]’;
    $initArray[‘valid_elements’] = $opts;
    $initArray[‘extended_valid_elements’] = $opts;
    return $initArray;
    }
    add_filter(‘tiny_mce_before_init’, ‘override_mce_options’);

    Thanks

    #269870

    Thank you very much for taking the time to share it :)

    Best regards,
    Josue

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