Author: Alan

  • Conditionally display Genesis Social Share, e.g. not on a specific category

    The Genesis Social Share plugin is one of the must have plugins for Genesis sites. See https://wordpress.org/plugins/genesis-simple-share/ I wanted to display these icons (just like the ones on this post) except on posts in a specific category.  I had to read the plugin code to work this out. Fortunately the code is an example of beautifully…

  • Linux command to create a tar gzip archive

    To create a tar compressed archive, i.e. tar gzip  from the linux commend line tar -cvzf myarchive.tar.gz directory  

  • Rightmove blm to XML convertor documentation

    Available to buy now https://fullworks.net/products/rightmove-blm-to-xml-converter/ What does plugin this do? This plugin takes a Rightmove formatted .blm file and associated images files that you place on your server and converts it into a .xml file for onward processing (normally via the plugin WP All Import Pro ). The process runs automatically under wp-cron (see https://developer.wordpress.org/plugins/cron/ ) at…

  • Genesis WooCommerce

    Well Genesis is the best theme framework & WooCommerce the best ecommerce platform but out of the box they don’t play nicely. By combining some bits of code that are around, the bulk of which came from AlphaBlossom / Tony Eppright  here https://gist.github.com/AlphaBlossom/c11192a0132d494c3448#file-woocommerce-genesis-theme-support-php, I put togther with a Studio Press theme to make the following shop: https://fullworks.net/…

  • Conditionally remove header widget from Genesis

    Genesis comes with a header widget area built in. Occasionally you may want to remove this for specific pages. The following code snippet in functions.php will do the trick add_action( ‘genesis_meta’, ‘my_remove_hr’); function my_remove_hr() { if ( is_page( ‘privacy-cookies’ ) ) { unregister_sidebar( ‘header-right’ ); } } The if statement will need to be adjusted…

  • Allow html in user description

    The WordPress user bio only allows a very restricted set html. Occasionally, it is desirable to be able to format the WordPress user bio with additional html.  Out of the box that is not possible. However to allow additional html in the WordPress user bio, like I have with some <p> and <br> to break…