1180 posts
  • Affiliate Level 5
  • Author Level 5
  • Collector Level 2
  • Exclusive Author
+2 more
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!

822 posts
  • 6 Years of Membership
  • Beta Tester
  • India
  • Exclusive Author
+1 more
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'
1180 posts
  • Affiliate Level 5
  • Author Level 5
  • Collector Level 2
  • Exclusive Author
+2 more
mabuc
says

thanks man..

by
by
by
by
by
by