Bootstrap to WordPress (Udemy) #1
Craig
July 10th, 2015
The Power of Bootstrap
I can not remember the first time I was introduced to bootstrap, but it must have been at least 2+ years ago. Even after all that time, I’m still in awe of how well the CSS framework simply… works. I decided to take this course by Brad Hussey as a refresher to see if I was missing anything in my HTML to WordPress workflow.
Hell I built this blog in 4 hours from this static Bootstrap template! Shhhhh. But almost immediately I picked up some incredibly useful code templates, workflow improvements, and sweet bootstrap techniques. Love it when you pay $10 for a Udemy course and find value almost immediately.
The other benefit is Brad is the BEST Udemy instructor I have ever had. He is knowledgeable, engaging, and doesn’t take himself too seriously even though he has probably had tremendous success.
Sections 1 – 4
A lot of this content was boring review. Though I made a deal with myself to watch everything all the way through. If Brad wasn’t such a easy to follow guy I probably would have skipped it.
Sections 5 – 8
Wow. These sections contained some pretty great coding tactics. I had to make a big ass list (see below) to capture everything here were a few of my favorites.
social.badge.twitter
A CSS class that checks for ALL classes in the element in order to style. #MindBlown
Emmet
Hotkeys + Dynamic Code = Emmet. This will increase my coding speed at least 3x
Full List of Awesome Code Learnings:
- social.badge.twitter – checks for ALL classes to exist in order to style. Mind blown.
- img { max-width: 100% } – amazingly simple but solved a huge pain
- Use Color References in your CSS file as a comment!
- Webkit-font-smooth: antialiased and text-rendering: optimizelegibility
- Vertically align any content
- Parent Div – Display: Table
- Child Div (To vertically Align) – Display: Table Cell ; vertical-align: middle;
- Coda 2 + “Emmet” allows for code short cuts to auto fill speeding up your coding
- Square images to circles – border-radius: 50%;
- Using Comments on Columns and Rows within Bootstrap
- Button class btn-block – will span the full width of the parent element
- Bottom border on a SPAN – #signup h2 strong { border-bottom: solid 2px #dd5638; }
- Removes the blue outline default for links/buttons button.btn:focus { outline: none !important; }
- HTML Encoding
- — = “-“
- » = “>>”
- .row + .row – styles class of rows in a row
- #featurette iframe – can style height of embedded videos!
- HTML 5 Tags : <main></main>, <article></article>, <time></time>, <aside></aside> (Sidebar Wrapper)
- placeholder=”” <– Placeholder text class inside of a search bar or form field
Craig
Co-Founder of #TeamRB. Passionate about Salesforce, Wordpress, and Pardot. Love of Burritos, Bourbon, Bacon, Tech and the Arsenal!

