Warning: Cannot modify header information - headers already sent by (output started at /home/rachelbaker/public_html/index.php:3) in /home/rachelbaker/public_html/wp-includes/feed-rss2.php on line 8
Rachel Baker http://rachelbaker.me Full-Stack Web Developer Thu, 09 Apr 2015 21:24:40 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.10 Use the New WordPress 3.5 Color Picker in a Plugin http://rachelbaker.me/how-to-use-the-new-wordpress-color-picker-in-a-plugin/ http://rachelbaker.me/how-to-use-the-new-wordpress-color-picker-in-a-plugin/#comments Tue, 27 Nov 2012 23:47:36 +0000 http://rachelbaker.me/?p=1631 ...]]> One of the many new features in WordPress 3.5 is the Iris color picker.  Iris replaces the, now deprecated, Farbtastic color picker script.  The new Iris color picker is shown off in the Theme Customizer for the Twenty-Twelve theme.

As soon as I saw Iris, I fell in love. She is user-friendly, colorful and fun. I found that implementing the new color picker is very similar to Farbtastic.

Iris Color Picker Demo Plugin

To use the Iris color picker in a plugin requires:

  1. Running a version of WordPress that is 3.5 Beta or higher.
  2. Loading the ‘wp-color-picker’ script and style into your plugin options page.
  3. Adding a text input for your color value to your plugin options page.
  4. Writing a custom jQuery script to call Iris’s wpColorPicker method on your color text input field(s).

How does the code look for implementing steps 2-4?
I created a demonstration plugin to help answer that. The plugin doesn’t do anything itself, it is only intended as a guide for developers interested in using the new Iris color picker in a WordPress plugin.

View on Github

Iris Color Picker Demo Plugin

http://rachelbaker.me/how-to-use-the-new-wordpress-color-picker-in-a-plugin/feed/ 2
Shortcodes Should Be a Last Resort http://rachelbaker.me/shortcodes-should-be-a-last-resort/ http://rachelbaker.me/shortcodes-should-be-a-last-resort/#comments Tue, 06 Nov 2012 21:18:51 +0000 http://rachelbaker.me/?p=1629 ...]]> I received an email inquiry from someone asking for help customizing a specific commercial theme. Reading the theme’s documentation, I was amazed that three entire pages were dedicated to shortcodes. Each of the page layouts shown in the theme’s demo was achieved by using several of those shortcodes.

This was the sample code for an “About” page:

