Forum Replies Created
-
AuthorPosts
-
melriksdesign
MemberThanks. I'll check out the references.
As to the why, I need to use a framework with more columns. Genesis only has six column widths (thirds, fourths, sixths), but my clients' site needs upwards of 16 columns and all the columns are fixed width (pixels). To make the other framework operational, I need a special class of "container" added to the structural divs. Without the container class, the framework divs don't work.
melriksdesign
MemberUnfortunately, this affected every link on the page.
I ended up removing the child theme nav and replacing it with WorPress' navigation which has a built in method for adding html before and after the link. Bummed that this wasn't easy with Genesis.
melriksdesign
MemberFor anyone looking to add spans to your nav links, this tutorial will get you part of the way there.
http://www.wpstuffs.com/add-menu-description-in-genesis/
With a little editing, you'll get spans inside your anchors. Change the class to what you need it to be. Replace the nbsp with text (if desired).
function be_add_span( $item_output, $item ) { return preg_replace( '/(<a.*?>[^<]*?)</', '$1' . '<span class="my-image"> </span><', $item_output); } add_filter( 'walker_nav_menu_start_el', 'be_add_span', 10, 2 ); -
AuthorPosts