Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to change Header Tags  (Read 1706 times)

ajayvibha

  • Newbie
  • *
  • Karma: -1
  • Posts: 28
    • http://www.obiztek.com
How to change Header Tags
« on: August 26, 2007, 02:26:31 pm »

Hi,

In the snews16, h1 tag is given to the website name and h2 tag is given to the article title as shown at

http://www.freehostingindia.com/domain/my-domain-article/

I want to give h1 tag to the the artilce title and h2 title to the website name .

Any comment that how it can be done.

Logged
Regards,
AjayVibha
Online Business Technologies (OBizTek)
SEO | Hosting | Design

Joost

  • Guest
Re: How to change Header Tags
« Reply #1 on: August 26, 2007, 02:40:50 pm »

That's easy. In index.php you can change H1 to H2
In snews.php you can do a search and replace to change h2 to h1. Approximately 13 times 2 tags.If you are brave, change them all at ones. If not search them one by one and check first what it is meant for.
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: How to change Header Tags
« Reply #2 on: August 26, 2007, 05:05:14 pm »

As an alternative... if it is just the size and styling (color, font type, etc) you want to change, leave the default settings as they are and define these settings in the style.css file. If <h2> and <h1> are not defined in your stylesheet... then create the style declarations you want to apply to them. By leaving the heading tags as they are in the default sNews package... you can create and apply separate styling declarations that will apply to the tagged contents by the division they are in as well... so <h1> and <h2> can display differently within each division they are displayed in within the index.php (template) file.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU