Results 1 to 4 of 4

Thread: How do I make news module H1 to H2

  1. #1
    User
    Join Date
    12-11-09.
    Location
    New York, NY USA
    Posts
    87

    Default 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.

  2. #2
    User
    Join Date
    09-25-09.
    Location
    Amsterdam, The Netherlands
    Posts
    103

    Default 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?

  3. #3
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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.
    Brian

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default 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 { ... }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •