function class doesnt work

To override the default styles you have to use more specific selectors. #wpadminbar .my_menu_item_class { background: yellow; } #wpadminbar .menupop.hover ul li.my_menu_item_class > a { color:red; }

some profile informations like youtube link doesnt seem

Your reply to gregory24 isn’t really explicit enough I’m afraid.. The reason you can display a FontAwesome icon without the if statement is only because this html <span class=”fa fa-youtube”>…</span> is loaded into the DOM of you page meanwhile your $youtube_profile variable is likely containing some value but your statement is wrong. this should work … Read more

Modify function output in a plugin

You haven’t created your filter yet. You can’t just filter a function. You’ll need to call the function apply_filters(), and then you can use it in your functions.php file. So above return $content; add something like this: $content = apply_filters( ‘my_content_filter_name’, $new_content, $content ); Then, use it like this: function modify_store_output( $content ) { $content … Read more

500 Error, Get custom field and returning it

500 error or internal server error is probably caused by a PHP error. By enabling WordPress debug, you’ll easily find where the problem is. You can follow the instructions here https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log From your code, it’s easy, you’re missing a semi-column before the closing curly bracket.