While working on an SEO for WordPress course recently, I was looking for a way to manually add meta descriptions to a theme from the functions.php file.
After playing around a bit, I came up with this solution:
This of course raises the bigger question of why would you want to do this instead of using a plugins like SEO by Yoast or All in One SEO. I don’t think that you actually would :p I just wanted to demonstrate how to do it.
If you have a more elegant solution, please suggest away!
Big thanks to Micah Wood for his article showing how to load conditional stylesheets the right way via the functions.php file.
Thanks Micah for the great post!
I have been a big Gravity Forms supporter for a long time, however, I’m beginning to get more interested in Ninja Forms, which is a free WordPress form builder and also quite powerful.
If you decide to build your WP forms with Ninja Forms, you may find the ninja_forms_display_form() function helpful since it let’s you hardcode a form directly into a template.
Most of the time I add my forms as shortcodes, but on occassion it’s necessary to hardcode in the form to the theme files itself. Here’s the full documentation for the ninja_forms_display_form hook.
Today I had the honor to do a 1hr 45min talk on How to Learn Web Design and Development via WordPress.
Here are the slides:
And the example site I used is here: wptreehouse.com/treehouse-tours
I wrote a while back about how Helen Hou-Sandi was a woman to watch in the WP community.
Here’s a great example why:
Gotta love the catchy title on this post from George Stephanis’s talk from WordCamp Philly: “The Seven Deadly Theming Sins”
You know it’s good cause George works for Automatic 😉