No Really, Thanks Adam

My name is Allen and I work in NW Washington State for a genetics company designing and managing marketing materials and websites.

I have attended Word Camp Victoria for the last few years as it is only a short ferry ride from my home to attend. Having been inspired and motivated by those in attendance, my company now has several Word Press websites in use.

Recently we were experiencing a 404 error when commenting in Buddy Press. Having only limited code knowledge I turned to our webhost in Seattle for help. They looked into it and claimed it was nothing on their end and suggested I search for solutions on WordPress.org. Finding none, I was in a pinch.

I remembered meeting several knowledgeable folks at Word Camp Victoria and wondered if contacting any of them might lead me in the right direction.

Adam McFayden rose quickly to the top in my search for help with my 404 error.

After contacting Adam via email it seemed odd he did not want to know who I was necessarily but wanted to know what my problem was. Illustrating how truly passionate he is about his work.

After giving him just a brief description and admin access he quickly gave me a specific failure on the part of my Seattle webhost. I was then able to ask for specific fixes on their end and we are back in business.

Thanks Adam for going above and beyond for a guy who you never met and delivering a business experience for which I will always be grateful.

- Allen

Free WordPress Theme: ‘Plain and Simple’

Plain and Simple TwentyEleven Theme for WordPress

‘Plain-and-Simple’ has been developed to give users all of the benefits of the WordPress twentyeleven theme without some of the hassles.

TwentyEleven defaults include:

  • Ability to choose left-column layout, right-column layout or one-column layout
  • Set your own background-color and link-color
  • Two style-sheets (Light & Dark)
  • Choose your own header-graphic(s)

Plain-and-Simple Enhancements include:

  • Separate menu-bars for the desktop / mobile versions of the same site.
  • Decreased header-graphic height.
  • 5 Additional side-bars.
  • Enhanced dynamic scaling.

Download Plain-and-Simple by Adam McFadyen Here


WordPress twentyeleven Mobile Friendly Navigation

Dynamic scaling and css3 media-queries often work wonders for a wordpress themes layout… but the menus are often forgotten. Often, designers scale-down all text in the navigation for mobile display, this is useful but has limits. Instead of scaling you may want to re-structure your navigation for mobile display. Rather than css-hacking your menu all to ribbons try this:

We will be using a twentyeleven-theme for this tutorial.


In your themes functions.php-file add the following (down at the bottom will be fine)

register_nav_menus( array(
    'primary' => __( 'Primary Navigation', 'twentyeleven' ),
     'mobile' => __( 'Mobile Navigation', 'twentyeleven' ),
     'footer' => __( 'Footer Navigation', 'twentyeleven' ),
) );

Alright, now… in your header.php-file… replace ::

<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>

      </nav><!-- #access -->  

With something a little more like… this ::

<div id="primary_navigation"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?></div>

<div id="mobile_navigation"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'mobile' ) ); ?></div>

      </nav><!-- #access -->  

Alright cats… here’s the fun-part… css-3 media-queries time…

In your style.css-file replace this ::

@media (max-width: 650px) {

With this ::

#primary_navigation{width:auto;height:auto;}
#mobile_navigation{width:auto;height:auto;display:none;}
@media (max-width: 650px) {
/* Reduce font-sizes for better readability on smaller devices and toggle our primary_nav to mobile_nav */
#primary_navigation{display:none;}
#mobile_navigation{display:block;}

And make sure and review css3-media queries (They put style-sheets in our style-sheets… So we can script-styles while we script-styles)


WordPress Membership Site

You may want to have separate menus for users who are logged-in and those who are logged-out. To do that you can use the following ::

Add this to functions.php

register_nav_menus( array(
    'primary' => __( 'Primary Nav', 'twentyeleven' ),
    'mobile' => __( 'Mobile Nav', 'twentyeleven' ), 
    'member_primary' => __( 'Members Primary Nav', 'twentyeleven' ),
    'member_mobile' => __( 'Members Mobile Nav', 'twentyeleven' ),
    'footer' => __( 'Footer Navigation', 'twentyeleven' ),
) );

In header.php replace this:

<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
  <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #access -->

With this:

<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
  <?php if ( is_user_logged_in() ) { ?>
    <div id="primary_navigation"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'member_primary' ) ); ?></div>
    <div id="mobile_navigation"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'member_mobile' ) ); ?></div>
  <?php    } else { ?>
    <div id="primary_navigation"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ) ?></div>
    <div id="mobile_navigation"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'mobile' ) ); ?></div>
<?php }; ?>
</nav><!-- #access -->

Don’t forget to add the break-point in style.css ::

Replace this ::
@media (max-width: 650px) {

With this ::

#primary_navigation{width:auto;height:auto;}
#mobile_navigation{width:auto;height:auto;display:none;}
@media (max-width: 650px) {
/* Reduce font-sizes for better readability on smaller devices and toggle our primary_nav to mobile_nav */
#primary_navigation{display:none;}
#mobile_navigation{display:block;}


There you have it. We now have to separate menus in wp-admin and can count on one to replace the other when the view-port is less than 650 pixels in width. Enjoy!