Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options for simple related links in article content #96

Open
MirandaEcho opened this issue Jul 14, 2020 · 15 comments
Open

Options for simple related links in article content #96

MirandaEcho opened this issue Jul 14, 2020 · 15 comments

Comments

@MirandaEcho
Copy link
Collaborator

Goal: Create a new widget area/implement a plugin for simplified related links within the body of an article/post.

Examples of styles:

  • Apple news recirculation links as an example
  • Washington Post
  • Automatic as much as possible
  • Ability to customize headline when they’re longer (nice to have)

Options to explore/estimate:

  • Largo widget looked good on mobile, but not desktop. Maybe some customization there?
  • Plugin for related stories in article content?
  • Something else custom?
@benlk
Copy link
Collaborator

benlk commented Jul 17, 2020

Appearing in Apple News at the end of articles:

Screen Shot 2020-07-17 at 14 21 36

On the Washington Post website, at the end of articles:

Screen Shot 2020-07-17 at 14 27 14

I do not see any in-article related links widgets on WaPo or in Apple News.

Their current post-bottom widget, the "Read This Next"-titled Largo Related Posts widget:

Screen Shot 2020-07-17 at 14 20 05

And on mobile:

Screen Shot 2020-07-17 at 14 45 38


Options:

  1. Differentiating styles for a Related Posts widget in a SCAIP widget area. Perhaps a different-colored background?
  2. Introducing another plugin to their site might be risky; we discussed https://wordpress.org/plugins/wordpress-popular-posts/ in Slack back at https://innorg.slack.com/archives/GEHS15UE8/p1591370277014700

Here's what a two-post Related Posts widget looks like:
Screen Shot 2020-07-17 at 15 18 53

And a widget from the WordPress Popular Posts plugin:

Screen Shot 2020-07-17 at 15 35 36

Note the weird styles from here that are making it be extra wide below 1250px:

&>aside {
max-width: unset;
margin-left: ~"calc(-2 * 15.021276594%)";
margin-right: ~"calc(-2 * 15.021276594%)";
@media (max-width:1250px) {
width: 100vw;
}
@media (max-width:979px) {
margin-left: ~"calc(-2 * 5.382978723%)";
margin-right: ~"calc(-2 * 5.382978723%)";
}
@media (max-width:529px) {
margin-left: 0;
margin-right: 0;
width:unset;
}
}

@benlk
Copy link
Collaborator

benlk commented Jul 17, 2020

I'd put an estimate for styling either the standard Largo widget or the WP Related Posts widget at 2-4; high because I expect we would have several rounds of back and forth.

As a first pass:

Screen Shot 2020-07-17 at 15 43 03


/* child.css | https://mstoday.test/wp-content/themes/mstoday/css/child.css?ver=1594774589 */

@media (max-width: 1250px) {
  .entry-content > aside {
    /* width: 100vw; */
  }
}

.signup-interstitial, .donate-interstitial, .single .scaip {
  /* text-align: center; */
}

.single article aside.scaip {
  max-width: ;
  box-sizing: border-box;
  max-width: 100%;
  background: aliceblue;
}

@MirandaEcho
Copy link
Collaborator Author

Are there any options for something simpler - just the headline and no excerpt, photo, etc like her WaPo/Apple News examples? Are those styling options we could do with the Largo widgets? Same question for the ability to create custom links (shortened versions of the headlines) if needed?

@benlk
Copy link
Collaborator

benlk commented Jul 21, 2020

We can hide the excerpt via CSS, and hide/show the byline via a widget option, but Largo Recent Posts does not offer the option to hide the excerpt or image via a widget option.

Custom headlines are not a feature in Largo, and would require extensive custom development to get them to show in particular areas. If they want to continue with the Largo Related Posts widget in this area, and have custom headlines, then we would need to 1) make the custom headline feature (4+h) and 2) one of these, which take about the same amount of time (4-6h):

Putting MS Today on 0.7-prerelease also brings with it improved translatability, some CSS/HTML validation improvements, and a fix for the LESS Customizer failing to save on modern PHP. This last one is important because MS Today does use the LESS Customizer.

@MirandaEcho
Copy link
Collaborator Author

This looks like exactly what we're looking for. Can someone take a look? https://intellywp.com/intelly-related-posts/

@joshdarby
Copy link

@MirandaEcho It seems like it might check off a few boxes, but I don't think this plugin allows custom titles like they're looking for, since it seems this plugin is close to 100% automated.

@MirandaEcho
Copy link
Collaborator Author

I think the custom titles were more of a nice to have, so lets see how this looks on staging if possible.

@benlk
Copy link
Collaborator

benlk commented Jul 23, 2020

The pricing section of the page says that the free version doesn't use featured images. Dunno if that's an issue.

@MirandaEcho
Copy link
Collaborator Author

Not sure if we want them anyway, so we can use the test version to see how it looks for now at least.

@joshdarby
Copy link

@MirandaEcho
Copy link
Collaborator Author

Thanks @joshdarby! There's a way to have it in the text rather than the bottom, right?

@joshdarby
Copy link

@MirandaEcho Yes, it's currently set to every 250 words (if there are more than that) + at the bottom. Do we want to change that?

@joshdarby
Copy link

@MirandaEcho Styling and config options:
screencapture-mstoday-staging-wpengine-wp-admin-options-general-php-2020-07-23-11_02_29

@MirandaEcho
Copy link
Collaborator Author

Lauchlin has purchased the pro version and activated it on staging, but isn't seeing the pro options. Can we take a look? We'd like to add images, and are after this layout from the plugin website:

Screen Shot 2020-07-29 at 1 15 36 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants