[Resolved] functions.php

Home Forums Support functions.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1358129
    jose cases

    I need to add this code tu funtions.php

    add_filter('tiny_mce_before_init','tinymce_allow_unsafe_link_target');
    function tinymce_allow_unsafe_link_target( $mceInit ) {
    $mceInit['allow_unsafe_link_target']=true;
    noopener noopenerreturn $mceInit;
    }

    I realize if i create a hook i cand do the same, but i tried and its not working.
    Which are the right way to do it?

    #1358157
    David
    Staff
    Customer Support

    Hi there,

    that code has to go in your Child Theme functions.php or use the Code Snippets plugin to add it to your site. It will not work in a Hook Element.

    #1358244
    jose cases

    I installed an empty chilf theme and now some custon CSS is not aplluyin?
    What Can i do?

    #1358314
    Leo
    Staff
    Customer Support

    Can you open a new topic for the separate question?

    Thanks 🙂

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