- Overview
- Prerequisite
- How to?
Importing styles from a WordPress theme with WEBDEV
WordPress offers numerous templates to create original websites. WEBDEV allows you to easily import these templates. When importing styles from a Wordpress Template, WEBDEV analyzes the content of the template, extracts and generates the styles used. WEBDEV also imports images from pages in the template. The import creates the style sheet based on the template, and allows the import of images used in the examples provided with the template. You can import multiple templates into the same project: each style sheet remains independent of the others. Before importing a WordPress template, check the following points: - The Visual C++ 2013 Redistributable Package must be installed on the computer.
As of the date of writing this document, this package can be downloaded from Microsoft's site (https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads). - The contents of the MySQL server archive must be copied to the WEBDEV WordPress directory:
- Download MySQL Server 5.X 32 or 64-bit as a ZIP archive (for example: https://dev.mysql.com/downloads/mysql/5.7.html).
- Create a "mysql" folder in the personal elements folder of WEBDEV. This folder will be:
- "\Personal\Wordpress" if WEBDEV is installed in a unique directory,
- "<User>\AppData\Roaming\PC SOFT\27.0\Wordpress" if WEBDEV is installed following the Windows standard.
- Extract the contents of the archive in the "\WordPress\mysql\" directory. The "bin", "lib" (...) folders must be at the root of the "\WordPress\mysql\" folder.
Examples of directories: - if WEBDEV is installed in a unique directory:
"C:\<WEBDEV 27 folder>\Personal\WordPress\mysql\bin\mysqld.exe" - if WEBDEV is installed following the Windows standard:
"C:\Users\<User>\AppData\Roaming\PC SOFT\27.0\WordPress\mysql\bin\mysqld.exe"
- Management of ports: Local TCP ports 3399 and 8099 are used.. Firewall security devices must allow WEBDEV to communicate locally through these ports (localhost).
If necessary, the WordPress theme import wizard will ask you to perform these operations. Caution: Before importing a WordPress theme, please read its license to make sure you can import it. To import a WordPress theme: - Open the WEBDEV project in which the WordPress theme is to be imported.
- On the "Project" tab, in the "Project" group, expand "Import" and select "Styles of a WordPress theme".
- The import wizard starts.
Remark: If the prerequisites are not met, the wizard will not propose to import the theme. - Select the '.zip' file containing the WordPress theme you want to import and click "Finish".
- The import starts and may take a few minutes.
- At the end of the import, WEBDEV proposes to open an example page in which the imported style is applied on the main controls of a WEBDEV page.
The styles of the WordPress theme are integrated into the project via a specific style sheet. To choose a WordPress theme style for one of your controls: - Select the control in the page.
- Open the context menu and select "Choose a WEBDEV style".
- The style selection window appears.
- To view only the styles of the WordPress theme, select its name in the "Project styles" list.
- Select the desired style and validate.
|
|
|
|