ThemeForest

menu_icon for child theme

1122 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
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!

652 posts
  • India
  • Microlancer Beta Tester
  • Beta Tester
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Helped protect Envato Marketplaces against copyright violations
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'
1122 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

thanks man..

by
by
by
by
by