Custom Post Menu Icon doesnt display in Backend - jobRoller 1.4.2
Tried to find this in the forums, and haven't so hopefully I am not reposting something already solved.
I have JobRoller 1.4.2 running on a site, and created a child them, and then noticed that both the "Jobs" and "Resumes" custom post sub-menu items in the WordPress back-end don't display their menu-icons.
Things like this just bug me whenever I log into the backend of
WP, so thought I would figure out what was wrong. The custom post types are registered in /includes/admin/admin-post-types.php, and the menu-icons field use "get_stylesheet_directory_uri()" instead of "get_template_directory_uri()", so to fix the missing icon problem do the following:
In the function jr_post_type() find the line that begins with "
PHP Code:
register_post_type( APP_POST_TYPE,
" and in that call find ""
PHP Code:
'menu_icon' => get_stylesheet_directory_uri() . '/images/job_icon.png',
and change this to "
PHP Code:
'menu_icon' => get_template_directory_uri() . '/images/job_icon.png',
"
And scoot down a little further and do the same for the resume custom post type, by finding the line starting with "
PHP Code:
register_post_type( APP_POST_TYPE_RESUME,"
and in that change the line
PHP Code:
'menu_icon' => get_stylesheet_directory_uri() . '/images/resume_icon.png'
to
PHP Code:
'menu_icon' => get_template_directory_uri() . '/images/resume_icon.png'
.
The the icons work in the backend.
Yes, I know, I am picky