How to create child theme with Tesseract theme?

Follow the instructions as listed at http://codex.wordpress.org/Child_Themes Specifically, in your wp-content/themes folder: create another directory named Tesseract-child in Tesseract-child create a style.css file in your style.css file include the following header style.css contents: /* Theme Name: Tesseract Child Theme URI: http://example.com/ Description: Tesseract Child Child Theme Author: John Doe Author URI: http://example.com Template: Tesseract Version: … Read more

What does “Trying to get property of non object in..” mean?

The root problem here is assumptions. For example lets say we have an array here: $test = [ ‘foo’ => ‘bar’ ]; If we run echo $test[‘foo’]; we should see bar, but what if we ran echo $test[‘bananas’];? There is no bananas entry in that array, so PHP will notice this, throw a warning/notice similar … Read more

Remove action within a class in a parent theme from the child theme

To remove an action or filter, the function/method name and the priority must match with the previously added action/filter. The action you want to remove is added with a priority of 10 (default value) while you are trying to remove the action with priority of 99. Try this: remove_action( ‘woocommerce_product_options_inventory_product_data’, array( ‘Electro_WC_Helper’, ‘product_options_inventory_product_data’ ) ); … Read more

why does bones theme call the_excerpt function with parameters?

This is a bug in the theme. The real function does indeed not use the parameter: /** * Display the post excerpt. * * @since 0.71 * @uses apply_filters() Calls ‘the_excerpt’ hook on post excerpt. */ function the_excerpt() { echo apply_filters(‘the_excerpt’, get_the_excerpt()); } PHP will just ignore it, but the unnecessary gettext call should be … Read more

WordPress themes under GPL license

The GPL absolutely does not preclude selling code, for cost. In fact, the terms of the license explicitly allow for selling of code. The GPL merely allows the end user, whether he received the GPL-licensed code for free or for cost, to use the code however he likes, to redistribute the code, to modify the … Read more

Updating custom theme that is built from scratch

Right now I suggest simply uploading it via FTP. If you’re not too familiar, many hosts offer “WebFTP” which is usually easier to use. For the future you might consider GitHub Updater, check out their wiki. This basically allows you to use a new setting in style.css GitHub Plugin URI: foo/bar Once configured, you can … Read more

Theme Advanced Styles in Visual Editor and Paragraphs

If you always want <br/> instead of <p> for newlines you can change the TinyMCE configuration: forced_root_block: false, force_br_newlines: true, force_p_newlines : false, I think you cannot do this based on the context (use <br/> when in class=”box_note”, <p> otherwise), but it is an interesting question for the TinyMCE forum. Shift+Enter is indeed the standard … Read more