0
votes

I am making a plugin for custom wordpress admin panel theme, I have changed most of the things as per my requirement using hooks but I am unable to change Page Heading in Admin Panel in wordpress.

3
What do you refer as "page heading"? Please, add more technical details (HTML markup, PHP hooks, snapshots). - brasofilo
in wordpress dasboard latest version 3.1, in each page we get a heading in top of the page, like Plugins in plugins page, Users in users page. This comes vis PHP hook in wordpress, i want to change this. thanks for the reply... - Balram Singh

3 Answers

1
votes

I am trying this, this is working fine for me, anyone having better solution

add_filter( 'gettext', 'change_post_to_article1' );
add_filter( 'ngettext', 'change_post_to_article1' );
function change_post_to_article1( $translated ) 
{  
   $translated = str_replace( 'Users', 'Customers', $translated );
   $translated = str_replace( 'Add New User', 'Add New Customer', $translated );
   return $translated;
 } 
0
votes

I'm not sure how is your Admin Panel, but you can try this

array( "name" => "Heading",
    "desc" => "Select heading style",
    "id" => $shortname."_style",
    "type" => "select",
    "options" => array("heading.css", "heading2.css"),
    "std" => ""),

Where heading.css is your setting file. In this case you have a special css file ore more, where you can setup your heading.

Tell me if is ok!

0
votes

Like i said, creating a Wordpres Theme Admin Panel it's not so easy, but they are a lot of tutorials on internet. After a few days of searching i finally created the theme admin panel.

I will share this:

http://5wpthemes.com/blog/how-to-create-a-wordpress-theme-admin-panel/