The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
How to remove WPDis...
 
Notifications
Clear all

[Solved] How to remove WPDiscuz from top admin bar when logged in?

5 Posts
2 Users
1 Reactions
1,944 Views
(@supertrooper)
Posts: 31
Trusted Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#3542]

The top admin bar is already quite overcrowded, and there is no need to access WPDiscuz settings from each post when logged in.

Therefore I would like to remove WapDiscuz from the top admin bar but cannot find this option in the settings.

Please advise.


 
Posted : 28/12/2021 9:47 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hi @supertrooper

Please follow the solution provided here: https://wpdiscuz.com/community/troubleshooting/remove-wpdiscuz-button-from-wp-admin-bar/#post-7875


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 29/12/2021 9:19 am
(@supertrooper)
Posts: 31
Trusted Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

After inserting the following code into the functions.php file a critical error is given:

jQuery(document).ready(function(){
jQuery('li#wp-admin-bar-wpdiscuz').remove();
});

i.e. it doesn't work.

Surely there should be an option in the settings to suppress this intrusive link in the admin bar?

Please advise a solution, which works properly.

 


 
Posted : 29/12/2021 10:23 am
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@supertrooper

Please attentively read the post. It's a JS code. Never put the JS code in the functions.php file. Just follow the solution provided in the article: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 29/12/2021 1:18 pm
(@supertrooper)
Posts: 31
Trusted Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@asti

The code in the link had to be modified to make it work in the header (without the script tags it doesn't work).

<script>
jQuery(document).ready(function(){
jQuery('li#wp-admin-bar-wpdiscuz').remove();
});
</script>

I would recommend that you make this an option in the settings, so that persons unfamiliar with code, can easily make this change themselves without having to issue a support request.

Thanks for confirming and for the great support.

 


 
Posted : 29/12/2021 3:36 pm
Asti reacted