admin管理员组

文章数量:1025259

I've had my wordpress page hosted in a free host. This host added some code in exchange of the free service, like two links to their free and paid services webpages into my Meta widget.

For me it was ok at that time, but finally I moved my page to a VPS. I exported everything with All-in-One WP Migration widget, and imported it in the new host.

So the problem is that these links from my previous free host have appeared again in my Meta widget in the new host, due to the import that I've performed.

So basically, how can I remove them? How can I edit the Meta widget? I've tried to do it from the Desktop but I found no way to do it, so I guess it should be done directly modifying the file of the plugin... but I don't know which one it is.

I've had my wordpress page hosted in a free host. This host added some code in exchange of the free service, like two links to their free and paid services webpages into my Meta widget.

For me it was ok at that time, but finally I moved my page to a VPS. I exported everything with All-in-One WP Migration widget, and imported it in the new host.

So the problem is that these links from my previous free host have appeared again in my Meta widget in the new host, due to the import that I've performed.

So basically, how can I remove them? How can I edit the Meta widget? I've tried to do it from the Desktop but I found no way to do it, so I guess it should be done directly modifying the file of the plugin... but I don't know which one it is.

Share Improve this question asked Apr 7, 2019 at 22:19 Btc SourcesBtc Sources 1031 silver badge4 bronze badges 5
  • Why don't you just use a text widget instead? – Howard E Commented Apr 8, 2019 at 0:27
  • A screenshot or link would be helpful. – Karun Commented Apr 8, 2019 at 3:53
  • @HowardE because this is not the only thing that the previous hosting changed inside the code of wordpress, it has also some other modifications, and I would like to purge them all – Btc Sources Commented Apr 8, 2019 at 6:59
  • @Karun www.btcsources.es – Btc Sources Commented Apr 8, 2019 at 7:00
  • There could be a plugin or function in your theme that has hooked into wp_meta. Look for add_action which has triggered wp_meta. Start with your theme function files. – Karun Commented Apr 8, 2019 at 7:13
Add a comment  | 

1 Answer 1

Reset to default 1

There are 2 things you can do here. If you do not want to touch the source code, install any meta widget plugin editor (example - https://wordpress/plugins/custom-meta-widget/) and make required changes.

If you can access your code, then look for default-widget.php file, find the lines where you have the unnecessary links, delete them and save the file. Please keep a backup copy of the file before you try this.

I've had my wordpress page hosted in a free host. This host added some code in exchange of the free service, like two links to their free and paid services webpages into my Meta widget.

For me it was ok at that time, but finally I moved my page to a VPS. I exported everything with All-in-One WP Migration widget, and imported it in the new host.

So the problem is that these links from my previous free host have appeared again in my Meta widget in the new host, due to the import that I've performed.

So basically, how can I remove them? How can I edit the Meta widget? I've tried to do it from the Desktop but I found no way to do it, so I guess it should be done directly modifying the file of the plugin... but I don't know which one it is.

I've had my wordpress page hosted in a free host. This host added some code in exchange of the free service, like two links to their free and paid services webpages into my Meta widget.

For me it was ok at that time, but finally I moved my page to a VPS. I exported everything with All-in-One WP Migration widget, and imported it in the new host.

So the problem is that these links from my previous free host have appeared again in my Meta widget in the new host, due to the import that I've performed.

So basically, how can I remove them? How can I edit the Meta widget? I've tried to do it from the Desktop but I found no way to do it, so I guess it should be done directly modifying the file of the plugin... but I don't know which one it is.

Share Improve this question asked Apr 7, 2019 at 22:19 Btc SourcesBtc Sources 1031 silver badge4 bronze badges 5
  • Why don't you just use a text widget instead? – Howard E Commented Apr 8, 2019 at 0:27
  • A screenshot or link would be helpful. – Karun Commented Apr 8, 2019 at 3:53
  • @HowardE because this is not the only thing that the previous hosting changed inside the code of wordpress, it has also some other modifications, and I would like to purge them all – Btc Sources Commented Apr 8, 2019 at 6:59
  • @Karun www.btcsources.es – Btc Sources Commented Apr 8, 2019 at 7:00
  • There could be a plugin or function in your theme that has hooked into wp_meta. Look for add_action which has triggered wp_meta. Start with your theme function files. – Karun Commented Apr 8, 2019 at 7:13
Add a comment  | 

1 Answer 1

Reset to default 1

There are 2 things you can do here. If you do not want to touch the source code, install any meta widget plugin editor (example - https://wordpress/plugins/custom-meta-widget/) and make required changes.

If you can access your code, then look for default-widget.php file, find the lines where you have the unnecessary links, delete them and save the file. Please keep a backup copy of the file before you try this.

本文标签: Remove links from meta widget