Difference between revisions of "WooThemes Canvas Customization Tips"

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
* Remove Business Slider's Previous and Next buttons
* Remove the Business Slider's Prev and Next buttons
 
 
http://support.woothemes.com/entries/22763687-Hiding-next-previous-Business-template-slider-arrow
 
http://support.woothemes.com/entries/22763687-Hiding-next-previous-Business-template-slider-arrow
  
Line 8: Line 7:
 
display: none;
 
display: none;
 
}
 
}
 +
</pre>
 +
 +
* Add space between list
 +
http://support.woothemes.com/entries/22757102-Adding-space-to-a-list
 +
<pre>
 +
.entry li {
 +
    padding: 10px 0;
 +
}
 +
</pre>
 +
 +
* Setup theme child
 +
http://woothemes.zendesk.com/entries/22505632-How-to-setup-and-use-a-child-theme
  
 +
* Add more Google Fonts
 +
http://support.woothemes.com/entries/22521683-Add-more-Google-Fonts-to-options
 
<pre>
 
<pre>
 +
 +
// add the function to the init hook
 +
add_action( 'init', 'woo_add_googlefonts', 20 );
 +
 +
// add a font to the $google_fonts variable
 +
function woo_add_googlefonts () {
 +
    global $google_fonts;
 +
    $google_fonts[] = array( 'name' => 'Lustria', 'variant' => ':r,b,i,bi');
 +
}
 +
 +
</pre>

Latest revision as of 16:01, 30 March 2013

  • Remove Business Slider's Previous and Next buttons

http://support.woothemes.com/entries/22763687-Hiding-next-previous-Business-template-slider-arrow

/* custom.css */
.business #loopedSlider a.flex-prev, .business #loopedSlider a.flex-next {
display: none;
}
  • Add space between list

http://support.woothemes.com/entries/22757102-Adding-space-to-a-list

.entry li {
    padding: 10px 0;
}
  • Setup theme child

http://woothemes.zendesk.com/entries/22505632-How-to-setup-and-use-a-child-theme

  • Add more Google Fonts

http://support.woothemes.com/entries/22521683-Add-more-Google-Fonts-to-options


// add the function to the init hook
add_action( 'init', 'woo_add_googlefonts', 20 );
 
// add a font to the $google_fonts variable
function woo_add_googlefonts () {
    global $google_fonts;
    $google_fonts[] = array( 'name' => 'Lustria', 'variant' => ':r,b,i,bi');
}