Daily Archives : November 25th, 2015

[Python 2.X] WordPress Page Creator


This python script logs into your wordpress, goes to the “Pages” section and creates your starting/foundation pages.


  • Python 2.7
  • BeautifulSoup
  • Mechanize

Setting up the text file:

  1. Create a text file named: “PagesToCreate.txt”
  2. Put “PagesToCreate.txt” in the same folder as the python script.
  3. Each line in the text file represents a new page. The text from each line is then used for the page title and content.

Useful for?

This quick script was designed for me to use when I have a new client that wants a wordpress site. I tend to have a lot of similar pages such as: Contact, About, Meet the Team, FAQ, etc… So to have a script create all my pages when I am creating a brand new wordpress site really helps.

The Python Code:


[HTML] Basic Four Box CTA Layout 1

This is a basic four box CTA layout done in HTML.

This template uses:

  • Font Awesome
  • CSS
  • HTML


  • Parent Container (id: #ctaContainer)
  • Four Child Containers inside Parent (id: #ctaHome)
    • Contains inside:
      • Icon Container (class: .iconCircle)
      • Heading Container (class: .ctaHeading)
      • Sub Heading Container (class: .ctaSub)
  • Float clear to keep it responsive

The CSS:


And lastly we now need to add the hover animations:


Example of the CTA’s being responsive as well as a hovered CTA:

Screen Shot 2015-11-25 at 9.18.20 AM