Homepage "News"
- This topic has 4 replies, 2 voices, and was last updated 7 years, 7 months ago by .
Viewing 4 reply threads
Viewing 4 reply threads
- You must be logged in to reply to this topic.
Home › Forums › GovIntranetters › Homepage "News"
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).
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”;
}
}
I am an idiot. HT already built controls in the plugin to manage this. Duh.
by plugin I mean widget.
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.
Cookie | Duration | Description |
---|---|---|
comment_author_email_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
comment_author_url_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
comment_author_{HASH} | Under 1 year | This is purely a convenience, so that the visitor won’t need to re-type all their information again when they want to leave another comment. |
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
wordpress_logged_in_[hash] | Indicates when you’re logged in, and who you are, for most interface use. | |
wp-settings-{time}-[UID] | This is used to customize your view of admin interface, and possibly also the main site interface. |
Cookie | Duration | Description |
---|---|---|
_ga | 2 years | Used to distinguish users. |
_gat | 1 minute | Used to throttle request rate. |
_gid | 24 hours | Used to distinguish users. |