JavaScript Engineer working on React, TypeScript, design systems, a11y and anything else that is cool and trendy.
benbrehaut / wp-vanlig Goto Github PK
View Code? Open in Web Editor NEWBlank WordPress starter theme made for being customisable.
Blank WordPress starter theme made for being customisable.
Update the template file descriptions, a lot of them are wrong / out of date
For some stupid reason, WordPress by deafult function wp_get_recent_posts
shows draft posts, which is stupid.
Can be fixed with adding to the array;
$recent_posts = wp_get_recent_posts(array( 'orderby' => 'post_date', 'numberposts' => 3, 'post_type' => 'post', 'post_status' => 'publish,', ) );
function yoasttobottom() {
return 'low';
}
add_filter( 'wpseo_metabox_prio', 'yoasttobottom');
add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat' ) );
Might be worth adding it but not enabling it, as it is never used.
Look into removing Yoast from workflow and having our own custom fields.
Style with :focus attribute
function sticky_posts( $classes ) {
if ( in_array( 'sticky', $classes, true ) ) {
$classes = array_diff($classes, array('sticky'));
$classes[] = 'post--sticky';
}
return $classes;
}
add_filter('post_class','sticky_posts');
Ref: https://nystudio107.com/blog/a-gulp-workflow-for-frontend-development-automation
Recent Posts title is misspelt.
https://gist.github.com/gerbenvandijk/5253921
Looks promising
File seems pointless to have, as no one seems to fully use it.
Can easily be disabled.
function my_deregister_scripts(){
wp_deregister_script( 'wp-embed' );
}
add_action( 'wp_footer', 'my_deregister_scripts' );
Old
gulp.task('imgs', function () {
gulp.src('assets/imgs/*')
.pipe(imagemin())
.pipe(gulp.dest('assets/imgs'));
});
New
gulp.task('imgs', function () {
gulp.src('assets/img/*')
.pipe(imagemin())
.pipe(gulp.dest('assets/img'));
});
// - - - - - - - - - - - - - - - - - - - - - - - - -
// :Helpers
// - - - - - - - - - - - - - - - - - - - - - - - - -
// Accessibility Hidden
// ------------------
._sr-hidden {
@include element-invisible;
}
// Responsive Classes
// ------------------
// Show only function to generate hidden classes
@each $show-only in $breakpoint-classes {
._show-only--#{$show-only} {
display: none;
}
}
._show-only--sml {
@include breakpoint(small only) {
display: block;
}
}
._show-only--med {
@include breakpoint(medium only) {
display: block;
}
}
._show-only--lrg {
@include breakpoint(large only) {
display: block;
}
}
// Background Colors
// ------------------
._slab-primary {
background-color: $palette-primary;
}
._slab-secondary {
background-color: $palette-secondary;
}
._slab-tertiary {
background-color: $palette-tertiary;
}
// Text Colors
// ------------------
._text-color-primary {
color: $palette-primary;
}
._text-color-secondary {
color: $palette-secondary;
}
._text-color-tertiary {
color: $palette-tertiary;
}
// Text Helpers
// ------------------
._text-caps {
text-transform: uppercase;
}
._text-l {
text-align: left;
}
._text-c {
text-align: center;
}
._text-r {
text-align: right;
}
Change from .element-hidden
to ._sr-hidden
Styling is missing the WordPress WYSIWYG classes, such as .alignleft
etc.
You heard me!
When Gulp watching, check templates for accessibility issues.
In the post.php file, change the date() function to this;
echo get_the_date();
Category link does not return full URL
<?php echo get_category_link($post_category->term_id); ?>
Add Custom Menu Walker for header and footer menus.
Adjust content within href
<span class="breadcrumbs__item--current" aria-current="page">
Disable some areas of the site for clients not to access.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.