Support » Plugin: Add Admin JavaScript » Javascript replace classname help.

  • Resolved Noahj


    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?


Viewing 1 replies (of 1 total)
  • Noahj


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

    All works find now.


Viewing 1 replies (of 1 total)
  • The topic ‘Javascript replace classname help.’ is closed to new replies.