WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Javascript replace classname help.

[Resolved] Javascript replace classname help.

  • Noahj Champion
    Member

    @brand-dedication

    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?

    Thanks,

    https://wordpress.org/plugins/add-admin-javascript/

Viewing 1 replies (of 1 total)
  • Noahj Champion
    Member

    @brand-dedication

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

    All works find now.

    Thanks!

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