How to remove "posted by" and agent image on news

Discussion in 'Style and design' started by mike-rsr, Dec 16, 2011.

  1. mike-rsr

    mike-rsr New Member

    I would like to remove the posted by, the date posted and the agent picture on the news pages and anywhere else. I searched but could not find it.
    Anyone know how to do all or some?
    Thanks
    michael
  2. bs01

    bs01 Established Member

    Just edit the news templates and remove the sections you don't want.
  3. chrisrouse

    chrisrouse Reputed Member

    Just came across this old post while digging into some things in templates.

    To remove the avatar and meta data (by line, date line) you need to edit the two news templates.

    Add the red comment markers around this line to remove the avatar.
    <!--<div class="newsavatar"><img src="<{$_baseName}><{$_templateGroupPrefix}>/Base/StaffProfile/DisplayAvatar/<{$_newsItem[staffid]}>/<{$_newsItem[emailhash]}>/60" align="absmiddle" border="0" /></div>-->

    Do the same thing around this line (or each part you want to hide) to remove the meta from the news.
    <!--<div class="newsinfo"><{$_language[postedby]}><{$_newsItem[author]}><{$_language[on]}> <{$_newsItem[date]}></div>-->

    I haven't been able to figure out how to hide this stuff in the Latest Updates box if you have news showing on your main support page and staff dashboard, but it does hide it when you view the individual article. There has to be something else overriding this somewhere in another template that I haven't found yet.
  4. Bacon

    Bacon New Member

    newbie question: where is the template found? File path please.
  5. chrisrouse

    chrisrouse Reputed Member

    Admin CP>Templates. Find the ones for News.
    James Donovan likes this.
  6. Bacon

    Bacon New Member

    Oh boy, thanks. I was looking at files on the FTP site...
  7. mason

    mason New Member

    To remove the avatar and staff details from the index page you need to go to AdminCP>Templates>General
    Select 'homeindex' template

    Add the red comment markers around this line to remove the avatar.
    <!--<div class="newsavatar"><img src="<{$_baseName}><{$_templateGroupPrefix}>/Base/StaffProfile/DisplayAvatar/<{$_newsItem[staffid]}>/<{$_newsItem[emailhash]}>/60" align="absmiddle" border="0" /></div>-->

    Do the same thing around this line (or each part you want to hide) to remove the meta from the news.
    <!--<div class="newsinfo"><{$_language[postedby]}><{$_newsItem[author]}><{$_language[on]}> <{$_newsItem[date]}></div>-->

Share This Page