• Bani

    (@mohammmad)


    Hi folks,
    I’m a graphic designer, new to wordpress & trying to understand all this wordpress structure.

    Note :
    I have downloaded all my website contents using a FTP program (Filezilla) to my PC.
    Problem:
    Now in my browser I have a page that I need to locate through those downloaded files. In Google Chrome, I can inspect a page and see the code; but I need to know where physically this code is located in my files. This might be a dumb question, but I tried my best before posting here. I appreciate any comments on this .

Viewing 6 replies - 1 through 6 (of 6 total)
  • Borko

    (@media-x)

    You have to be more specific. Can you post a link to the page where the text you’re tryin’ to find is located?

    dauidus

    (@dauidus)

    Where that PHP code is located really depends on your theme structure and the WordPress file structure. You might have to look through the following codex page – theme stuff is located about 2/3 down.

    I’d use grep on the command line but that may be outside your comfort zone. If your OS is Windows, there’s WinGrep which is described thus:

    Windows Grep is a tool for searching files for text strings that you specify. Although Windows and many other programs have file searching capabilities built-in, none can match the power and versatility of Windows Grep.

    https://www.wingrep.com/

    Borko

    (@media-x)

    Notepad++ also provides the “Find in files” functionality. Locally, open Notepad++, go to Search tab -> Find in files and point to the desired folder. Search for the text you want to locate.

    Thread Starter Bani

    (@mohammmad)

    I tried Notepad++ still not able to find the piece of code. maybe I’m doing something wrong.
    Here’s the deal:
    There’s a page with an unwanted link in it. I want to remove it through the code and upload the file again, but I don’t know where the code is. check this out :
    https://www.ideagraphicdesign.com
    at the bottom of the page there’s a “Slides S2 Home” picture box with nothing in it. I need to clear that.
    Note:
    In google chrome I did “inspect” the page and found the code which is making this link, and searched for this code through my files. no Luck.

    Thank you for all your helps …

    dauidus

    (@dauidus)

    Looks like this might be called in from an include file. Is there any call to get a PHP file where that image appears in the code?

    In the meantime, this should provide a temporary solution to hide the non-image:

    .home .alignnone.size-full.wp-image-53 {
        display: none;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘locate a file with specific text in it’ is closed to new replies.