Jump to content

filter function for the "coverImg" line in the "detail_header" file


n00bster

Recommended Posts

hi Alejandro!

is there a filter function to manipulate the line 17 in the file: detail_header.thtml

$coverImg = $coverPhoto ? $Media->thumb($coverPhoto, ['size'=>'1200x500','mode'=>'crop', 'return_src'=>false,'thumbnailer'=>'api','suppress_size'=>true], ['class' => false]) : false;

i have to change the "size" and the "mode" (from size to crop) and I thought if this could be done with a filter without overwriting the file?

Edited by n00bster
Link to comment
  • n00bster changed the title to filter function for the "coverImg" line in the "detail_header" file
×
×
  • Create New...