• Resolved vynce1982

    (@vynce1982)


    I have customizr theme ( 3.2.15) and wordpress 4.1. When I switch to my customizr child theme the visual tab stops working. It will not display the text that is present nor will it allow me to enter any text. If I switch to the text tab I can see code I’ve entered previously. All other fields in the admin are not affected.

    All I have in my child theme is a CSS and a js/custom.js

    I’ve tried reinstalling wp core files, All plug-ins are disabled and I manually reset plugin folder, I deleted and re-installed my child theme – nothing is working. refreshing the wp_includes folder and reinstalling the child theme seem to have worked momentarily.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’m thinking your custom js might be throwing an error, can you open your browser console and see if any errors are being reported?

    Thread Starter vynce1982

    (@vynce1982)

    I tried removing my javascript, it had no effect.

    These are the errors.

    1) Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)

    2)

    JQMIGRATE: jQuery.browser is deprecated
    Object.defineProperty.get
    $.extend.disableTextSelection
    $.(anonymous function)
    (anonymous function)
    m.extend.each
    m.fn.m.each
    $.fn.(anonymous function)
    (anonymous function)
    j
    k.fireWith
    m.extend.ready
    J

    Thread Starter vynce1982

    (@vynce1982)

    I removed my custom.js. it had no effect. While on the admin screen it reports…

    Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)

    and

    JQMIGRATE: jQuery.fn.live() is deprecated
     console.trace()
     migrateWarn
     jQuery.fn.live
     (anonymous function)
     j
     k.fireWith
     m.extend.ready
     J
    Thread Starter vynce1982

    (@vynce1982)

    Thread Starter vynce1982

    (@vynce1982)

    it seems that the closing bracket in my functions.php file was to blame…You are supposed to leave out the closing bracket in all php files??

    Yep, that’s considered best practice these days :).

    Thread Starter vynce1982

    (@vynce1982)

    but as the other solutions it seems to have solved my problem only momentarily. the tinymce editor is back to its tricks…if i switch to visual i don’t see anything that i’ve entered while in text, nor can i type anything.

    I can add media and i see it if i switch back to the text tab….any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Visual editor doesn't work when I switch to child theme’ is closed to new replies.