admin管理员组

文章数量:1325713

i have installed wordpress 5.4 installed and i create a ecommerce website in woocommerce, I've been having a problem for a long time that in my entire site i see a bug text appear on my top of page. and i see it in view source and see that the text appear on before tag. i attach the screenshot the bug text. Please let me know how to remove this.

i have installed wordpress 5.4 installed and i create a ecommerce website in woocommerce, I've been having a problem for a long time that in my entire site i see a bug text appear on my top of page. and i see it in view source and see that the text appear on before tag. i attach the screenshot the bug text. Please let me know how to remove this.

Share Improve this question asked Aug 11, 2020 at 6:11 Mohammed Saquib QureshiMohammed Saquib Qureshi 1
Add a comment  | 

2 Answers 2

Reset to default 1

you've probably enter that one in one of your file in your themes try using notepad++ to locate the 'dis' text

There is almost certainly some extraneous text "dis" that appears outside the PHP tags in a file somewhere. If you have not customised anything, the simplest solution might be to reinstall your theme with the original code.

Otherwise, there is no way to know which file this text is in, by looking at the screenshot. If you say it is on every page, then it's likely in the header.php or footer.php or some other template partial that is loaded on every page. But it could also be in a plugin somewhere. Do you get the same text if you try the default theme (Twenty Twenty)? If so, then the extraneous text is probably in a plugin. You could deactivate all plugins and turn them back on, one by one, to see which one it is.

As Kenneth suggested, you'll need to search through all your files to find it. Notepad++ and VSCode (and I'm sure many other decent text editors) have ways to search through all files at once. In Notepad++, for example, Ctrl+Shift+F will search for text in all (specified) files in a directory. This would be easier (and simpler) than deactivating your plugins and checking them one-by-one. However, sometimes searching through directories like this can take a long time and it can look like the editor has hung (especially if there are many node_modules folders), so just leave it to search and come back later.

本文标签: woocommerce offtopicHow to remove unwanted text bug in wordpress site