Code Monkey home page Code Monkey logo

twentysixteen's Introduction

=== Twenty Sixteen ===
Contributors: the WordPress team
Requires at least: WordPress 4.4
Tested up to: WordPress 4.5
Version: 1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog

== Description ==
Twenty Sixteen is a modernized take on an ever-popular WordPress layout โ€” the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.

* Mobile-first, Responsive Layout
* Custom Colors
* Custom Header
* Social Links
* Post Formats
* The GPL v2.0 or later license. :) Use it to make something cool.

For more information about Twenty Sixteen please go to https://codex.wordpress.org/Twenty_Sixteen.

== Installation ==

1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Sixteen in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://codex.wordpress.org/Twenty_Sixteen for a guide on how to customize this theme.
5. Navigate to Appearance > Customize in your admin panel and customize to taste.

== Copyright ==

Twenty Sixteen WordPress Theme, Copyright 2014-2015 WordPress.org
Twenty Sixteen is distributed under the terms of the GNU GPL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Twenty Sixteen Theme bundles the following third-party resources:

HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas
Licenses: MIT/GPL2
Source: https://github.com/aFarkas/html5shiv

Genericons icon font, Copyright 2013-2015 Automattic.com
License: GNU GPL, Version 2 (or later)
Source: http://www.genericons.com

Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/schmidy/), licensed under Creative Commons Zero(http://creativecommons.org/publicdomain/zero/1.0/)

== Changelog ==

= 1.3 =
* Released: August 16, 2016

https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_1.3

= 1.2 =
* Released: April 12, 2016

https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_1.2

= 1.1 =
* Released: January 6, 2016

https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_1.1

= 1.0 =
* Released: December 8, 2015

Initial release

== Notes ==

Only the default and dark color schemes are accessibility ready.

twentysixteen's People

Contributors

davidakennedy avatar dd32 avatar eduardozulian avatar ehti avatar emiluzelac avatar fjarrett-godaddy avatar fklein-lu avatar grappler avatar iamtakashi avatar ihorvorotnov avatar joedolson avatar josephfusco avatar karmatosed avatar karpstrucking avatar kraftbj avatar mathetos avatar metodiew avatar mt8 avatar obenland avatar ocean90 avatar otto42 avatar peterwilsoncc avatar sergeybiryukov avatar shelleyvadams avatar staylor avatar tevko avatar tfrommen avatar trenzterra avatar tywayne avatar westonruter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twentysixteen's Issues

[suggestion] add category.php

I would like to suggest to add a separate category template instead of having to rely on the archive template which is far too general.

Add Post Title to edit_post_link for Improved Accessibility

One small tweak we could make to improve the accessibility of Twenty Sixteen is adding the post title to the edit_post_link and hiding it with screen-reader-text. We do this in a few other spots to provide more context to link text, and the case would be the same here.

Thoughts?

Pull request incoming. ๐Ÿ˜„

A non-idiosyncratic screenshot

Perhaps with a nice picture? My eye seems to be consistently drawn to the peculiar stuffed potato dumplings at the Renfield. :) Perhaps something that fades in the background? More "common" like last year? A photo of a place, a title related to that photo, and some more "abstract" text?

Add singular.php

Since TwentySixteen is a showcase of what WordPress can do, should the new singular.php file be provided in the theme despite the fact that single.php and page.php are already provided?

Add or not to add....

Hey

Ideas will come up that are really good but for whatever reason are not be added to the official theme.
So what if an underground unofficial theme is created at the same time?
To showcase various things the official theme chooses not to showcase. It will show more variation of what can be done and can be used for further study for various users.

Apply overhanging treatment only to full size images

The overhanging treatment works well with a newly uploaded .size-large image, but there is an issue if the image was added when a different theme was activated. This is because of the width attribute and the value comes from $content_width of the previous theme.

The image below was uploaded when Twenty Twelve was activated. (The $content_width is 625px in Twenty Twelve)

