Hi there. I’m trying to simplify the backend of a site for a client. I use a child theme and the child theme name shows on the admin menu bar on the left. If I click it, I go to the theme options panel. I’d like to just have that item called “Theme Options” because it will be more meaningful to the client. I’ve found how to override the menu item name using the avia_filter_backend_page_title
filter. But when I change the name of the theme here, it also changes it on the page title of the theme options. Can you give me a nudge in the right direction on how to change the menu name on the left but leave the page title on theme options alone?
Much appreciated!
Kevin
Hey Kevin,
Sorry for the late reply, it looks like they both share the same function. I did find a function that will remove the admin sidebar options link but leave the top bar options link, try adding this code to the end of your child theme functions.php file in Appearance > Editor:
add_action( 'admin_init', 'remove_enfold_menu_option' );
function remove_enfold_menu_option() {
remove_menu_page( 'avia' );
}
Another option to rename the menu item is to try this script in your child theme functions.php
function rename_enfold_menu_option(){
?>
<script>
jQuery(window).load(function(){
jQuery("#toplevel_page_avia .wp-menu-name").text("Theme Options");
});
</script>
<?php
}
add_action('admin_head', 'rename_enfold_menu_option');
Best regards,
Mike
Ok thanks. I’ll give it a shot.