【问题标题】:Wordpress roots/sage installation options not workingWordpress 根/圣人安装选项不起作用
【发布时间】:2023-04-08 07:02:01
【问题描述】:

我在我的 wordpress 上安装了 sage,但没有选择 sage docs 所说的选项

在主题安装期间,您可以选择:

  • 更新主题标题(主题名称、描述、作者等)
  • 选择一个 CSS 框架(Bootstrap、Foundation、Tachyons,无)
  • 添加超棒字体
  • 配置 Browsersync(主题路径、本地开发 URL)
C:\php7\htdocs\blog\wp-content\themes>composer create-project roots/sage foundat
ion 8.5.3
Installing roots/sage (8.5.3)
  - Installing roots/sage (8.5.3): Loading from cache
Created project in foundation
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing composer/installers (v1.4.0): Loading from cache
Writing lock file
Generating autoload files

我成功激活了 wordpress 仪表板上的基础主题。我错过了什么吗?

【问题讨论】:

    标签: wordpress composer-php wordpress-theming roots-sage


    【解决方案1】:

    安装 sage 9 后仍然无法选择选项,因为 Windows 平台不支持 TTY 模式。

    要解决这个问题,请在您的主题目录中运行以下命令:

    ./vendor/bin/sage meta
    ./vendor/bin/sage config
    ./vendor/bin/sage preset
    

    【讨论】:

      【解决方案2】:

      您正在阅读 sage 9.x 的文档,但安装的是 8.5.3,这是一个完全不同的设置,没有上述功能。 Sage 9 只能在运行 PHP 7.x 及更高版本时安装。

      如果您只是使用相同的 composer 命令而没有版本号,您应该获得最新版本。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-03-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-04-11
        • 2011-03-03
        相关资源
        最近更新 更多