GithubHelp home page GithubHelp logo

wordpress / gutenberg-starter-theme Goto Github PK

View Code? Open in Web Editor NEW
675.0 142.0 163.0 752 KB

A simple theme for testing Gutenberg.

License: GNU General Public License v2.0

PHP 51.26% JavaScript 6.21% CSS 38.87% HTML 3.66%

gutenberg-starter-theme's Introduction

Gutenberg Starter Theme

The Gutenberg Starter theme is designed to provide a simple, interference-free theme for testing Gutenberg. It uses no editor styles by default, and is built so that its front-end appearance is as close to the editor's default Gutenberg styles as possible.

The theme is primarily intended for use by those developing for and testing Gutenberg, but may also be helpful for those developing themes, or for folks who would like their site to look like Gutenberg in general.

Theme Options

There are a few optional settings available in the Appearance > Theme Options panel added to WP-Admin. Each setting maps to a theme support option offered by Gutenberg:

  • Wide alignment. By default, wide and full alignments are active in the theme. This setting provides you the option to turn them off.
  • Color palette. The theme provides a limited custom color palette by default. This can be toggled off if you'd like to test the default Gutenberg colors.
  • Dark background. Gutenberg provides some alternate UI colors, optimized for themes that use a dark background color. Turning this on will allow you to test those by enabling a dark mode of the theme.
  • Block Styles. This option allows you to opt-in or out of having Gutenberg provide some structural CSS for certain blocks on the front end.
  • Responsive embedded content. When this is active, embed blocks will automatically reflect the aspect ratio of content that is embedded in an iFrame.

Contributing

Fixes and enhancements for the theme are welcome and encouraged! For more information about contributing, please visit CONTRIBUTING.md.

gutenberg-starter-theme's People

Contributors

aduth avatar aktasfatih avatar amdrew avatar artisan-asad avatar creativetags avatar crunnells avatar desrosj avatar jasmussen avatar karmatosed avatar kjellr avatar littlebigthing avatar melchoyce avatar mor10 avatar mtias avatar noisysocks avatar ntwb avatar obenland avatar pdewouters avatar pento avatar pstonier avatar richtabor avatar sharazghouri avatar shinichinishikawa avatar soean avatar zgordon avatar zzap 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  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

gutenberg-starter-theme's Issues

Gutenberg Demo broken

Gutenberg's demo post doesn't get displayed as it should, I assume some recent changes broke it?

The custom font is missing, an image and the video is left aligned, as is a button where you can't read the text

Demo broken

As Issue #31 was closed, i open this issue:

The demo is still broken. I've installed the latest WP Version, latest gutenberg plugin and the latest gutenberg-starter-theme. Still the same problems. Font ist not loading correctly, i think also some CSS bugs.

#31

Adobe Accessible Mega Menu

hey all,

This is more of a "wish list" than an issue.

It would be really nice if the primary navigation could allow users to skip all the sub-links, and arrow from one top link to another. This would mean users who can't use a mouse would save LOTS of tabs. The sub-menus would still need to be available, but the keyboard user wouldn't need to tab through them to get to the next thing.

Adobe Accessible Mega Menu has this:
https://adobe-accessibility.github.io/Accessible-Mega-Menu/

Resized image Does not display

Versions: WP 4.9.6 | Gutenberg 2.9.2 | GST 1.0.0 | Chrome 66.0.3359.181

This may be a known issue, but the image block is not rendering. Here is my homepage:
image

Here is the backend:
image

In playing with this I figured out how to recreate the issue.

  1. Add an image block and upload an image or choose from library.
  2. Drag one of the corners to resize the image. Any size adjustment seems to cause the issue.
  3. Update and view source. The image is there, but something is setting the size to 0x0. It does not appear to be the CSS that is doing this.

image

I will try to debug this later if I find time, but work is crazy the next couple of weeks...

browser upscaling

This CSS causes browser upscaling.

