• So for example, i got a page which says, “i want to solve this problem” when i select that text with firebug or inspect element, in the right screen i only see in which file it is to change the font and color etc and left i see the text and can change it to see live difference but i can nowhere see in which file that word is so i can change it so it looks online how i want.

    Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Not that easy. Is the text part of some page content, thus stored in the database? Or is it generated from a template? Even if you’re sure it’s of template origin, which template? Several can be used on any given page.

    What I’ve ended up doing to determine which template is producing what output is adding <!-- html comments --> identifying the template at the top of each template file (on my test installation only). When you view the page source in your browser, it’s easy to see the comment with the typical syntax highlighting, which tells me which template is in play for any portion of the page.

    Thread Starter Raptor80

    (@kai1980)

    Ok let me clearify a couple things, for friends i create some websites, some i create myself but some need cms so i use wp. I only use 1 template which is the one i created myself.

    But sometimes plugins have stuff in it which i either want to change to my own language or delete completely and usualy that is some text ??

    Moderator bcworkz

    (@bcworkz)

    Oh, plugins! They can be all over the place on how they organize data. Your best bet is to grep the plugins folder for a likely text fragment of what you’re looking for. Assuming it is hard coded. Obviously will not work if the text is from the DB or interspersed with php code.

    Or you could alternately deactivate plugins one at a time and observe when the target text disappears to narrow down your search to a particular plugin folder.

    Sorry there is no good answer. Good luck hunting ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do i know which file i need to change a text after inspecting with firebug?’ is closed to new replies.