Homepage "News"

Home Forums GovIntranetters Homepage "News"

Viewing 4 reply threads
  • Author
    Posts
    • #3087
      Michael Link
      Participant

      I’m going bonkers trying to figure this out. Could someone please shed some light on where the code/CSS is that dictates a picture in the “Latest News” widget is bigger vs. smaller. I would like to tweak the code to ensure all images are displayed like the second image (to the right).

      Attachments:
      You must be logged in to view attached files.
    • #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 4 reply threads
  • You must be logged in to reply to this topic.