Add an element

Support MB Settings Page Add an elementResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11697
    jamesfoskerjamesfosker
    Participant

    I need to add an element next to the setting page title, the element I am wishing to add is a button which open to the plugins customizer settings.

    Ideally, I could place it next to the settings page title

    #11705
    Anh TranAnh Tran
    Keymaster

    Hi James,

    Currently, the only way to do that is via JavaScript, e.g. using JS to add HTML to the page title.

    #37527
    Alaan TVAlaan TV
    Participant

    I tried to use the wp_title hook, but it seems not working.

    Any other option to do it without JS? Or not to esc_html the title?

    #37537
    Long NguyenLong Nguyen
    Moderator

    Hi Alaan,

    The filter wp_title works with the page/post title, not the admin/settings page title in the admin area. Currently, there is no way to add some HTML code to the settings page title. I will inform the development team to consider supporting a filter hook to change the title in future updates.

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