CannaBiz WordPress marijuana theme

We’re back with another release for our flagship WordPress marijuana theme, CannaBiz, and it’s full of great enhancements!

New style options

In CannaBiz version 1.8 we’ve added in CSS to further customize the look of WooCommerce.

CannaBiz WooCommerce StylesMost notably is the style updates on the product pages, where the weight amount, add to cart button, Category, Tags and SKU number gets displayed.

Previously, the size and style would get inherited from the main theme style, but this release has now downsized the fonts and changed up the colors/weight to better match the theme.

We’ve also added in CSS to fix an issue with the logo, where it would stretch outside of the screen on mobile browsers. It will now auto-adjust it’s width based on the browser window, including mobile sizes.

Beyond the CSS changes, this release adds in a new style option in the Customizer to let you make your header transparent.

You can see an example of this in action by viewing the Treehouse Cannabis website, who made use of our Setup Service.

If you’d like to utilize the transparent header, you can find that option in your WordPress dashboard under Appearance -> Customize -> Header.

New action hooks and filter for developers

With version 1.8, we’re introducing a new filter in the footer copyright area.

This was added in for developers who would like to add their own link to the footer area, without using the built in Copyright input in the Customizer.

add_filter( "cannabiz_footer_designedby","cannabiz_footer" );
function cannabiz_footer() {
    $cannabiz_footer_designedby = " Your text here";
    return $cannabiz_footer_designedby;
}

By adding this filter code to your child theme’s functions.php file, you can add text (example: a link to your website) that gets displayed at the end of the copyright message in the footer of your client’s website.

We’re also working to make sure you can tap into various areas throughout CannaBiz and add your own content in, and for this we’ve added in 4 new action hooks.

  • cannabiz_logo_before
  • cannabiz_logo_after
  • cannabiz_navigation_before
  • cannabiz_navigation_after

With these, you’re able to add in your own code to the areas that the action hooks are run.

For instance, if you’d like to add a search box into the header, displayed under the navigation, you can add in the following code.

function acme_nav_search() {
    /* Your codes here */
}
add_action( 'cannabiz_navigation_after', 'acme_nav_search' );

We’re working on additional action hooks, so developers will be able to add in custom code throughout the entire site, not just in these header areas.

Get CannaBiz instantly!

If you’ve already purchased CannaBiz, check your email for the updated files.

If you haven’t purchased your copy of CannaBiz yet, what are you waiting for? Head over to the CannaBiz product page and grab your copy now.

Changelog

  • Added option for transparent header (Header section of the Customizer)
  • Added CSS for additional WooCommerce style customization
  • Added 4 action hooks for developers to easily add in extra content throughout the theme (see: documentation)
  • Added filter for developers to add their link into copyright footer ($cannabiz_footer_designedby)
  • Fixed CSS for logo size on mobile browsers so it applies a max-width and doesn’t go off screen
  • Removed link wrapper from around featured images on single menu item pages
  • Updated function name for cannabiz_titlelarge -> cannabiz_title_large

One thought on “CannaBiz version 1.8 New style options, filter and action hooks have been added in for this release

Leave a Reply

Your email address will not be published. Required fields are marked *