Ali
Ali

Reputation: 231

How to add a block in magento

I am working on a magento theme but stuck with adding social links in header. I just want to put three Social links on to my site in header section of every page.

Upvotes: 0

Views: 208

Answers (3)

d3vdpro
d3vdpro

Reputation: 2977

make template path hints on for your store view. System->Configuration->Developer. (You can use your specific IP in allowed IPs not to effect the view)

Disable the cache.

Refresh the home page.

You can view the file there, go to that file.

You can directly add it there or you can create a static block and use that in your phtml file according to your wish.

Upvotes: 2

Francis Kim
Francis Kim

Reputation: 4285

The base header template is located in:

/app/design/frontend/base/default/template/page/html/header.phtml

But it's not good practice to directly edit this file, while you can do so.

The proper way would be to make a new theme folder, setup your store to use the right theme within admin then to edit the header.phtml file from that theme, which will override the default base theme - eg:

/app/design/frontend/base/yourtheme/template/page/html/header.phtml

Upvotes: 2

Mark
Mark

Reputation: 2473

It will depend on the template your using. The file you'll need to edit will more than likely be in /APP/DESIGN/Somehwere . The somewhere will depend on you the theme you're using.

To see which file you need to edit, turn on template hints: From your admin panel, go to System >> Configuration >> Developer

Depending on your setup, you may have to set it for your default view or a specific store view.

A quick tutorial of template hints is here : http://www.westwideweb.com/wp/2009/08/04/magento-how-to-turn-on-template-path-hints-and-inline-translation/

Upvotes: 2

Related Questions