My personal site, running on Gatsby.
- Clone this repo
- Run
npm run develop
- Go to town!
- Run
npm run build
This repo is setup to auto deploy to Netlify
WordPress Starter Theme for use as a starting template for building custom themes. Uses SCSS, Normalize, AutoPrefixr, Grunt for compilation/linting/deployments, and BrowserSync for cross-device auto refreshing.
License: GNU General Public License v2.0
I guess if this theme is till updated and supported..
When I try to activate the theme in the themes page, this error is showing..
screenshot
Wordpress version : 4.9.5
Any idea of the problem ?
Thanks in advance,
Kévin
Hi there is no mention of the required plugins in the docs yet when you activate the plugin they are listed as such.
Are they merely recommended? Keen to hear your thoughts and thanks for a really good starter compass theme.
Hi,
I just tried to use this as a starter theme and got this error.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_mbbasetheme_setup' not found or invalid function name in /Users/user/Sites/Wordpress/my-theme/wp-includes/plugin.php on line 403
Any ideas? I'm using Wordpress 3.4.2.
Thanks
Hello Mattbanks,
Thanks for making such a great gulp.js file template environnement.
I was although why my setup seems to be so slow... Finished 'styles' after 6.65 s in my case. Here's a sample of my gulpfile.js setup.
Let me know!
Thanks
// Load plugins
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')({
camelize: true
}),
lr = require('tiny-lr'),
server = lr();
var gutil = require('gulp-util');
// Error Handling
var onError = function (err) {
plugins.util.beep();
};
// Styles
gulp.task('styles', function() {
return gulp.src('assets/styles/source/*.scss')
.pipe(plugins.plumber({
errorHandler: onError
}))
.pipe(plugins.rubySass({
compass: true,
lineNumbers : true,
// sourcemap: true
}))
// .pipe(plugins.autoprefixer('last 2 versions', 'ie 9', 'ios 6', 'android 4'))
.pipe(gulp.dest('assets/styles/build'))
// .pipe(plugins.minifyCss({
// keepSpecialComments: 1
// }))
.pipe(plugins.livereload(server))
.pipe(gulp.dest('./'))
.pipe(plugins.notify({
message: 'Styles task complete'
}));
});
// Styles
gulp.task('phpfiles', function() {
return gulp.src('header.php')
.pipe(plugins.plumber({
errorHandler: onError
}))
.pipe(plugins.livereload(server))
.pipe(plugins.notify({
message: 'Phpfiles task complete'
}));
});
// Vendor Plugin Scripts
gulp.task('plugins', function() {
return gulp.src(['assets/js/source/plugins.js', 'assets/js/vendor/*.js'])
.pipe(plugins.concat('plugins.js'))
.pipe(gulp.dest('assets/js/build'))
.pipe(plugins.rename({
suffix: '.min'
}))
.pipe(plugins.uglify())
.pipe(plugins.livereload(server))
.pipe(gulp.dest('assets/js'))
.pipe(plugins.notify({
message: 'Scripts task complete'
})
.on('error', gutil.beep));
});
// Site Scripts
gulp.task('scripts', function() {
return gulp.src(['assets/js/source/*.js', '!assets/js/source/plugins.js'])
.pipe(plugins.jshint('.jshintrc'))
// .pipe(plugins.jshint.reporter('default'))
// .pipe(plugins.concat('main.js'))
.pipe(gulp.dest('assets/js/build'))
.pipe(plugins.rename({
suffix: '.min'
}))
// .pipe(plugins.uglify())
.pipe(plugins.livereload(server))
.pipe(gulp.dest('assets/js'))
.pipe(plugins.notify({
message: 'Scripts task complete'
}));
});
// Images
gulp.task('images', function() {
return gulp.src('assets/images/*/')
.pipe(plugins.cache(plugins.imagemin({
optimizationLevel: 7,
progressive: true,
interlaced: true
})))
.pipe(plugins.livereload(server))
.pipe(gulp.dest('assets/images'))
.pipe(plugins.notify({
message: 'Images task complete'
}));
});
// Watch
gulp.task('watch', function() {
// Listen on port 35729
server.listen(35729, function(err) {
if (err) {
return console.log(err);
}
// Watch .php files
gulp.watch('header.php', ['phpfiles']);
// Watch .scss files
gulp.watch('assets/styles/source/**/*.scss', ['styles']);
// Watch .js files
gulp.watch('assets/js/**/*.js', ['plugins', 'scripts']);
// Watch image files
// gulp.watch('assets/images/**/*', ['images']);
});
});
// Default task
gulp.task('default', ['styles', 'plugins', 'scripts', 'images', 'watch']);
_post.scss line 53 .navgation I believe should be .navigation
Was racking my brain trying to figure out why I couldn't style the navigation!
Cheers,
Nathan
In lib/theme-functions.php, lines 87 and 89, these files are missing a slash after the get_template_directory_uri() function, so they give a 404 when visiting the website:
Suggested fix:
wp_enqueue_script( '_mbbasetheme-navigation', get_template_directory_uri() . '/assets/js/vendor/navigation.js', array(), '20120206', true );
wp_enqueue_script( '_mbbasetheme-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/vendor/skip-link-focus-fix.js', array(), '20130115', true );
When running grunt after installing from scratch, i got this error :
Error: File to import not found or unreadable: partials/spritesheet.
Load path: /wordtest/wp-content/themes/starter-theme
on line 31 of assets/styles/style.scss
Looks like there's a blank _spritesheets.scss
file missing in 1821e08
@mattbanks Apologies if this is a plugin issue rather than a theme issue but I am not sure where the issue lies at the moment.
The conflict arises when the 'Display Tweets' plugin is enabled with your theme.
http://wordpress.org/plugins/display-tweets-php/
The plugin has a settings page that is normally located under Settings called 'Twitter Feed'. When the plugin is enabled with your theme the menu item disappears and the page returns a You do not have sufficient permissions to access this page.
/wp-admin/options-general.php?page=displaytweets
This erroneous message does not occur and the Setting menu item is listed when the default Twenty Thirteen theme is enabled.
I have tested this on a vanilla WordPress 3.7.1 install, logged in as admin with only your Starter Theme and the Display Tweets plugin. Please advise where to go next because its got me stumped.
When I run grunt, it fails at imagemin:dist
. I haven't modified any code in any ways.
I'm running Windows 10, with node version 6.9.1 and npm version 3.10.8.
Execute the imagemin:dist
without errors
Returned error Fatal error: Cannot read property 'contents' of undefined
$ grunt
Running "sass:dist" (sass) task
Running "autoprefixer:files" (autoprefixer) task
>> 2 autoprefixed stylesheets created.
>> 2 sourcemaps created.
Running "cssmin:minify" (cssmin) task
>> 2 files created. 23.21 kB → 7.5 kB
Running "uglify:plugins" (uglify) task
>> 1 sourcemap created.
>> 1 file created.
Running "uglify:main" (uglify) task
>> 1 sourcemap created.
>> 1 file created.
Running "imagemin:dist" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined
Hi !
I have a problem with the "styles" gulp task.
It immediatly compiles .scss files really well, but the task take more than 30s to finish, and I get 4 "Styles task complete" before it finish. During these 30s, the task can't be run, so I have to wait these 30s to compile again my files.
Other tasks like "scripts" last like 10s, and five me 2 notifications.
Do you have a solution ?
I'm on Windows.
Thank you,
Thomas
Hi,
I'm getting this error when I try to add this function for the excerpt length.
function wp_set_excerpt_lenght( $length ){
return 20;
}
add_filter( 'excerpt_length', 'wp_set_excerpt_length');
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_set_excerpt_length' not found or invalid function name in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 298
I'm new to Wordpress actually.
Can you help in here?
Thanks in advance.
Me aparece este error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'ReduxFramework' does not have a method '_options_page' in /home4/wilmer/public_html/wp-includes/plugin.php on line 525
Me puede ayudar a solucionarlo.
I'm running Windows and trying to deploy my local theme using deploy task. For some reason, it's giving me an error. I've been using cmd.exe with Admin rights so that shouldn't be a problem. I've double checked the settings to make sure my creds are right and I don't see the problem there either.
Here's what I'm seeing (with everything being correct but obfuscated for privacy):
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.