1175 posts
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
mabuc says

Hi,

I know this is a basic question but how you guys get your CPT menu icons display when using a child theme?

this is the most common snippet for menu_icon but this is not working when you use a child theme..

'menu_icon' => get_stylesheet_directory_uri() . '/img/slider.png'

anyone tried fixing this before? I appreciate any help…

thank you very much!

782 posts
  • Exclusive Author
  • India
  • Has been a member for 5-6 years
  • Beta Tester
  • Referred between 1 and 9 users
  • Microlancer Beta Tester
laranz says

I think the img folder is situated in the parent theme, so you can try something like this

<?php get_template_directory_uri() ?> . '/images/menu-icon.png'
1175 posts
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
mabuc says

thanks man..

by
by
by
by
by
by