Swap Post Title and Image Position on Archive Page in Genesis
You can swap the order of the post title and thumbnail featured image of a post on an archive page by rearranging the genesis_do_post_image from its default position in the entry content into the entry header, this is done by removing and adding the function in a higher location. In your functions.php add in function themeprefix_swap_title_image()…
Read MoreMoving the Genesis Category/Archive Headline and Intro Text
In Genesis you can set an Category/Archive headline and intro text value inside the man Category edit area; WP Dasboard > Posts > Categories The markup gets added in an .archive-description inside the main .content This is fine in almost every instance, but if you apply a masonry style layout the title and intro are…
Read MorePut Google Experiment Code Higher in the Header in WordPress
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 MoreStop video playing when Bootstrap modal is closed
If you add a video to a Bootstrap Modal and either dismiss or close the modal whilst the video is playing the video will keep on playing.You can adjust this behaviour by adding in some Bootstrap javascript/jQuery that acts to stop the video if either the modal window is either clicked to close or the…
Read MoreRemove 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 MoreMigrating 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 MoreAdd 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 MoreGenesis 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 MoreRemove all Inner HTML Mark Up Content on Genesis Home Page
To remove the 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…
Read MoreHow to check for CSS errors in your stylesheet with CSS LINT
You’ve worked long and hard and slaved over your masterpiece but the CSS styles you wrote are just not being applied to your HTML, how can you check that the CSS syntax and formatting is correct? CSS Lint can do this for you. Got to the CSS LINT site and paste in your CSS. You…
Read More