screen shot 2015-09-03 at 11 19 44

To resolve the issue, it's safer to apply the treatment only to .size-full image because the value of the width attribute is the same as the actual image width.

Sticky post with no title and featured image

When there is no title and no featured image in the sticky post, we cannot go to that individual post as there is no date and the "featured" text isn't linked as well. Not sure how to fix but maybe we can add a link to Featured text or add the date back. maybe an edge case..

Category/Tag spacing bug

At some point there is this little design issue. When there are two or more categories, it seems the padding between the categories list and tags list in entry footer become larger than when its only 1 category. Looks like this css is the issue

.entry-footer > span:not(:last-child):after {
  padding: 0 0.538461538em;
}

That padding appears on the next line which triggers that space.

Here is the screenshot that should be self explanatory.

padding-issue

Image Post Format without Featured Image doesn't give any special treatment to the post image.

Steps to get started:

  1. Create a new post and use the Image Post Format.
  2. Insert an image into the post.
  3. Do not define a Featured Image.

In parallel, do the following:

  1. Create a new post and use the Standard Post Format.
  2. Define a Featured Image.

When comparing the 2 posts, I find that the standard post (with its Featured Image) actually does a better job of showing off my image.

I wonder if we should handle that special case:

  • When a post uses the "Image" post format but does not include a featured image, improve twentysixteen_post_thumbnail to look for the first image in the post and display it instead of the featured image.
  • Remove that first image from the post content.

What do you think?

entry-footer line artifact in long names

When a long name is displayed, the hidden "/" separator drops down to the next line creating an empty line artifact in the entry-footer area. Patch to follow.

line-artifact

Needs word-wrap for long titles and text

First noticed this with an actual post title:

2015-08-29 at 12 12 pm

After looking a little deeper into it and realizing word-wrap: break-word; was being used in several places and just happened to miss the title, I took into account where it was being used and made some adjustments.

  • It was being applied to .entry-intro in two different places, which is always in a post/page article.
  • It was being applied to .entry-content and .entry-summary, which are always in a post/page article.
  • It was being applied to .type-attachment .entry-title which I'm not even sure is part of the theme (that's a separate issue) but if it was, it would only be in image.php, which is always in the aforementioned article element.
  • It was being applied to .entry-caption, which is also only part of image.php.
  • It was being applied to .textwidget, which is always going to be nested in .widget where it's already applied.

So in all things listed above, it was either 1) unnecessary to have or 2) always in a post/page/attachment article element, which all share the article[class^="post-"] selector already in the stylesheet. So I put the word-wrap there.

All other places it's being used in a legit manner, I left it alone.

Folder structure for minified scripts and/or styles

I would like to discus what the file and folder structure might look like if the theme included minfied versions of styles and scripts as well as non-minified versions when as the theme progresses.

It may not be the best time to include these right now but closer to completion I think that minified versions should be included for sure.

With merge of PR #61 all files in the theme are currently non-minified. For production I would suggest that using minified files would be preferential but the issue would be how to do that.

My suggestion is to have minified versions of each script inside the same folder as the non-minified versions. As for the stylesheet - it may not be the best idea to include style.min.css in the root alongside the standard style.css but I still think providing a minified version would be of benefit.

What does everyone think about where minified files should be placed and how they should be enqueued? Should they only be enqueued conditionally by choice of the user... Is that too complicated an option for a default theme?

Redundant selectors in bigImageClass() of js/functions.js

Inside the .each() iterator on found images, we have redundant $( this ) selectors, even though we cached it in the img variable. While the performance costs of creating a few more instances of a jQuery object here probably won't make much difference, it is best practice to use the stored instance.

Also, in the same bigImageClass() function, we use the img var as a selector like $( img ) when img is already a jQuery object.

Will add a PR shortly.

Add styles for code tag

By default <code> selector has no CSS style defined. Screenshot:

image

