Coder Social home page Coder Social logo

joshuaiz / plate Goto Github PK

View Code? Open in Web Editor NEW
110.0 17.0 27.0 8 MB

Plate: a super stripped-down WordPress starter theme for developers.

Home Page: https://studio.bio/themes/plate/

License: Do What The F*ck You Want To Public License

PHP 52.44% CSS 0.79% JavaScript 10.10% SCSS 36.68%
bones plate starter-theme wordpress php theme woocommerce-support cssgrid sass scss

plate's Issues

Accepting contributions?

Is this theme, as well as Template, accepting contributions? Saw some things that don't comply with best practices for themes, so wanted to send a PR.

Modernizr integration causes F grade "Minimize request size" score in performance tests.

I have traced down the issue to one section of the code in Modernizr. The request size associated trips up website performance testers and prevents sites from achieving a higher score due to excessive string length. Curious if there could be an alternative, or if Modernizr is totally necessary at time of writing? See attached Image and code snippet from problem source.

screen shot 2018-04-17 at 9 43 16 am

if(Modernizr.video.ogg)o.src="data:video/ogg;base64,T2dnUwACAAAAAAAAAABmnCATAAAAAHDEixYBKoB0aGVvcmEDAgEAAQABAAAQAAAQAAAAAAAFAAAAAQAAAAAAAAAAAGIAYE9nZ1MAAAAAAAAAAAAAZpwgEwEAAAACrA7TDlj///////////////+QgXRoZW9yYSsAAABYaXBoLk9yZyBsaWJ0aGVvcmEgMS4xIDIwMDkwODIyIChUaHVzbmVsZGEpAQAAABoAAABFTkNPREVSPWZmbXBlZzJ0aGVvcmEtMC4yOYJ0aGVvcmG+zSj3uc1rGLWpSUoQc5zmMYxSlKQhCDGMYhCEIQhAAAAAAAAAAAAAEW2uU2eSyPxWEvx4OVts5ir1aKtUKBMpJFoQ/nk5m41mUwl4slUpk4kkghkIfDwdjgajQYC8VioUCQRiIQh8PBwMhgLBQIg4FRba5TZ5LI/FYS/Hg5W2zmKvVoq1QoEykkWhD+eTmbjWZTCXiyVSmTiSSCGQh8PB2OBqNBgLxWKhQJBGIhCHw8HAyGAsFAiDgUCw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8P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XDLFpmbapmF89HKTogRwqqSlGbu+oiAkcWFbklC6Zhf+NtTLFpn8oWz+HsNRVSgIxZWON+yVyJlE5tq/+GWLTMutYX9ekTySEQPLVNQQ3OfycwJBM0zNtZcse7CvcKI0V/zh16Dr9OSA21MpmmcrHC+6pTAPHPwoit3LHHqs7jhFNRD6W8+EBGoSEoaZttTCZljfduH/fFisn+dRBGAZYtMzbVMwvul/T/crK1NQh8gN0SRRa9cOux6clC0/mDLFpmbarmF8/e6CopeOLCNW6S/IUUg3jJIYiAcDoMcGeRbOvuTPjXR/tyo79LK3kqqkbxkkMRAOB0GODPItnX3Jnxro/25Ud+llbyVVSN4ySGIgHA6DHBnkWzr7kz410f7cqO/Syt5KqpFVJwn6gBEvBM0zNtZcpGOEPiysW8vvRd2R0f7gtjhqUvXL+gWVwHm4XJDBiMpmmZtrLfPwd/IugP5+fKVSysH1EXreFAcEhelGmbbUmZY4Xdo1vQWVnK19P4RuEnbf0gQnR+lDCZlivNM22t1ESmopPIgfT0duOfQrsjgG4tPxli0zJmF5trdL1JDUIUT1ZXSqQDeR4B8mX3TrRro/2McGeUvLtwo6jIEKMkCUXWsLyZROd9P/rFYNtXPBli0z398iVUlVKAjFlY437JXImUTm2r/4ZYtMy61hf16RPJIU9nZ1MABAwAAAAAAAAAZpwgEwIAAABhp658BScAAAAAAADnUFBQXIDGXLhwtttNHDhw5OcpQRMETBEwRPduylKVB0HRdF0A

Instagram Embed Gutenberg block not displaying on front end.

Reported by a couple Plate users and I've been able to duplicate this issue on a local install.

Filed a new issue on the wp-calypso repo so waiting to see if anyone has any clues as to why this is happening: Automattic/wp-calypso#30837

Note that this Gutenberg block is for displaying a single instagram post.

In a nutshell, the embed is working on the Post or Page edit screen but does not show up on the front end.

There are no JS errors in the back end or on the front end page affecting this and additionally there were no PHP or Apache errors on my install so this is a bit of a mystery.

Frontend gutenberg styles?

Sorry for the potentially dumb question but what does this frontend gutenberg.css file do? What should be in it?
Only realised it was even on the frontend as GT Metrix threw back a problem saying the file is so small it should be inline...

from functions.php

plate_gutenberg_styles() {
    wp_enqueue_style( 'plate-gutenberg-styles', get_theme_file_uri( '/library/css/gutenberg.css' ), false, '1.0', 'all' );
}

User Agent styling

Apologies if this is a dumb question and possibly nothing to do with Plate/Bones but do you know why User Agent styling is applied to elements on a page? Like this is being applied to a H3 tag, but fi I try and edit I can't find these values anywhere in the theme

