Results 1 to 4 of 4

Thread: Custom Post Menu Icon doesnt display in Backend - jobRoller 1.4.2

  1. #1
    Thread Starter
    Newbie clementsm's Avatar
    Join Date
    May 2011
    Location
    Vancouver BC, Canada
    Posts
    3
    Thanks
    2
    Thanked 1 Time in 1 Post

    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_typeAPP_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_typeAPP_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

  2. #2
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    vulgate's Avatar
    Join Date
    May 2011
    Posts
    46
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Rookie _oc_'s Avatar
    Join Date
    May 2011
    Location
    Thailand
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Display job listings on post/page using custom field as query.
    By pabl70 in forum JobRoller General Discussion
    Replies: 6
    Last Post: April 26th, 2011, 12:30 PM
  2. adding custom field at backend editing
    By alunsina in forum ClassiPress General Discussion
    Replies: 4
    Last Post: April 26th, 2011, 12:27 PM
  3. [SOLVED] Custom field order in frontend doesn't match with custom field order set in backend
    By bluecafe in forum Report ClassiPress Bugs
    Replies: 11
    Last Post: November 24th, 2010, 08:47 AM