.wp-block-image.alignleft,
.wp-block-image.alignright {
width: 100%

along with this CSS

.wp-block-image .alignleft img,
.wp-block-image .alignright img,
.wp-block-image .alignleft figcaption,
.wp-block-image .alignright figcaption {
max-width: 100%;
width: 100%;
}

It is counter to aligning left or right to make the image 100% width.

readme.txt inaccurate

If you want to put this in the WP repo, the readme.txt file needs accurate information.

According to https://wpseek.com/pluginfilecheck/ this theme requires WP 4.5, but the whole concept is for Gutenberg, so it probably should be 5.0, but I ran it on 4.9 just fine.

Requires at least: 4.0

Also need Requires PHP header.
And the Contributors header should be an actual .org username
and need a description

See https://wordpress.org/plugins/developers/readme-validator/

Enqueue /css/blocks.css with enqueue_block_assets?

Would it make sense to break the enqueuing of the block.css file from enqueuing with wp_enqueue_scripts and enqueue it with enqueue_block_assets instead?

wp_enqueue_style( 'gutenbergthemeblocks-style', get_template_directory_uri() . '/css/blocks.css');

My thought for this approach is that if people want to apply future block styles and have them visible in the editor, they can add to the block.css file and those styles would automatically show up in the editor and not require them to add another CSS file and enqueue it with enqueue_block_assets.

I realize that this may mess things up if the code for centering non wide and full width blocks goes in this same file [https://github.com//issues/30]. However, maybe this could be moved to the style.css file as a generic styling for the frontend only?

NOTE: I may be completely missing a place where block styles for the frontend and editor would go! :) But figured it would be helpful if it doesn't already exist :)

Wrong condition in header.php for `site-title`

Hi,

Thanks a lot for this theme. I'm forking it for personal purposes, and I found a mistake related to site-title in header.php.

Nothing can meet the condition below:

if ( is_front_page() && is_home() )

Featured Images don't appear, even though the theme supports them.

This is a fairly straightforward issue, but it requires a bit of discussion. The theme declares support for featured images, but does not display them on the front end. I used this theme for a test recently, and this point caused some confusion.

Should we:

1. Remove theme support for featured images?
This makes sense if we're committed to having the front end look just like the backend editor. But I do think it's helpful for people too see where featured images live inside of Gutenberg.

2. Keep it, and add featured images on the front end.
This solves for potential confusion, but it also means that posts on the front end won't look 100% like they do inside of the editor.

3. Keep things the way they are.

Any thoughts?

Newbie question

I am trying to install the Gutenberg Starter theme and it says to down load the ZIP file and upload the theme. When I click on download ZIP it isn't downloading as a .ZIP file it is a simple folder named gutenberg-starter-theme-master. I can't select it for upload, it just opens the folder... What am I doing wrong? I looked everywhere for an answer and don't find anything. Thanks in advance!

Element "Read more" has no max-width applied, as not displayed as block-element

Hi @WordPress

If I am adding the "Read more" element in Gutenberg, the html-block-element css rules would not be applied on the front end.

This is a snippet from the generated code from the front page listing all posts.

<div class="entry-content">
  <p>Introtext...</p>
  <a href="url/to/post" class="more-link">Continue reading<span class="screen-reader-text"> „Test“</span></a>
</div>

The a-tag gets a max-width, the paddings and the margins. But none of them would be applied as the a-tag by default is not an html-block-element. Probably you should add a specific rule for the .more-link class.

@adriansuter

not identical backend/frontend

Why in this official theme for gutenberg, backend and frontend does not match the view? how developers will make themes compatible with gutenberg, even if this theme is not relevant? because this is the official wodpress repository.

screenshot
screenshot

Add contextual color classes for editor color palette colors

Describe the bug
Colors are not being appropriately rendered on the front-end of core blocks, as they're not defined within the theme's styles.

Expected behavior
The colors (background/color) are applied on the front-end, with the use of proper contextual color classes.

Screenshots
screen shot 2018-07-25 at 10 01 04 am
screen shot 2018-07-25 at 9 59 24 am

Additional context
From the Gutenberg doc on the editor color palette (link):

Themes are responsible for creating the classes that apply the colors in different contexts. Core blocks use "color" and "background-color" contexts. So to correctly apply "strong magenta" to all contexts of core blocks a theme should implement the following classes:

.has-strong-magenta-background-color {
	background-color: #313131;
}

.has-strong-magenta-color {
	color: #f78da7;
}

Site Editor question

Hello,
does it support the Site editor?
I am clicked Appearence -> Editor and it shows the blank page

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.