• Почему не работают Google fonts в Wordpress на локальном сервере Xampp?

    @ComahonQQComahon Автор вопроса
    и в variables-site/_typography
    $font__serif:'PT Serif', Georgia, Cambria, "Times New Roman", Times, serif;
    $font__sans:'Source Sans Pro', "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Arial, sans-serif;
    $font__main: sans-serif;
    $font__code: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    $font__pre: "Courier 10 Pitch", Courier, monospace;
    $font__line-height-body: 1.5;
    $font__line-height-pre: 1.6;
  • Почему не работают Google fonts в Wordpress на локальном сервере Xampp?

    @ComahonQQComahon Автор вопроса
    подключал в functions
    function humescores_scripts() {
        //enqueue google fonts: Source Sans Pro and PT serif
            wp_enqueue_style('humescores-fonts', 'https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i|Source+Sans+Pro:400,400i,600,900&display=swap');
    	wp_enqueue_style( 'humescores-style', get_stylesheet_uri() );
    
    	wp_enqueue_script( 'humescores-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
    
    	wp_enqueue_script( 'humescores-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );
    
    	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    		wp_enqueue_script( 'comment-reply' );
    	}
    }


    в saas/typography/_typography

    body,
    button,
    input,
    select,
    optgroup,
    textarea {
    	color: $color__text-main;
    	font-family: $font__serif;
    	@include font-size(1);
    	line-height: $font__line-height-body;
    }
    
    @import "headings";
    
    @import "copy";
  • Почему не работают Google fonts в Wordpress на локальном сервере Xampp?

    @ComahonQQComahon Автор вопроса
    Alex, в networks пусто. ни стилей, ни шрифтов
  • Почему не работают Google fonts в Wordpress на локальном сервере Xampp?

    @ComahonQQComahon Автор вопроса
    загружается и ошибок не выдает
    5e43a05ddf0ab893836785.jpeg
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    Seasle, спасибо, но этот метод я попробовал еще до того как задал здесь свой вопрос, это не помогло. Помимо этого я так же обратился и напрямую к 1000ch (автору gulp-image) с этим же вопросом, ответа так и не получил ни на гитхаб ни на линкедин. Соответсвенно делаю вывод что работать с этим инструментом не стоит. Может посоветуете толковую альтернативу gulp, npm? Задача одна - максимально быстрое создание сеток сайтов на WP
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    Seasle, Установил, переустановил, удалил и т.д. итог один - ошибка идентичная той что в первом сообщении в моем вопросе
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    Seasle, Я написал именно toolS обратите внимание на скрин с пауэр шела
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    В итоге ошибка все та же и остается

    C:\Users\Sergey>cd desktop/myapp/gulp-dev
    
    C:\Users\Sergey\Desktop\myapp\gulp-dev>npm i
    
    > node-sass@4.13.1 install C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\n
    ode-sass
    > node scripts/install.js
    
    Cached binary found at C:\Users\Sergey\AppData\Roaming\npm-cache\node-sass\4.13.
    1\win32-ia32-79_binding.node
    
    > node-sass@4.13.1 postinstall C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modul
    es\node-sass
    > node scripts/build.js
    
    Binary found at C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\node-sass\ve
    ndor\win32-ia32-79\binding.node
    Testing binary
    Binary is fine
    
    > jpeg-recompress-bin@4.0.0 postinstall C:\Users\Sergey\Desktop\myapp\gulp-dev\n
    ode_modules\jpeg-recompress-bin
    > node lib/install.js
    
      × Error: spawn UNKNOWN
        at ChildProcess.spawn (internal/child_process.js:405:11)
        at Object.spawn (child_process.js:548:9)
        at module.exports (C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\execa
    \index.js:139:26)
        at C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\bin-check\index.js:16
    :11
    
    > gifsicle@4.0.1 postinstall C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules
    \gifsicle
    > node lib/install.js
    
      √ gifsicle pre-build test passed successfully
    
    > guetzli@2.0.0 postinstall C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\
    guetzli
    > node lib/install.js
    
      ‼ Command failed: C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\guetzli\
    vendor\guetzli.exe --verbose
    Guetzli JPEG compressor. Usage:
    guetzli [flags] input_filename output_filename
    
    Flags:
      --verbose    - Print a verbose trace of all attempts to standard output.
      --quality Q  - Visual quality to aim for, expressed as a JPEG quality value.
      --memlimit M - Memory limit in MB. Guetzli will fail if unable to stay under
                     the limit. Default is 6000 MB
      --nomemlimit - Do not limit memory usage.
    
    
      ‼ guetzli pre-build test failed
      i compiling from source
      × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "mkdir -p C:\Users\
    Sergey\Desktop\myapp\gulp-dev\node_modules\guetzli\vendor"
    �������� ��� 䠩� C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\guetzli\vend
    or 㦥 �������.
    �訡�� �� �६� ��ࠡ�⪨: C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\guetzli\v
    endor.
    
    
        at C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\execa\index.js:231:11
    
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async Promise.all (index 0)
    
    > mozjpeg@6.0.1 postinstall C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\
    mozjpeg
    > node lib/install.js
    
      √ mozjpeg pre-build test passed successfully
    
    > optipng-bin@6.0.0 postinstall C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modu
    les\optipng-bin
    > node lib/install.js
    
      ‼ spawn UNKNOWN
      ‼ optipng pre-build test failed
      i compiling from source
      × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "./configure --with
    -system-zlib --prefix="C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\optip
    ng-bin\vendor" --bindir="C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\opt
    ipng-bin\vendor""
    "." �� ���� ����७��� ��� ���譥�
    ��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
    
    
        at C:\Users\Sergey\Desktop\myapp\gulp-dev\node_modules\execa\index.js:231:11
    
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async Promise.all (index 0)
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fs
    events):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
    1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32
    "})
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! optipng-bin@6.0.0 postinstall: `node lib/install.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the optipng-bin@6.0.0 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional log
    ging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\Sergey\AppData\Roaming\npm-cache\_logs\2020-01-26T07_58_46
    _736Z-debug.log
    
    C:\Users\Sergey\Desktop\myapp\gulp-dev>
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    А это package.json
    {
      "name": "humescores",
      "version": "0.0.1",
      "description": "Accessible WordPress theme utilizing flex layouts and modern development practices.",
      "main": "index.php",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/mor10/humescores"
      },
      "author": "Morten Rand-Hendriksen",
      "license": "GPL-3.0",
      "bugs": {
        "url": "https://github.com/mor10/humescores/issues"
      },
      "homepage": "https://github.com/mor10/humescores#readme",
      "devDependencies": {
        "autoprefixer": "*",
        "browser-sync": "*",
        "gulp": "*",
        "gulp-image": "*",
        "gulp-jshint": "*",
        "gulp-newer": "*",
        "gulp-postcss": "*",
        "gulp-sass": "*",
        "gulp-sourcemaps": "*",
        "jshint": "*"
      }
    }
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    вот содержание gulpfile.js который я использовал
    var themename = 'humescores';
    
    var gulp = require('gulp'),
    	// Prepare and optimize code etc
    	autoprefixer = require('autoprefixer'),
    	browserSync = require('browser-sync').create(),
    	image = require('gulp-image'),
    	jshint = require('gulp-jshint'),
    	postcss = require('gulp-postcss'),
    	sass = require('gulp-sass'),
    	sourcemaps = require('gulp-sourcemaps'),
    
    	// Only work with new or updated files
    	newer = require('gulp-newer'),
    
    	// Name of working theme folder
    	root = '../' + themename + '/',
    	scss = root + 'sass/',
    	js = root + 'js/',
    	img = root + 'images/',
    	languages = root + 'languages/';
    
    
    // CSS via Sass and Autoprefixer
    gulp.task('css', function() {
    	return gulp.src(scss + '{style.scss,rtl.scss}')
    	.pipe(sourcemaps.init())
    	.pipe(sass({
    		outputStyle: 'expanded', 
    		indentType: 'tab',
    		indentWidth: '1'
    	}).on('error', sass.logError))
    	.pipe(postcss([
    		autoprefixer('last 2 versions', '> 1%')
    	]))
    	.pipe(sourcemaps.write(scss + 'maps'))
    	.pipe(gulp.dest(root));
    });
    
    // Optimize images through gulp-image
    gulp.task('images', function() {
    	return gulp.src(img + 'RAW/**/*.{jpg,JPG,png}')
    	.pipe(newer(img))
    	.pipe(image())
    	.pipe(gulp.dest(img));
    });
    
    // JavaScript
    gulp.task('javascript', function() {
    	return gulp.src([js + '*.js'])
    	.pipe(jshint())
    	.pipe(jshint.reporter('default'))
    	.pipe(gulp.dest(js));
    });
    
    
    // Watch everything
    gulp.task('watch', function() {
    	browserSync.init({ 
    		open: 'external',
    		proxy: 'humescores.dev',
    		port: 8080
    	});
    	gulp.watch([root + '**/*.css', root + '**/*.scss' ], ['css']);
    	gulp.watch(js + '**/*.js', ['javascript']);
    	gulp.watch(img + 'RAW/**/*.{jpg,JPG,png}', ['images']);
    	gulp.watch(root + '**/*').on('change', browserSync.reload);
    });
    
    
    // Default task (runs at initiation: gulp --verbose)
    gulp.task('default', ['watch']);
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    Seasle увидел в документации что через пауэр шелл делать
    5e2d4311f2c39981109095.jpeg
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    Уважаемый Seasle, вот что получил в итоге
    C:\Users\Sergey\Desktop\myapp>npm cache clean --force
    npm WARN using --force I sure hope you know what you are doing.
    
    C:\Users\Sergey\Desktop\myapp>npm install -g windows-build-tool
    npm ERR! code E404
    npm ERR! 404 Not Found - GET https://registry.npmjs.org/windows-build-tool - Not
     found
    npm ERR! 404
    npm ERR! 404  'windows-build-tool@latest' is not in the npm registry.
    npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
    
    npm ERR! 404
    npm ERR! 404 Note that you can also install from a
    npm ERR! 404 tarball, folder, http url, or git url.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\Sergey\AppData\Roaming\npm-cache\_logs\2020-01-26T07_34_56
    _807Z-debug.log
    
    C:\Users\Sergey\Desktop\myapp>
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    Seasle,
    C:\Users\Sergey>
    C:\Users\Sergey>cd desktop/myapp
    
    C:\Users\Sergey\Desktop\myapp>npm i gulp-image
    
    > gifsicle@4.0.1 postinstall C:\Users\Sergey\Desktop\myapp\node_modules\gifsicle
    
    > node lib/install.js
    
      √ gifsicle pre-build test passed successfully
    
    > guetzli@2.0.0 postinstall C:\Users\Sergey\Desktop\myapp\node_modules\guetzli
    > node lib/install.js
    
      ‼ Command failed: C:\Users\Sergey\Desktop\myapp\node_modules\guetzli\vendor\gu
    etzli.exe --verbose
    Guetzli JPEG compressor. Usage:
    guetzli [flags] input_filename output_filename
    
    Flags:
      --verbose    - Print a verbose trace of all attempts to standard output.
      --quality Q  - Visual quality to aim for, expressed as a JPEG quality value.
      --memlimit M - Memory limit in MB. Guetzli will fail if unable to stay under
                     the limit. Default is 6000 MB
      --nomemlimit - Do not limit memory usage.
    
    
      ‼ guetzli pre-build test failed
      i compiling from source
      × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "mkdir -p C:\Users\
    Sergey\Desktop\myapp\node_modules\guetzli\vendor"
    �������� ��� 䠩� C:\Users\Sergey\Desktop\myapp\node_modules\guetzli\vendor 㦥 ����
    ���.
    �訡�� �� �६� ��ࠡ�⪨: C:\Users\Sergey\Desktop\myapp\node_modules\guetzli\vendor.
    
    
        at C:\Users\Sergey\Desktop\myapp\node_modules\execa\index.js:231:11
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async Promise.all (index 0)
    
    > jpeg-recompress-bin@4.0.0 postinstall C:\Users\Sergey\Desktop\myapp\node_modul
    es\jpeg-recompress-bin
    > node lib/install.js
    
      × Error: spawn UNKNOWN
        at ChildProcess.spawn (internal/child_process.js:405:11)
        at Object.spawn (child_process.js:548:9)
        at module.exports (C:\Users\Sergey\Desktop\myapp\node_modules\execa\index.js
    :139:26)
        at C:\Users\Sergey\Desktop\myapp\node_modules\bin-check\index.js:16:11
    
    > mozjpeg@6.0.1 postinstall C:\Users\Sergey\Desktop\myapp\node_modules\mozjpeg
    > node lib/install.js
    
      √ mozjpeg pre-build test passed successfully
    
    > optipng-bin@6.0.0 postinstall C:\Users\Sergey\Desktop\myapp\node_modules\optip
    ng-bin
    > node lib/install.js
    
      ‼ spawn UNKNOWN
      ‼ optipng pre-build test failed
      i compiling from source
      × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "./configure --with
    -system-zlib --prefix="C:\Users\Sergey\Desktop\myapp\node_modules\optipng-bin\ve
    ndor" --bindir="C:\Users\Sergey\Desktop\myapp\node_modules\optipng-bin\vendor""
    "." �� ���� ����७��� ��� ���譥�
    ��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
    
    
        at C:\Users\Sergey\Desktop\myapp\node_modules\execa\index.js:231:11
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async Promise.all (index 0)
    npm WARN myapp@1.0.0 No description
    npm WARN myapp@1.0.0 No repository field.
    npm WARN myapp@1.0.0 No license field.
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! optipng-bin@6.0.0 postinstall: `node lib/install.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the optipng-bin@6.0.0 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional log
    ging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\Sergey\AppData\Roaming\npm-cache\_logs\2020-01-23T13_05_30
    _635Z-debug.log
    
    C:\Users\Sergey\Desktop\myapp>
  • Почему не работает gulp-image на win 7 x86?

    @ComahonQQComahon Автор вопроса
    Seasle, проверил, не помогло