Dekadinious
Forum Replies Created
-
The issue seems to have been fixed, thanks!
@a3rev I am not the author of the plugin, just a passer by wanting to help! ??
It seems this is already implemented in version 1.17 that you can find on GitHub: https://github.com/duracelltomi/gtm4wp
Let’s hope that this version is soon pushed to the WordPress repository!
It seems this is already implemented in version 1.17 that you can find on GitHub: https://github.com/duracelltomi/gtm4wp
Let’s hope that this version is soon pushed to the WordPress repository!
It seems this is already implemented in version 1.17 that you can find on GitHub: https://github.com/duracelltomi/gtm4wp
Let’s hope that this version is soon pushed to the WordPress repository!
It seems this is already implemented in version 1.17 that you can find on GitHub: https://github.com/duracelltomi/gtm4wp
Let’s hope that this version is soon pushed to the WordPress repository!
It seems this is already implemented in version 1.17 that you can find on GitHub: https://github.com/duracelltomi/gtm4wp
Let’s hope that this version is soon pushed to the WordPress repository!
After going to GitHub I saw that these changes were implemented 4 months ago. I don’t know why the updates have not been pushed to the WordPress repository.
It should therefore be enough to download version 1.17 from GitHub: https://github.com/duracelltomi/gtm4wp
Forum: Developing with WordPress
In reply to: WP Cron job doesn’t run after another was runWP Cron isn’t logged the same way as for instance the Action Scheduler. But the cron-lock for a single server called job should only be 60 seconds. I got stumped on this and also didn’t need to run my code like this, so I just removed the cron job.
Forum: Fixing WordPress
In reply to: WP-CLI not updatingIt’s a Linux server and I believe I downloaded the PHAR and set it in my users’ path. I have been able to update it normally once before.
Forum: Developing with WordPress
In reply to: Will wp_mail reuse authentication?I am thinking only of wp_mail directly towards the server. I’ll have to code something new then ??
Forum: Fixing WordPress
In reply to: Title Product in woocommerce product page not responsive mobileDo you mean that you do not want it to break the words by letters? Then you need to set this on your h2-tags with the product titles in them:
overflow-wrap: normal;
Now they won’t wrap, but they will expand beyond their container if you don’t also adjust their font-size or add
­
as I mentioned.Forum: Fixing WordPress
In reply to: Title Product in woocommerce product page not responsive mobileI can’t see this problem on the link you provided. The normal thing to do is to add
­
where you want the word to break with a hyphen.Reallyreally­longword
will look like this on desktop:Reallyreallylongword
and like this on mobile:
Reallyreally-
longwordHope this helps ??
- This reply was modified 2 years, 9 months ago by Dekadinious.
Forum: Developing with WordPress
In reply to: Remove admin menu elementsOk, so I was too quick when looking through the code on Github last time. I just looked at the wrong parameter. If you see on this line:
You can see that the slug is actually not “roles” even though that is the URL in WordPress. The slug is “members”. I did this, and it worked:
function remove_pages_in_admin() { remove_menu_page('members'); } add_action('admin_menu', 'remove_pages_in_admin');
So you should use the “admin_menu” hook and just find the correct slug. Just go to the Github repository of each plugin and type in “add_menu_page” and look at the fourth parameter. If the plugin does not have a Github repository, just open Notepad++ or VSCode or something and use “Find in files” for the plugin folder you can download from the plugin repository ??
It should work if you find all the slugs! ??
PS: OR I think you can just dump the whole menu to find all slugs.
function remove_pages_in_admin() { global $menu; echo "<div style='margin-left: 200px; margin-top: 50px;'>"; foreach ($menu as $val) { echo $val[2] . "<br>"; } remove_menu_page('members'); echo "<br>"; foreach ($menu as $val) { echo $val[2] . "<br>"; } echo "</div>"; } add_action('admin_menu', 'remove_pages_in_admin');
This is extremely ugly, but will first print out a list of all menu slugs in the admin dashboard. Then it will remove “members” and print the list again. You will see “members” in the first list, but not the second. This way you can remove all you don’t want to have ??
Forum: Developing with WordPress
In reply to: Remove admin menu elementsJust to be sure I am understanding correctly: This is all for sidebar menu pages, not admin bar (on the top)?