display: block; font-size: 1.17em; -webkit-margin-before: 1em; -webkit-margin-after: 1em; -webkit-margin-start: 0px; -webkit-margin-end: 0px; font-weight: bold;

`rw_title` function isn't defined

The function referenced in functions.php to rewrite the title isn't actually defined/available anywhere. Since it's only a warning, PHP/WordPress will swallow it unless you turn on debugging and such

https://github.com/joshuaiz/plate/blob/master/functions.php#L52

However if you want to output the page title inside of meta tags, like so:

<meta property="og:title" content="<?php wp_title() ?>">

You'll get this:

<meta property="og:title" content="<br />
<b>Warning</b>:  call_user_func_array() expects parameter 1 to be a valid callback, function 'rw_title' not found or invalid function name in <b>E:\wordpress\wp-includes\class-wp-hook.php</b> on line <b>286</b><br />Just another WordPress Blog">

Which doesn't look particularly nice

Looking for translation help

I'm looking for help with translation for the Plate theme. There are two things I could use help with:

  1. Finding places in the theme where we can add localization. I'll start on this for future updates.
  2. Updating and adding the respective translations.

This is my first foray into localization so once we have delineated the places that can be translated in the theme, we'll need people who can translate those into their respective languages and pull those in.

I've found this tutorial but it is a bit dated: https://wp.smashingmagazine.com/2011/12/internationalizing-localizing-wordpress-theme/

If anyone has some other links or resources outside of the Codex and Developer Tools, please add them here.

Also, I know I should have been conscious of localization from the get go however this theme started as an internal project for my studio so we are a bit late to the game. Better late than never and now that this is out there, I'd like it to be as accessible as possible so any help would be appreciated.

Customize Section Missing

Hello,
For some reason, the customize section is showing up blank. Can someone please help me troubleshoot this issue? There is not a plugin conflict and I have contacted my host and they said its theme-specific.
Screen Shot 2020-03-04 at 8 46 05 AM

Woocommerce

Are there any WordPress template files already created for plate? Looking specifically for the main shop template and individual product template.

Plate and PHP 8.2

Our hosting provided force upgraded PHP to 8.2 and it more or less broke everything regarding Plate theme. Got a few error messages that obviously needs to be fixed... to begin with most likely:

Fatal error: Uncaught Error: Call to undefined function create_function() in /customers/e/7/a/monolitsports.com/httpd.www/wp-content/themes/plate/functions.php:1123 Stack trace: #0 /customers/e/7/a/monolitsports.com/httpd.www/wp-settings.php(611): include() #1 /customers/e/7/a/monolitsports.com/httpd.www/wp-config.php(98): require_once('/customers/e/7/...') #2 /customers/e/7/a/monolitsports.com/httpd.www/wp-load.php(50): require_once('/customers/e/7/...') #3 /customers/e/7/a/monolitsports.com/httpd.www/wp-admin/admin.php(34): require_once('/customers/e/7/...') #4 /customers/e/7/a/monolitsports.com/httpd.www/wp-admin/customize.php(13): require_once('/customers/e/7/...') #5 {main} thrown in /customers/e/7/a/monolitsports.com/httpd.www/wp-content/themes/plate/functions.php on line 1123

SCSS not updating

I am using CodeKit which is compiling my SCSS into CSS properly, but for some reason my theme isn't updating the changes. I have tried the customizer.scss, style.scss, and _base.scss files with no luck. What am I doing wrong? I'm using MAMP on localhost. Updating PHP files works fine, just trying to figure out the scss -> css thing.

Will not run on php 5.3.8

Plate doesn't appear to run on php 5.3.8. Consider adding a min php version in readme/requirements file?

At the moment, I am bound to use a server with this lower version of php and having developed a site use plate as a base (first time as I usually use a modded version of bones) I'm only now realizing this of course.

Hope this helps someone in advance.

Modernizr script causes page to jump to top

Thanks for making this theme available. I'm finding it incredibly helpful!

I've noticed that when clicking 'back' in the browser, or linking to a different page with a hash in the URL to anchor to specific section, the browser briefly shows the correct position and then snaps to the top of the page.

Removing the Modernizr script seems to make the issue go away.

Tested in Chrome (Version 78.0.3904.87) and Safari (Version 13.0.3 (14608.3.10.10.1))

Error with comments on single.php

Firstly, I've just started migrating from Bones to Plate, thanks for keeping it going and now making it your own, the updates you have done are much appreciated.

Secondly, I think I've discovered an issue with comments when viewing single.php. Testing with fresh 4.9.4 Wordpress and fresh Plate clone. Where the comments should be is:

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'template_comments' not found or invalid function name in /Users/james 1/Dropbox/Websites/acaciabeauty/wp-includes/class-walker-comment.php on line 174

Screenshot - http://take.ms/8Go9cS

I've tried removing some of the comment related stuff in functions.php but thats not it.

Paragraph Block Preview Error

Hi Josh,

Not sure if this is something the WP team will fix or whether it's a change that requires new code to be added to the Plate theme?

I've just installed a fresh version of Plate and the new release of WP (5.4)

I noticed that the paragraph block is showing an error: 'This block has encountered an error and cannot be previewed.'

In the console log there's a reference to the react-dom-min.js file and the error: 'm.find is not a function'

Anyway, I hope this is useful, loving your work!

Cheers,

Ash

Edit: Tried switching theme to Twenty Twenty and the issue doesn't occur.

header-title.php

Not an issue just interested in why abstracting the headers of each template into the header-template is done in this case. I can't see the benefits in this case, please what am I missing here? Loving the template, best starter I've found.

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.