shortcodes

Override parent shortcodes in your WordPress Child Theme

Overriding shortcode defined in WordPress parent theme is pretty easy.

Just use a after_theme_setup section in functions.php of the child theme;

example:

add_action( 'after_setup_theme', 'my_child_theme_setup' );

function my_child_theme_setup() {
   remove_shortcode( 'your_shortcode' );
   add_shortcode( 'your_shortcode', 'my_shortcode_function' );
}

function my_shortcode_function( $atts, $content = null ) {
    extract(shortcode_atts(array(
    ), $atts));
    $out = 'content">'.do_shortcode($content).'</div>';
    return $out;
}

2014 in review. What J talked about in 2014.

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 13,000 times in 2014. If it were a concert at Sydney Opera House, it would take about 5 sold-out performances for that many people to see it.

Click here to see the complete report.

homepage-image-bootloader

Unlocking HTC Sensation Z710e Bootloader for Android

Take the following steps to Unlock your Device’s Bootloader.

  1. Step 1

     After powering down, press Volume Down and while pressing Volume Down, press Power holding both buttons to start the device into Bootloader mode. If you have difficulty, power up normally, go to Settings->Battery and deselect Fast boot. Power down and try again.


  2. Step 2

    Use the Volume buttons to select up or down. Highlight Fastboot and press the Power button.


  3. Step 3

    Connect the device to the computer via a usb cable

  4. Step 4

    Download the following fastboot binary for your OS using the following links:

    Platform Download Size (bytes) Checksum
    Fastboot binary, Linux
    (Unzip the file before executing)
    fastboot 61887 ffd3b02cdf9aa7609462e3957663d238
    Fastboot binary, OS X
    (Unzip the file before executing)
    fastboot-mac 59071 0b3e2a8c5cfeb7c23b362483b93f7dd6
    Fastboot binary, Windows
    (Unzip the file before executing)
    fastboot-win 83753 a90c25141e306b3062dc8e47e14a1005
    1. Step 5

      Open a command Prompt: Windows: Start->”cmd” Mac: Applications->Utilities->Terminal.app Linux: Terminal

      Type in Command Prompt: fastboot oem get_identifier_token.

    2. Step 6

      You will see a long block of text. Copy and paste this text into the the token field below (in the Windows command prompt: Right Click > Mark > highlight the block of text > Right click to copy. Mac users can use cmd-option to mark and select text.).

      You will see one of the following two screens:

      Ref. 6a

      Ref. 6b

      When copying the token, start with this line:

      <<<< Identifier Token Start >>>> 

      And end with this line:

      <<<<< Identifier Token End >>>>> 

      (Note: Only copy the highlighted sections above. Do not copy the INFO or (bootloader) prefix)

    3. Step 7

      Paste this string of text into the token field and hit Submit in order to receive your unlock code binary file. You will receive this information in your email.

      Example:

Next you need to go to http://www.htcdev.com/bootloader/unlock-instructions/page-2 and enter you identification token there and click sumbit. HTC Dev will take you further from there.

Were you able to unlock your bootloader? Share with me your experience in comments below.