Skip to content

RoboticsPG/website-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robotics Playground Website

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.

Directory structure

  • dev_environment: Contains the docker based dev environment
  • roboticspg: Contains the wordpress theme

Development

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.

Docker Compose commands

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/

Pages

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"

Posts

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"

Common Mistakes & Trouble Shooting

Q: The post is not displaying on the page?

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.

Q: Images are not displaying correctly?

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.

Q: Your posts are containing the publish date/author/comments (things that do with a blog)?

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.

Q: Page doesnt have a color or has a white background?

A: You unlikely set a color on you page. Go to your document settings on the page and change "Page Color"