Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 5.3, fixed wrong paths, added ref to custom overrides #193

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pages/01.gantry5/05.advanced/03.customizing-theme-files/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In **Hydrogen** the first thing we want to do is add the **Image Picker** to the
[ui-tabs position="top-left" active="0"]
[ui-tab title="Joomla"]

To do this, you will need to create an override of the `section.yaml` found in `/media/gantry5/engines/nucleus/admin/blueprints/layout/`. To create the override, you will need to copy this file and paste it to `/TEMPLATE_DIR/custom/engine/admin/blueprints/layout/`.
To do this, you will need to create an override of the `section.yaml` found in `ROOT/media/gantry5/engines/nucleus/admin/blueprints/layout/`. To create the override, you will need to copy this file and paste it to `/TEMPLATE_DIR/custom/engine/admin/blueprints/layout/`.

[/ui-tab]
[ui-tab title="WordPress"]
Expand Down Expand Up @@ -125,7 +125,7 @@ form:
[ui-tabs position="top-left" active="0"]
[ui-tab title="Joomla"]

The next thing we need to do is create an override of our existing `section.html.twig` file. This file is located in `/media/gantry5/engines/nucleus/templates/layout`. To create an override for this file which won't be overwritten during a theme update, you will want to copy it and paste it in `/templates/TEMPLATE_DIR/custom/engine/templates/layout`. You will need to create the directory path if it doesn't already exist.
The next thing we need to do is create an override of our existing `section.html.twig` file. This file is located in `ROOT/media/gantry5/engines/nucleus/templates/layout`. To create an override for this file which won't be overwritten during a theme update, you will want to copy it and paste it in `/templates/TEMPLATE_DIR/custom/engine/templates/layout`. You will need to create the directory path if it doesn't already exist.

[/ui-tab]
[ui-tab title="WordPress"]
Expand Down Expand Up @@ -332,7 +332,7 @@ The `ROOT/media/gantry5/assets/` directory contains third-party assets used by G

The following directories are rooted in the `ROOT/media/gantry5/engines/nucleus` directory. This directory houses files that belong to the **Nucleus** engine, which is the core of Gantry 5's layout system. It provides core CSS, layout control, core files for theme creation, etc.

When creating custom copies of these files, you will want to put them in `TEMPLATE_DIR/custom/engine/` to indicate that these are engine-specific directories and not part of the theme-specific data.
When creating custom copies of these files, you will want to put them in `TEMPLATE_DIR/custom/engine/` to indicate that these are engine-specific directories and not part of the theme-specific data. More information on this topic is outline in the [Creating Custom File Overrides](../file-overrides) chapter.

| Directory |
| :------ |
Expand All @@ -355,7 +355,7 @@ The `ROOT/wp-content/plugins/gantry5/assets/` directory contains third-party ass

The following directories are rooted in the `ROOT/wp-content/plugins/gantry5/engines/nucleus` directory. This directory houses files that belong to the **Nucleus** engine, which is the core of Gantry 5's layout system. It provides core CSS, layout control, core files for theme creation, etc.

When creating custom copies of these files, you will want to put them in `THEME_DIR/custom/engine/` to indicate that these are engine-specific directories and not part of the theme-specific data.
When creating custom copies of these files, you will want to put them in `THEME_DIR/custom/engine/` to indicate that these are engine-specific directories and not part of the theme-specific data. More information on this topic is outline in the [Creating Custom File Overrides](../file-overrides) chapter.

| Directory |
| :------ |
Expand All @@ -378,7 +378,7 @@ The `ROOT/user/plugins/gantry5/assets/` directory contains third-party assets us

The following directories are rooted in the `ROOT/user/plugins/gantry5/engines/nucleus` directory. This directory houses files that belong to the **Nucleus** engine, which is the core of Gantry 5's layout system. It provides core CSS, layout control, core files for theme creation, etc.

When creating custom copies of these files, you will want to put them in `THEME_DIR/custom/engine/` to indicate that these are engine-specific directories and not part of the theme-specific data.
When creating custom copies of these files, you will want to put them in `user/data/gantry5/themes/THEME_DIR/engine/` to indicate that these are engine-specific directories and not part of the theme-specific data. More information on this topic is outline in the [Creating Custom File Overrides](../file-overrides) chapter.

| Directory |
| :------ |
Expand Down