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

Explore & mock up options for sponsored and cultural content #102

Open
3 tasks
MirandaEcho opened this issue Jul 15, 2020 · 10 comments
Open
3 tasks

Explore & mock up options for sponsored and cultural content #102

MirandaEcho opened this issue Jul 15, 2020 · 10 comments

Comments

@MirandaEcho
Copy link
Collaborator

MirandaEcho commented Jul 15, 2020

Requirements:

  • A custom layout/template for cultural content and sponsored content on the site
  • Clear labeling for partner content story posts by adding different color and styling to new category
  • New widget areas for in-house ads highlighting content - essentially like SCAIP but specific to this type of content
  • Distinct from other types of content
    -- New layout
    -- Use Block editor
    -- Longer, cultural stories
    --Distinquished on homepage and on story itself

Examples:

What we need:

  • Proposed technical approach
  • Wireframe for new template
  • Mockups of ways to add category distinctions on homepage
@joshdarby
Copy link

joshdarby commented Jul 15, 2020

For technical approach:

  • A custom template to be used on posts/pages (we should ask if it needs to work with both or just one or the other)
  • We can add new widget areas inside of the new custom template and/or copy SCAIP functionality to insert these widget areas inside of the post content
  • We can create a new sidebar named Cultural Coverage Sidebar (or something else) through Largo and display it by default on this new template, but still allow users the option to overwrite it with a different sidebar if needed
  • For distinguishing these on the homepage, we could
    • exclude the new category from all post loops on the homepage and create a new section for it
    • not exclude this new category from all post loops, but rather target these posts by category-cultural-coverage or whatever the category name will be and style them from there to make them look like the examples on https://www.voiceofsandiego.org/

@benlk anything I missed?

@benlk
Copy link
Collaborator

benlk commented Jul 15, 2020

One simple thing that Lauchlin mentioned was having the Top Term tags be different colors for certain different types of content. We can do that with the top-term classes ostensibly introduced in WPBuddy/largo#1474

The Largo implementation appears to be bugged in WP >= 4.9, however, and we may need to copy this code into MS Today from Rivard Report: https://github.com/INN/umbrella-rivard-report/blob/master/wp-content/themes/rivard-report/inc/post-tags.php#L62-L118

@MirandaEcho
Copy link
Collaborator Author

@joshdarby - can I get estimates for the options above? Thanks!

@joshdarby
Copy link

@MirandaEcho

  • 2-8 hours to create a custom template, depending on final designs
    • includes creating a custom sidebar that would be the default for this template, but allow users to override it by selecting a different sidebar in the post editor
  • Copying SCAIP functionality to make widget areas that appear inside the content on only this template
    • 2-4 hours to create the widget area(s?) and make the widget area display inside of the content
    • 2 hours (if they want this) to create a settings metabox to copy the SCAIP settings that allow setting paragraph limit, widget placement between paragrapgs, etc.
  • For distinguishing these posts on the homepage
    • 2 hours to exclude these from all loops on the homepage (assuming they have a category assigned)
    • 2 hours to create styling for any articles on the homepage that have a specific category assigned for these posts

@MirandaEcho
Copy link
Collaborator Author

MirandaEcho commented Jul 21, 2020

@joshdarby can I get a browser mockup/screenshot examples of:

  • Styling for specific category labels on the homepage? (mock up in browser of some possibilities on MSToday if possible)
  • Visual examples of how specific category sections could be implemented on their homepage?

@joshdarby
Copy link

@MirandaEcho Here's a mockup of how category labels could look on the homepage (using the example from https://www.voiceofsandiego.org/):

screencapture-mississippitoday-org-2020-07-21-14_15_01

@benlk
Copy link
Collaborator

benlk commented Jul 21, 2020

2-8 hours to create a custom template, depending on final designs

  • includes creating a custom sidebar that would be the default for this template, but allow users to override it by selecting a different sidebar in the post editor

If the layout will not differ, just colors and fonts, then we may be able to get by without a specific template for this post. We can hook CSS styles on the article tag's classes, hnews item post-543933 post type-post status-publish format-standard has-post-thumbnail hentry category-commentary prominence-top-story featured-media featured-media-image, or add another set of options to our Developer-Driven Custom Post Classes plugin in https://github.com/INN/umbrella-mstoday/blob/master/wp-content/themes/mstoday/inc/DDCPC.php

Going a CSS-only route would probably save 2h from template creation, but knowing whether we can do that depends on the complexity of the layout.

For distinguishing these posts on the homepage

  • 2 hours to exclude these from all loops on the homepage (assuming they have a category assigned)
  • 2 hours to create styling for any articles on the homepage that have a specific category assigned for these posts

We should check with them whether this needs to be excluded from all loops on the homepage, or just the main post river. Largo already has a function to exclude specific categories from the main post river, with the cats_home option.

@MirandaEcho
Copy link
Collaborator Author

@joshdarby this is great, thanks! Can I see a version with Blue as well?

@joshdarby
Copy link

@MirandaEcho Here are two examples of how adding 2 categories could look on the bottom of their homepage:

One column (custom)
screencapture-mstoday-test-2020-07-21-14_36_38

Two column (default)
screencapture-mstoday-test-2020-07-21-14_35_25

@joshdarby
Copy link

@MirandaEcho Blue tags:
screencapture-mississippitoday-org-2020-07-21-14_42_45

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

No branches or pull requests

3 participants