How to remove automatically added custom style tag?

In my case the style tag was added by the flying font plugin. I have modified the file ‘wp-content/plugins/flying-fonts/flying-fonts.php’ ……………. $style = “<style>body{font-family:-apple-system,system-ui,BlinkMacSystemFont,’Segoe UI’,Roboto,Oxygen,Ubuntu,Cantarell,’Fira Sans’,’Droid Sans’,’Helvetica Neue’,sans-serif !important}code{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace !important}</style>”; $style=””; // set the style as ” $html = str_replace(‘</head>’, $style . ‘</head>’, $html); ……… And i have added the style manually in non … Read more

Give custom class names to WP nav sub-menu

I was able to work this out by using a hook that I grabbed from Artemiy Egorov’s answer on this post https://stackoverflow.com/questions/5034826/wp-nav-menu-change-sub-menu-class-name so I figured I’d share in case someone else needs it too: add_filter( ‘nav_menu_submenu_css_class’, ‘rename_sub_menus’, 10, 3 ); function rename_sub_menus( $classes, $args, $depth ){ foreach ( $classes as $key => $class ) { … Read more