WordPress Contextual Hlp - wordpress

Sorry for the "Hlp" in the title - It seems that the forum has listed "Help" as a restricted word.
Anyway, I wonder if someone can help me? Ive been searching for a while to no avail.
In the WordPress contextual help tab, I have created my own custom items - great!
I want to unset the default WordPress help items (overview/ navigation/ layout/ content) but I cannot seem to find a code snippet.
Appreciate any advice.
Thank you

I finally managed to find the below code which removes the default help tabs as I wanted.
add_action('admin_head', 'remove_default_tabs');
function remove_default_tabs() {
$screen = get_current_screen();
$screen->remove_help_tabs();
}

Related

How to hide the word (--wordpress) at browser tab from login page of WordPress?

I'm trying to remove the word (-wordpress) from browser tab of login page but couldn't figure it out. Will be great if anyone could help here.
As it shows in the screenshot, im trying to remove the highlighted in yellow. Thanks
You'll want to do this in your theme's functions.php file. Here are some modifications that you can use:
function my_login_logo_url() {
return home_url();
}
add_filter( 'login_headerurl', 'my_login_logo_url' );
function my_login_logo_url_title() {
return 'Your Site Name and Info';
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );
For more information, please refer to the WordPress Codex page here.
I have to say I have found what you were looking for!
You'll have to head over to the 'wp-login' file and search for the $login_title attribute.
There you'll have to search for the word 'Wordpress' itself and erase it.
I fount mine on line 72.
You'll see the word as a string inside the parenthesis.
You'll have to go to the public_html and find the file there and change it.
I really hope It helped!
Good luck to anyone who reads it!

Wordpress - remove all classes added by WP on pictures

When I add pictures in an article on wordpress, wordpress automatically add classes to the pictures.
eg :
I simply want to desactivate those added classes, of which I do not see the point and actually annoys me when I want to center a group of pictures.
How can I do so?
I've read about the following filter :
add_filter( 'get_image_tag_class', '__return_empty_string' );
But given that the pictures classes seems dynamical (picture id?), how can I do so? And... where should I do that fork?
Any other method to clean that code?
Thanks !
Solved as previously mentionned in the answers, thanks !

Breadcrumb NavXT creating wrong href link

I have used Breadcrumb NavXT plugin to create breadcrumbs for my site. I get the perfect breadcrumb trail as required but it creates a wrong href link for category page. How do I stop/solve that?
My required link :
http://www.example.com/category/xyz/
Plugin creates:
http://www.example.com/category/xyz/?post_type=netz_features
FYI: I have already asked for help from the plugin community but didn't get any response.
I would appreciate any help from you guys.
Thanks in advance.
Well I got the answer to my own question. But anyone searching for the same issue, please follow these steps to save your day :)
To Remove post_type from Breadcrumb NavXT URLs, just copy & paste the below code into a site specific plugin.
add_filter('bcn_add_post_type_arg', 'my_add_post_type_arg_filt', 10, 3);
function my_add_post_type_arg_filt($add_query_arg, $type, $taxonomy)
{
return false;
}
The above code is the most basic code that disables adding the post_type query argument for all resources.

Woocommcerce - Remove the "Related products" tab

I'm having a hard time trying to remove the "Related products" tab completely from my website.
I have searched for a solution but I have not had any luck so far. I would really appreciate if someone out there had a solution for this :)
The tab that i want to remove is shown here, below the image on this website for example; http://reservedelpilleovn.dk/produkt/gloederoer-eltaender-10-mm-x-200-mm-400-watt-2/
Hoping someone has a solution! :)
You'll need to add a function to your functions.php and hook into it via woocommerce_related_products_args:
function wc_remove_related_products_tab( $args ) {
return array();
}
add_filter('woocommerce_related_products_args','wc_remove_related_products_tab', 10);

Wordpress Job Manager Pagination Issue

I am using the Wordpress Jobs Manager plugin. It all works great except the pagination feature. When enabled, the pagination buttons just redirect the user to the homepage instead of to the paginated page of results. As far as i can tell this is a problem with permalinks but i wondered if anyone had a workaround as i cannot use the standard permalinks on my site.
Does anyone know of any possible fixes? Its a custom built theme.
Thanks for you help guys
I know its a long time since you posted, but i had this issue today and came across your post.
I did some investigating and found it to be a problem with the way wordpress was dealing with the rewrites for canonical redirects.
I did a search on the internet and found the following post on wordpress.stackexchange.com by Celine Garel which deals with this situation for custom post types, i just changed it to work with a page.
https://wordpress.stackexchange.com/questions/134339/pagination-on-custom-post-type-not-working-if-permalinks-set-to-rewrite-url
Add this to your themes function file,
add_filter( 'redirect_canonical','custom_disable_redirect_canonical' );
function custom_disable_redirect_canonical( $redirect_url ){
if ( is_page('Your_job_list_page') ) $redirect_url = false;
return $redirect_url;
}
This fixed it for me. Hope it helps you or anybody else.

Resources