To get Google Experiment Code working you need to get it higher in the WordPress head above the regular Google GA code. If you have used a plugin to insert the Google GA code there may be no control on whereabouts the code can be placed or adjusted in priority, for example Yoast Google Analytics plugin has no …
Read More
Stop video playing when Bootstrap modal is closed
Remove Post Meta from Category Archive Pages in a Genesis Theme in WordPress
Archive pages in a Genesis theme by default, include the post info which displays the post author, post date and comments info and the post meta which displays the category and tag values. You may want to have these values removed or edited for your Archive pages but leave them intact for regular posts. This is possible by adding an …
Read More
Migrating WordPress MultiSite to a New URL
Migrating WordPress MultiSite to a New URL can be done with a combo of 2 excellent free plugins; WP Migrate DB and BackWPup the former deals with the database and the latter deals with the files. The key thing when updating the WordPress database to reflect a new hosting URL is making sure any data serialization stays intact, …
Read More
Add a Custom Header Image in Genesis Sample Theme
The Genesis Sample theme does not have a custom Header option in the Appearance sub-menu in WordPress Dashboard unlike all the other Genesis themes. Custom Headers are a native WordPress function that can be added to any theme including the Sample theme. This option can be easily added via a code snippet into your functions.php file. //* …
Read More
Using ScrollNav to control long documents in WordPress
Controlling long document display on a web page can be greatly enhanced with a Javascript solution like ScrollNav which collates all of a defined HTML element in a document like a heading tag such as a h2, puts all of the elements set up in a navigation markup done for you and keeps the links to the relevant …
Read More
Genesis Menu Item with Float Right, Drops in Chrome
Genesis has a nifty CSS class named .right which when applied to a Menu Item will float that particular item to the right and keep the other menu items to the left. You need to apply the menu items in the correct way for it to work in Chrome. Applying the Float to Menu Items In …
Read More
Remove all Inner HTML Mark Up Content on Genesis Home Page
To remove inner HTML mark up content from a customised Front Page in Genesis, you can use a conditional statement to remove the ‘loop’ just on the front page like so: //Remove Loop from Home Page function thmeprefix_remove_homepage_content() { if ( is_front_page() ) { remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); } } add_action( ‘genesis_before’,’thmeprefix_remove_homepage_content’ ); The header …
Read More