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

Import default files for to child theme #12

Closed
4 tasks done
MakarandMane opened this issue Feb 17, 2023 · 1 comment
Closed
4 tasks done

Import default files for to child theme #12

MakarandMane opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@MakarandMane
Copy link
Member

MakarandMane commented Feb 17, 2023

Import default files for to child theme using repo https://github.com/wpgenius/Astra-Child-Theme

  • Do not activate scaffolded theme
  • download template repo
  • remove style.css from template
  • copy files from template to scaffolded theme
@MakarandMane MakarandMane added the good first issue Good for newcomers label Feb 17, 2023
@MakarandMane MakarandMane added this to the 1.2 milestone Feb 17, 2023
@MakarandMane
Copy link
Member Author

#Add default files to child theme
while true; do
    read -p "Do you wish to add default files to child theme? (Yes/No)" yn
    case $yn in
        [Yy]* ) 
        cd wp-content/themes/ && wget https://github.com/wpgenius/Astra-Child-Theme/archive/refs/heads/main.zip -q && unzip -q main.zip && rm Astra-Child-Theme-main/style.css main.zip
        mv Astra-Child-Theme-main/* $theme_slug && rm -r Astra-Child-Theme-main
        break;;
        [Nn]* ) exit;;
        * ) echo "Please answer yes or no.";;
    esac
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants