- Issue created by @smethawee
- π¦πΊAustralia RichardGaunt Melbourne
@smethawa It looks like you are trying to run it in the wrong directory because it did not find the `civictheme_create_subtheme.php` file
You need to run the command in the civictheme file directory not your drupal root directory.
- πΊπΈUnited States smethawee
Thank you so much @RichardGaunt!!! Yes I did in the civictheme directory \docroot\themes\contrib\civictheme. Thanks!
HI @smethawee. I just want to confirm that your last message means you have had success, and I can close this request?
Thank you.- Assigned to fionamorrison23
- Status changed to Postponed: needs info
7 months ago 10:32pm 28 April 2024 - πΊπΈUnited States smethawee
Hi fionamorrison23,
Not success yet. I still can't install in on that directory \docroot\themes\contrib\civictheme.
Thanks you! @smethawee I used this and it worked
php civictheme_create_subtheme.php civictheme_demo "CivicTheme Demo" "Demo sub-theme for a CivicTheme theme."- π¦πΊAustralia Toby Wild
Hi smethawee.
This worked for me today:
In the directory /themes/civictheme
On the command line I ran:
php civictheme_create_subtheme.php cttesttheme "Test Theme" "Human theme description" ../cttest
Breaking that down it goes as:
- php: running a PHP command on the command line
- civictheme_create_subtheme.php: Triggering that file
- cttestheme: That is the machine name of the theme I want to create
- "Test Theme": Is the human readable name
- "Humn theme description": That is the theme description
- ../cttest: Means go back one directory (Back into /themes) and create it in the new folder "cttest"
If you just straight up copy and paste the suggested command without changing the theme machine name and path arguments, it wont work.
If this doesn't work for you, can you provide what error you are seeing, or what outcome is happening at all?
- πΊπΈUnited States smethawee
Hi @claire.cb @Toby Wild,
Thank you for your time and attention to this matter. I appreciate very much!!! I still struck now with php command. I ran DDEV as local please see below that the issue.
Thank you,
-----------------------------------------------------------
ddev php civictheme_create_subtheme.php civictheme_demo "CivicTheme Demo" "Demo sub-theme for a CivicTheme theme."
Could not open input file: civictheme_create_subtheme.php
Failed to run php civictheme_create_subtheme.php civictheme_demo CivicTheme Demo Demo sub-theme for a CivicTheme theme.: exit status 1
------------------------------------------------------------php civictheme_create_subtheme.php cttesttheme "Test Theme" "Human theme description" ../cttest
Command 'php' not found, but can be installed with:
sudo apt install php7.4-cli - Status changed to Closed: works as designed
5 months ago 1:22pm 23 June 2024 - π¦πΊAustralia alex.skrypnyk Melbourne
@smethawee
This is a php script that you need to run from the `civictheme` directory.`ddev php` runs a script in the root of the project rather than in the specified directory. We cannot provide support for specific installations - we simply do not know how you have your project configured. Please consult DDEV documentation on how to run scripts from a specific directory.
Please follow the steps specified here https://docs.civictheme.io/development/drupal-theme/sub-theme