How do I make news module H1 to H2
Hi again,
I need to style titles of my news articles as H2 instead of an H1 except that unlike most other elements I can't select the h2 for the headline.
Is there a template that I can adjust for this? or is there a way to add a class to the h1 tag of a news article?
I need to differentiate from the H1 tag of the newsreader module and the article its self.
Ah Never mind I found it.
system/modules/news/templates/news_full.tpl and copied to the templates folder.
Re: How do I make news module H1 to H2
Maybe it is safer to do this with CSS instead? Style h1 as h2 in the newsreader?
Re: How do I make news module H1 to H2
/system/modules/news/templates/news_full.tpl is the template you are looking for.
Copy to /templates/ and change the header tag to what you want.
Re: How do I make news module H1 to H2
Like these guys have said, you can either edit the template or change the css. I usually look for a css solution before changing templates. For instance, you could define a selector like this:
Code:
h2, .mod_news[something] h1 { ... }