It's nice to have a style for the <code> selector with a background color & some padding. Screenshot:

image

Screen looks like a notice about someone's death

at Austria we use a big black border for notices about someone's death. I was really shocked as I've seen the screen of twenty sixteen the first time.
The bold black headlines and bold black borders complement this.

I know this is the background, but the initial visual impact was shocking.
screenshot-twenty-sixteen_mini

Recent Posts widget with post date gap issue

When there is Post Date in Recent Posts widget the gap between the title and date is larger than the gap between the list items.

Here is what is happening (first image) and how it should be (second image)

recent-posts

Page template suggestions

Doing some brainstorming here...

Page Template:

  • Portfolio masonry.
  • Portfolio standard.
  • A nicely stylized blog. (Actually there can be a few different blog templates to choose from.)
  • Archive pages.
  • A few landing pages.

Non-latin fonts

All 3 fonts used in the theme have only Latin (2 of them - Latin Extended) subsets. For any language with non-latin characters (for example, any cyrillic language - ukrainian, russian, bulgarian etc) it defaults to system serif / sans-serif which are completely different and things look awful, sometimes just break (because of different character widths and baselines).

[grumble_mode=on]

People, really. I don't get this. We spend a lot of time working on some mere fallbacks and edge-cases needed by fractions of percent of users, like old IE fixes, eot webfonts etc. We do spend a lot of time working on accessibility. But we (well, those US-people mostly, to be honest) still forget that we live in a world where people speak many different languages. WP still does not have a proper multilingual content support. That's a whole another topic, but let's make the themes truly multilingual at least.

[grumble_mode=off]

I'm not sure how to fix it better. One option I can think of is adding similar-looking fallback fonts with extra subsets, so our css declarations would look like font-family: Merriweather, Some_Alternative, serif;.

Another option is to use alternatives right out of the box.

  • Merriweather has cyrillic (vietnamese and some other non-latin subsets), but the Google-hosted version of the font is missing them. See here and here for the font with all subsets.
  • Montserrat does not have non-latin characters (it even lacks extended latin support). It's closest alternative, Proxima Nova has non-latin subsets.However, it's not free. I suppose, in twentysixteen, Montserrat will be used for that hipster small labels in caps mostly. In this case, replacing (or adding a fallback) with Helvetica will be fine.
  • Inconsolata can be safely replaced with Fira Mono. Or any other monospace font from Google Fonts. Personally, I prefer Roboto Mono.

Margin on the right

While resizing, I noticed there was a certain window of width where there is margin on the right side. The header, menu and footer menu seems to extend full width but the content seems to cover like 75%. Is this done deliberately for "readability" ?

space

Blockquote alignment causes issues at the top of posts

On wide screens, when blockquotes at the top of a post are aligned left, they cover the entry-footer data:

blockquote-alignment

This is a standard issue with this type of layout and will likely affect the full-width image display as well.

Customizer Option for Sidebar positioning

I like that the sidebar is on the right-hand side by default. It is an "aside" and reading starts to the left, so it makes sense. But reading doesn't start to the left for everyone. Should there be an option to have the sidebar on the left specifically for RTL readers? Of course it has benefits for LTR readers as well if they just have a preference.

Inconsistent spacing in multi-line var declarations across js files

I know "whitespace only" code refactoring changes for core files are discouraged, but this isn't in core yet so I felt it should at least be noted.

Some multi-line var declarations use spaces to indent the next line, while others correctly use tabs (according to the Javascript coding standards).

Assignments within the var statement should be listed on individual lines, while declarations can be grouped on a single line. Any additional lines should be indented with an additional tab.

Offending files include:

  • /js/functions.js
  • /js/customize-preview.js
  • /js/skip-link-focus-fix.js

Should Post Formats be moved?

I know there has been a lot of discussions about Post Formats.
I am just wondering what you think.
Should Post Formats instead be handled in future core plugins like Shortcake? (If my thinking is correct.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.