This is the new website for Robotics Playground, it is a generic Wordpress website with a custom theme.
This repo holds the custom theme and the setup for a docker based development environment.
dev_environment
: Contains the docker based dev environmentroboticspg
: Contains the wordpress theme
Install the following:
- Docker
To run the project:
cd dev_environment
docker-compose up -d
Wordpress will be hosted on localhost:8000
.
During the first run, you will need to follow the standard Wordpress installation steps.
Start the dev environment
docker-compose up -d
Stop the dev environment
docker-compose down
Delete the dev environment, including the database
docker-compose down --volumes
Shelling into a container
docker container ls
docker exec -i -t #container_id /bin/bash
#Populating Wordpress Website Login into admin side: http://localhost:8000/wp-admin View your site: http://localhost:8000/
Create each page that you want. Do not populate the page with content you would like displayed (this is where posts come into play).
Per page set in the side bar:
- Set page color (that is: Aqua, Blue, Pink, Yellow)
- Set "Page Attributes" > "Page Order" (the order the page will be in the menu bar)
- Disable "Discussion" > "Allow Comments"
To populate pages, create "Posts".
Per post set in the document settings side bar:
-
Set "Status & Visibility" > "Post Format" (that is: Aside, Gallery, Standard, Image)
-
Set "Categories". This should be the slug of the page you would like it to appear on
-
Featured Image if applicable.
-
Set "Post Order & Theme" > "Post Position" (the order the post will be on the given page)
-
Set "Post Order & Theme" > "White themed or Coloured theme"
-
Disable "Discussion" > "Allow Comments" and "Discussion" > "Allow pingbacks & trackbacks"
A: You have probably have not set the "Category" for your post to be the slug of your page. Or, you have not ordered the the post.
A: This is either 1. Your image is no longer in the same location on your local directory. or 2. You are using the wrong post format. Please see the post format section to see what each featured image does.
A: This is just that you are accidentally just viewing the post page. That is your url has p=30 (some number). Dont worry, the customer wont see it.
A: You unlikely set a color on you page. Go to your document settings on the page and change "Page Color"