- Fork the repository
- Create a database called
sw-wordpress-test - Create the user
swtestwith the password is123456and give it access to the db - Add
127.0.0.1 sw-dev.devto your hosts file - Add the following to httpd-vhosts.conf, making sure to use the correct path to the project
#SW Wordpress Developer Test
<VirtualHost *:80>
ServerName sw-dev.dev
ServerAlias sw-dev.ngrok.com
DocumentRoot "C:\projects\wordpress-developer-test"
<Directory "C:\projects\wordpress-developer-test">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
- Follow the Wordpress install instructions
All of the files that you will need for the test are located inside of the directory test-documents
- Create a custom post type called
Products - A Product needs fields in the admin for Title, Link, Image, Background-color
- Take each of the images from the
product-imagesdirectory, and create aproductfrom them. - Each one should have:
- a different background-color
- a different title
- a link to a page about it
- Display these Products on the home page, and make sure that it looks good in every screen size. You can refer to the screenshot called products, in the
screenshotsdirectory, to see how it should look.
- Create a custom post type called
videos - A
videoonly needs fields in the admin for Name, youtube-id - Take each of the videos listed in the text file
videos-listand create avideofrom them. - On the home page, below the
productssection, create a new section and that shows only one video and a list of text links for the other videos. Refer to the screenshot called videos, also in thescreenshotsdirectory to see how it should look. - When you click the link to another video in the list, the video displaying on the home page should change and become the new video