Homepage "News"

Home Forums GovIntranetters Homepage "News"

Viewing 3 reply threads
  • Author
    Posts
    • #3090
      Michael Link
      Participant

      After I posted this I found another post that reminded me the code would be in a plug-in. Sure enough it’s in the ht-feature-news plugin. (see below). My sub-question now is how do I modify a plug-in so that my changes are not overwritten by an update. I know how to do child themes, are there child plugins? 🙂

      for ($i = 1; $i <= $totalstories; $i++) {
      if ($i <= $largeitems) {
      $newsgrid[] = “L”;
      }
      elseif ($i <= $largeitems + $mediumitems) {
      $newsgrid[] = “M”;
      }
      elseif ($i <= $largeitems + $mediumitems + $thumbnailitems) {
      $newsgrid[] = “T”;
      }
      elseif ($i <= $largeitems + $mediumitems + $thumbnailitems + $listitems) {
      $newsgrid[] = “Li”;
      }
      }

    • #3091
      Michael Link
      Participant

      I am an idiot. HT already built controls in the plugin to manage this. Duh.

    • #3092
      Michael Link
      Participant

      by plugin I mean widget.

    • #3093
      Luke Oatham
      Keymaster

      You’ll be able to control the output in the widget settings, just choose zero for large and medium, and only show thumbnails. Then all news items will show a thumbnail on the right.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.