• Notice: PHP templates are now available in the full site editing theme.

    In emulsion ver2.6.1, when using the full site editing theme, in (customize/theme scheme/full site editing theme), named templates and page meta by template hierarchy such as category.php, archive.php, single.php Enables the use of informed page templates. requirements These templates must be placed in the fse-compatible-classic-template directory. It works as a PHP template specifically for the…

  • emulsion Theme は変な奴

    一般的に、block theme ( full site editiong theme ) は、主にコアのCSSをうまく使って最小限度のCSSで構成されています。 最新のデフォルトテーマTwenty Thirteenでは、customizerも、functions.phpも使用しませんし、style.css を読み込むこともしません。 今までの常識は覆されたといってもいいのではないかと思います。 私自身は、特にWordPressのコミュニティーに深くかかわっているわけでもないので、WordPressの未来について知る由もないわけですが、 個人的には、ワードプレスのテーマ依存の問題を解決するプロジェクトのように見ています。ワードプレスのテーマ依存とは、「ワードプレスは、何らかのテーマファイルがないと機能しない。」という意味です。 おそらく将来的には、テーマは、プラグインのような位置づけとなると、予想しています。 おそらく、均一で同じような見た目のサイトが嫌いだとか、それじゃ伝わらないとか、需要や主張がなくなるわけないと思うので、デザインやレイアウトをコントロールする機能が全くなくなるという事はないんじゃないかと楽観的です。 HTMLやCSSの知識がない人でも、それなりに。それなりの知識を持った人たちは、さらに素晴らしいWEBサイトの構築ができるようになるのだろうと思っています。 emulsion テーマは、なにを考えているの? emulsion テーマは、最小限度のCSSで構成されているわけではなく、最低でも数千行のCSSを使用しています。 WordPress.orgにホスティングされているブロックテーマのほとんどは、コアのCSSをうまく使って最小限のCSSで構成されるため、コアのCSSのバグはほとんどのテーマで同様の不具合を生じさせます。その逆に素晴らしい部分も、CSSなしで自動的に反映します。 このような特性は、ホスティングブロックテーマの、推奨された「あるべき姿」のようです。 そのような中で、なぜemulsionは、大量のCSSを追加し続けているのか ブロックテーマは、クラッシックテーマとの互換性を考慮しない全く新しい機能を追求し続けているのに対し、emulsion テーマは、クラッシックテーマとブロックテーマの間の道のりに注目しているという立場の違いにあります。 CSSは、簡単に書ける割には破綻しやすい設定です。書けば書くほど、つじつまが合わなくなったり、矛盾が生じるので、ちょっと恥ずかしさも伴いますが、気にしないようにしています。 これまで、テーマでやってきたこと。 PHPテンプレートと、テーマのCSSでクラッシックテーマとして動作する機能 PHPテンプレートの中に、HTMLテンプレートを埋め込んで動作する機能 HTMLテンプレートを使用したフルサイトテーマ機能 いわゆるユニバーサルテーマといわれるタイプのテーマですが、どこにも見本もありませんし、ただ数年間壊れ果てることなく動作し続けているということが取り柄のテーマです。 もともとは、フルサイトエディタのプロジェクトの変化を観察するために作成したテーマだったのですが、現在では、必要な場所でPHPテンプレートを使用したり、クラッシックテーマで、HTMLテンプレートのヘッダーやフッターに切り替える機能など、別々の機能を融合させることも出来つつあります。 必要な時と場所で、PHPテンプレートでしかできない機能はPHPで、そうでない部分は、シンプルなHTMLテンプレートで、ブロックテーマと、クラッシックテーマ等と名前を使い分ける時代は、いつか終わり、相互に良いところを使い分け可能なスタイルになっているだろうと、emulsion (乳化)という名前に希望を託しています。 おまけ HTMLもCSSも知らないユーザーにフレンドリーなWordPressなら、HTMLやCSSをちょっと知っているユーザーにもフレンドリーであってほしい。と思っている では、クイズを一問 幅、800pxのブロックをカスタムHTMLブロックで作成してみましょう。 hello world 800px 幅のブロックができていると思いますが、一般的なブロックテーマではこのhtmlは、800pxで表示することはできないだろうと思います。仮にできたとしても、ブラウザ幅が800px以下になったら、オーバーフローしてしまいます。 (解決方法はもちろんあります。max-width:100% 追加すればいいだけなんだけど、widthという最も基本的なプロパティを指定すると、オーバーフローするっておかしいよね) プロジェクトの人たちは、明日そのような問題を解決すると考えているでしょうが、テーマは、今動くべきだと考えています。

  • Usage notes when customizing the header footer in the site editor

    This article is based on WordPress 6.0.2 gutenberg plugin 14.0.2. When you open your site editor, you should see the home template. If you click the replace button and change the header, all page headers will be replaced As for footers, footers on all pages are replaced in the same way. For the emulsion theme,…

  • BLOCK LAYOUT and how to use

    The Layout feature was redesigned in WordPress 6.1 and this article is out of date. wordpress 6.1 Theme layout – Emulsion Theme What is the layout function? When inherit default layout is turned ON, two fields, container and wide, are displayed. content overrides the width of none in the menu wide overrides the width of…

  • WordPress 6.0 and emulsion Theme

    WordPress 6.0 adds the ability to choose a color scheme in the site editor. The emulsion theme had this feature implemented earlier as of 5.9, but it’s generally working as expected. A notation has also been added that makes it easy to enter links within the site. You can search for post links by typing…

  • Child theme (of block theme)

    There is a child theme for customizing WordPress. You can also create a child theme with a block theme. (Emulsion theme supports child theme in version 2.2.0)した) This page explains the main points about the child theme of emulsion theme. Minimal child theme index.php (emulsion テーマのindex.phpのコピー) style.css note: The emulsion theme loads the child theme’s…

  • WordPress 5.9 with emulsion Theme

    In WordPress 5.9, the customizer has not taken the lead, and a new editor (site editor) has taken the lead. The new editor allows everyone to consistently change settings to their liking, such as changing to a grid layout, changing colors, showing or hiding the posting date, showing or sizing the poster icon, etc. became.…

  • Improved so that the theme class is reflected in the block editor

    Note The emulsion addons plugin must be enabled. Thematic-specific positioning classes are now accurately reflected within the block editor With blocks, even blocks that do not have an alignment menu can be handled by adding advanced setting / additional CSS classes, improving layout flexibility Details of the class will be displayed when the emulsion-addons plugin…