[one_half_fw type="remove"]
[frame link="http://theme.phowebstudio.com/lion/wp-content/uploads/2012/03/team.jpg" src="http://theme.phowebstudio.com/lion/wp-content/uploads/2012/03/team.jpg" width="460" align="aligncenter"]
[one_half_fw type="remove"]
[clear size="20"]
[intro]SOME WORDS [intro_bold]ABOUT US[/intro_bold][/intro]
[clear size="10"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus semper nisi eu eros dignissim pulvinar. Aliquam erat volutpat. Nam convallis vehicula feugiat. Pellentesque nisl dui, consectetur vitae molestie in, mollis dignissim arcu. Duis convallis malesuada ante, nec aliquet leo iaculis et.
[clear size="10"]
[block_title title="Why choose us ?"]Here is some reasons why choose us[/block_title]
[accordion_item heading="Support 24/7"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin mi nunc, vehicula sodales consequat ut, laoreet eu nisl. In ultricies suscipit justo lacinia viverra. Quisque metus magna, faucibus non luctus quis, elementum et ligula.
[accordion_item heading="Responsive layout"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin mi nunc, vehicula sodales consequat ut, laoreet eu nisl. In ultricies suscipit justo lacinia viverra. Quisque metus magna, faucibus non luctus quis, elementum et ligula.

What a mess! I am a developer, and I have no clue on the intended purpose of some of those shortcodes. What the heck is [one_half_fw type=”remove”]?

Requiring use of a shortcode means you are asking users to remember interface-less non-standard commands to add or style content inside of a Content Management System.

As WordPress Developers, we have tools that provide a much better experience for users:

Can we agree to only use shortcodes when absolutely necessary?

http://rachelbaker.me/shortcodes-should-be-a-last-resort/feed/ 17
OpeninSublimeText.app: Open the Current Folder as a SublimeText2 Project from Finder http://rachelbaker.me/open-the-current-folder-as-sublimetext2-project/ http://rachelbaker.me/open-the-current-folder-as-sublimetext2-project/#comments Wed, 10 Oct 2012 21:12:39 +0000 http://rachelbaker.me/?p=1620 ...]]> OpeninSublimeText screenshot

I found this gem on Github today, OpeninSublimeText.app. I love all things SublimeText2 so I immediately installed the app. I am happy to give up a little section of my Finder bar to this useful application.

Open In SublimeText is a tiny tool that allows you to open the current folder or selection from Finder as a Sublime Text project. Just as simple as that.


http://rachelbaker.me/open-the-current-folder-as-sublimetext2-project/feed/ 3
Font Awesome Icons WordPress Plugin http://rachelbaker.me/font-awesome-icons-wordpress-plugins/ http://rachelbaker.me/font-awesome-icons-wordpress-plugins/#comments Tue, 18 Sep 2012 04:23:31 +0000 http://rachelbaker.me/?p=1608 ...]]> Font Awesome plugin banner

Font Awesome is my favorite of the free font icon sets. All of the 220 pixel perfect icons are well designed, have great cross-browser support and are easy to use.

I am using the Font Awesome icon set to display the social icons to the header area of this site. I wanted to be able to use the icons without having to rely on my current theme, so I created a simple WordPress plugin.

The Font Awesome Icons plugin adds the Font Awesome font and necessary styles to any WordPress site. The plugin is available to download from the WordPress plugin repository or from my Github account.

Update October 7, 2012:
The plugin is no longer available from the WordPress plugin repository, but it is still available for download from it’s Github repository.

Download from Github

Usage Instructions

To use any of the Font Awesome icons on your WordPress site you have two options:

1. HTML Option

All code examples on the Font Awesome site apply: http://fortawesome.github.com/Font-Awesome/#code

[prettify class=”html”][/prettify]
[prettify class=”html”][/prettify]
[prettify class=”html”][/prettify]

2. Shortcode Option

Don’t want to worry about HTML tags? You can use a shortcode in your posts, pages and even widgets to display a Font Awesome icon.

The shortcode to use is [icon name=name-of-icon], where name=X is the class of the icon you would like to use.

[prettify][icon name=icon-pencil][/prettify]
[prettify][icon name=icon-phone][/prettify]
[prettify][icon name=icon-chevron-left][/prettify]

Full Icons Set

Font Awesome Icon Set Full Vector List

http://rachelbaker.me/font-awesome-icons-wordpress-plugins/feed/ 18
WordPress Plugin Repository Now Requires Plugin URL http://rachelbaker.me/wordpress-plugin-repository-now-requires-plugin-url/ http://rachelbaker.me/wordpress-plugin-repository-now-requires-plugin-url/#respond Tue, 11 Sep 2012 19:57:53 +0000 http://rachelbaker.me/?p=1605 ...]]> I went to the WordPress Plugin Repository today to submit a new plugin. While going through the submission process, I stopped and smiled when I saw something new.

The plugin submission form now has a new field requiring a link to a zip file of the entire plugin contents.

WordPress Plugin Repository submission form

This looks to be a step toward moving the plugin review process to be as through as the theme review process and will improve the overall code quality in the WordPress Plugin Repository.

http://rachelbaker.me/wordpress-plugin-repository-now-requires-plugin-url/feed/ 0
Calculated Web Development with Soulver http://rachelbaker.me/calculated-web-development-with-soulver/ http://rachelbaker.me/calculated-web-development-with-soulver/#comments Mon, 03 Sep 2012 14:50:15 +0000 http://rachelbaker.me/?p=1602 ...]]> Soulver is a Mac application (they also have an iPad version) that has made my front-end development workflow much easier. CSS development requires a lot of simple calculations for element properties like widths, padding and margins.

When I needed a tool to double-check my work or just do computations for me, I was using either the built-in Calculator or Excel. The built-in Calculator app is simple but it doesn’t save any history of past calculations. Excel takes forever to open and was just too much application for what I really needed.

Soulver is the perfect solution, it is lightweight, fast and allows me to save my work. I keep the application running with a scratch document for any quick width or margin/padding calculations. I also have a few files saved that I reuse over and over again.

Using only words to explain how I use Soulver is difficult. I thought it would be best to show off two of my favorite calculators.

Calculating Fluid Grid Widths

I have a file that I constantly re-use when determining CSS element widths. I believe the calculation is based on the Semantic Grid System.

Calculating Typography Rhythm

I have a LESS mixin I use to set a baseline grid, but I also keep the calculation in a Soulver document to verify the expected output.

You can click on the images above to download the files.

If you are using Soulver, how are you using it?

http://rachelbaker.me/calculated-web-development-with-soulver/feed/ 2
I Love Open Source http://rachelbaker.me/i-love-open-source/ http://rachelbaker.me/i-love-open-source/#respond Wed, 29 Aug 2012 21:41:18 +0000 http://rachelbaker.me/?p=1597 ...]]> While working with the jQuery plugin HorizontalNav.js, I found a small bug in the code. In my project I was using HorizontalNav.js along with another plugin, Touchdown.js, and I am conditionally changing between the two menu displays depending on the window size.

Screenshot of duplicating div elements

The bug I found is really minor, but HorizontalNav.js was appending a new element each time it was activated. There should have been a conditional check to make sure the element didn’t already exist before another element was appended.

I filed an issue on Github explaining the bug and then looked into how I could fix the code for my project. In a matter of minutes I had added the conditional statement needed and tested my code. I knew my fix was not just useful to myself, but would also be useful to the plugin as a whole. I forked the original author’s repository and submitted a pull request with my code for fixing the bug that I had filed. About 15 minutes later, the author had accepted my pull request and everyone was happy.

code contribution

This is my favorite aspect of open source code projects. Everyone has the power to contribute. When you find a bug record what steps are needed to replicate it. Report the bug and be sure to provide as much information as possible. Then if you think you can fix the bug, do so and contribute your patch back to the original project. If you cannot fix the bug, that is okay. You can still be a part of the solution by answering follow-up questions in a timely manner.

http://rachelbaker.me/i-love-open-source/feed/ 0
Bootstrap 2.1 is Going Purple http://rachelbaker.me/bootstrap-gone-purple/ http://rachelbaker.me/bootstrap-gone-purple/#comments Tue, 10 Jul 2012 13:31:50 +0000 http://rachelbaker.me/?p=1589 ...]]>

I pulled down the latest updates on the Bootstrap 2.1 WIP branch from Github and was surprised by a new color scheme on their homepage.

Some other changes in their development branch are:

  1. Cleaner looking documentation pages with left navigation
  2. Offsets added for the fluid grid
  3. More display options for javascript popovers
  4. Increased base font-size to 14px
  5. Addition of prepend/append support in search form inputs

There has not been an expected release date posted for Bootstrap 2.1, but 88% of the open release tickets are closed. I am keeping the development branch of BootstapWP up to date with Twitter’s development to have an updated release ready with full Bootstrap 2.1 support.

http://rachelbaker.me/bootstrap-gone-purple/feed/ 8
Slides from WordCamp Milwaukee Presentation on WordPress Navigation http://rachelbaker.me/slides-wordcamp-milwaukee-presentation/ http://rachelbaker.me/slides-wordcamp-milwaukee-presentation/#respond Sun, 03 Jun 2012 03:29:46 +0000 http://rachelbaker.me/?p=1586 ...]]> I held a session at WordCamp Milwaukee about WordPress Navigation Menus. I’ve shared the slides on SpeakerDeck, and you can download the child-theme with all the code referenced in the presentation from Github.

Thank you to all the attendees of my session. I hope everyone was able to get something out of it! I had some great discussions afterwards about working WordPress Navigation. So good luck to all of you with getting started with creating your own “zazzy” WordPress Menus.

Download Slides


Download Theme Files

http://rachelbaker.me/slides-wordcamp-milwaukee-presentation/feed/ 0
What Entrepreneurs are Thinking http://rachelbaker.me/what-entrepreneurs-are-thinking/ http://rachelbaker.me/what-entrepreneurs-are-thinking/#respond Thu, 10 May 2012 15:49:09 +0000 http://rachelbaker.me/?p=1582 How is it going

So very true.

Photo of slide from Ted Rheingold’s talk at Big Omaha 2012

http://rachelbaker.me/what-entrepreneurs-are-thinking/feed/ 0