Changing Themes
Here’s the Step by Step guide on how to change themes in your WordPress project using GitLab. This guide assumes you have a basic understanding of Git and WordPress.
Step 1: Given that you have not cloned the existing repository yet.
git clone [email protected]:training/training-ap-panorama.git
Step 2: Create a Branch
Follow Naming Guidelines.
git checkout -b 'Branch_Name'
Step 3: Add new Theme via Composer
By running composer command, you can install or update a plugin.
composer require "aios-packages/parent_theme_name":"version" — Require and install specific version.or
Please check if theme is already in composer base if not just simply go to AIOS resources and download the theme and place it in the web/app/themes/
directory.
Agentpro Lists
4: Download Child theme
Go to AIOS resources the and download the child theme.
Place it in the web/app/themes/
directory.
6: Add parent theme to .gitignore
web/app/themes/parent_theme_name // example : agentpro-elevate, agentpro-panorama
Step 7: Edit vite.config.js
- Go to
web/vite.config.js
and edit the following on line 12
Example:
const themeName = 'agentpro-elevate-child';
Go to AIOS resources and download the child theme.
Place it in the web/app/themes/
directory.
Step 8: Install AIOS Autopopulation via Composer
composer require "aios-packages/aios-autopopulation":"version"
Step 9: Commit the changes you’ve made.
git commit -m '<commit_message>'
Step 10: Push your changes.
git push origin 'Branch_Name'
Step 11: Create Merge Request.
https://gitlab.forge99.com/your_project_group/your_project_url
Step 12: Activate AIOS Autopopulation and Child Theme
Activating the Child Theme
Go to the WordPress admin panel, navigate to Appearance > Themes, and activate the child theme you just created.
Activating AIOS Autopopulation
Got to the WordPress admin panel, navigate to Plugins > Installed Plugins, and activate the AIOS Autopopulation plugin.