1179 posts
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+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!

791 posts
  • Has been part of the Envato Community for over 5 years
  • Has been a beta tester for an Envato feature
  • Located in India
  • Sells items exclusively on Envato Market
+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'
1179 posts
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
mabuc says

thanks man..

by
by
by
by
by
by