New answers tagged

1

WP nav menus don't allow you to paste in HTML directly. Option 1 Instead, you could create a "Cart" menu item, and use CSS to move the text off the visible page (so screen readers still read it, but sighted visitors don't see it) and add the icon with an :after. (You can add a custom CSS class to the menu item in wp-admin, and use that to identify which ...


0

If you're building a custom menu page for your theme options, then you can first use add_menu_page() to register the menu page. Then to use custom styles and scripts on that page, you need to enqueue them on admin_enqueue_scripts action. Something along these lines, function my_enqueue_admin_assets() { $screen = get_current_screen(); // only enqueue ...


Top 50 recent answers are included