Add Admin JavaScript
[resolved] Javascript replace classname help. (2 posts)

  1. Noahj Champion
    Posted 2 years ago #

    Hi Scott,

    Thanks for this plugin. It is giving me a solution that is workable right now.

    I am using the plugin Tabify Edit Screen, which since recent WordPress updates or plugin updates has quit supporting in php filter to register unregistered meta boxes. Make sense?

    I am replacing 1 or 2 class names through javascript to achieve what I need.

    I have the following.

    document.getElementById("psp_onpage_optimize_meta_box").className = ".postbox.tabifybox.tabifybox-3";

    My question is when I do this the "sortable" post box for this meta box is not sortable. Is there a way to work this where I can replace a classname of a meta box using javascript but keep the metabox sortable?



  2. Noahj Champion
    Posted 2 years ago #

    Got this fixed. I was in the css mindset and adding periods to the className when I shouldn't have.

    All works find now.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic