I am using editor Firebug extension of Mozilla to do temporary editing of my website pages. It is really easy to edit through Firebug & also it is very difficult to locate the file which we are editing. Magento website file structure is very difficult to understand. Is there any way to locate the file which we are editing through Firebug & edit that file for permanent changes. The provided answers does not giving me all full location of files which is i am editing. So is there any easy way to recognize the location of file in Magento file structure.
-
Enable template path hints by following the reference help.sweettoothrewards.com/article/…– Krishna ijjadaCommented Oct 30, 2016 at 7:50
-
Krishna i had already done that.– Salman DalalCommented Oct 30, 2016 at 7:52
-
Can you tell me "elements on my site" ?– Krishna ijjadaCommented Oct 30, 2016 at 7:53
-
Yeah, you go to my website bookslab.in. You can find the "Welcome to the bookslab...." section on the top of the webpage. So that section & most of the section is unable to locate using firebug– Salman DalalCommented Oct 30, 2016 at 7:55
-
@ Salman Dalal Please check the detailed answer.– Krishna ijjadaCommented Oct 30, 2016 at 8:03
Add a comment
|
2 Answers
You can simply enable Template Path Hints by:
- logging to the backend
- access System > Configuration > Developer
- switch the store view to your current store by using the top left scope switcher
- set Template Hints Path to Yes in the Debug section
-
Thanks for answer Raphael. I had already installed Template Path Hints. But, still i can't find file locations of some of the elements on my site. Commented Oct 30, 2016 at 7:51
-
@SalmanDalal the template Hints should give you the path of the templates. Please edit your question by explaining which elements you can't find as your question will most likely be closed because unclear Commented Oct 30, 2016 at 8:23
-
We have a grep
command to search the exact string among the files.
For example in the welcome message has class called welcome-msg
grep -i -n -r "welcome-msg" magento_root/app/design
If it is a Welcome message, no code is needed for this.
Go to System - Configuration - General - Design - Header
-
-
-
-
You can check with mkyong.com/linux/grep-for-windows-findstr-example Commented Oct 30, 2016 at 8:08
-
On this link there are only Linux commands & i am working on windows Commented Oct 30, 2016 at 8:11