Extend walker – navigation, adding data attribute to a tag

This is how I added data attribute to my menu It simply adds data-title=”menu-title” to each link on my main nav, change it to adapt to your need. You don’t actually need to use Nav Walker to add this add_filter( ‘nav_menu_link_attributes’, ‘cfw_add_data_atts_to_nav’, 10, 4 ); function cfw_add_data_atts_to_nav( $atts, $item, $args ) { $atts[‘data-title’] = $item->post_title; … Read more

Installing WordPress Theme Unit Data

If your using a MAC you will need to set file permissions to allow for updating and downloading plugins/themes without the use of setting up the FTP and manually adding them into the htdocs folder. The link below will walk you through this to set it up to work. http://ghosthorses.co.uk/production-diary/auto-update-wordpress-plugins-on-localhost-xampp-on-mac-osx/ http://wpforce.com/auto-update-wordpress-xampp-osx/ This video will show … Read more