• Resolved somanyqs

    (@somanyqs)


    In what I am sure has everyone on the forum doubled-over in laughter, I am posting the most basic of questions.

    I see in the forums people reference the line of code lots of times to help show where to add/modify files.

    What I am wondering is, how can I see what the row numbers are when I’m using WP? Obviously I barely know what I’m doing, but am starting to figure out how to change code. Just don’t know how to quickly find a line. Like if someone says “in line 344 of xxxx.php, insert “…”
    etc.

    Ok, no jokes! ??
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Most of us are using some kind of text editor that shows the line numbers when opening a WP file for editing. I use, for example, PSPad, a free, excellent editor for Windows:
    https://www.pspad.com/
    and I edit all my files with it: HTML, PHP, CSS etc.

    Thread Starter somanyqs

    (@somanyqs)

    Thanks moshu (as always! ?? )

    So you never actually edit online within xxx.com/wp-admin?
    I’m just starting and that is what I do (I’m on a Mac).
    So I’m better off cutting and pasting the text elsewhere in a text editor, editing, and then pasting back?
    Better/safer process?

    Thanks again!
    J

    Even that is not OK.
    You keep a backup (unedited) copy of all your files on your computer.
    You edit the file on your computer in a plain text editor and then upload it via FTP. If something went wrong… you can quickly upload the backup file.

    (Now, to be honest, I rarely experiment in this way on a live site. I have a local installation on my machine, accessible only for me, not from the net, and I design my themes, experiment with features on that blog. Blogs, actually, because I have installed around 8-10 different versions…)

    There are recommended text editor for Mac, too:
    Glossary#Text_editor

    Thread Starter somanyqs

    (@somanyqs)

    Thanks again moshu.
    Just downloaded Text Wrangler, which looks like it should work.

    Today my goal will be to learn how to FTP!

    I’m thinking a local installation might be too complicated for me to learn now, so I’ll just try editing and uploading piece by piece.

    I made a backup copy of my home directory using the tool from bluehost, so I think I have a backup all set. I hope!

    Thanks again –

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I see the row number of code’ is closed to new replies.