April 28th, 2016 by admin
[php] /** * Recent_Posts widget w/ category exclude class * This allows specific Category IDs to be removed from the Sidebar Recent Posts list * */ class WP_Widget_Recent_Posts_Exclude extends WP_Widget { function __construct() { $widget_ops = array(‘classname’ => ‘widget_recent_entries’, ‘description’ => __( "The most recent posts on your site") ); parent::__construct(‘recent-posts’, __(‘Recent Posts with Exclude’), […]
April 15th, 2016 by admin
1.First Step add this code in “function.php” [php] function pagination($pages = ”, $range = 4) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo " <div class="\"pagination\"">Page ".$paged." of ".$pages.""; if($paged […]
September 3rd, 2015 by admin
Example 1: No Title Bar YouTube branding shows in the player, on hover only, after video has started. No related videos at end [php]<iframe src="<a href="https://www.youtube.com/embed/WxDhtbURixE">https://www.youtube.com/embed/WxDhtbURixE</a>?hd=1&rel=0&autohide=1&showinfo=0" width="100%" height="350" frameborder="0"</iframe>[/php] Example 2: Title Bar visible YouTube branding shows in the player, on hover only, after video has started. No related videos at end [php]<iframe src="<a […]
July 7th, 2015 by admin
You can display first and second post differently than other posts with this simple css code [php].article:nth-of-type(1), .article:nth-of-type(2) { //code }[/php]
April 24th, 2015 by admin
You can put this in your theme’s functions.php: function custom_woocommerce_is_purchasable( $purchasable, $product ){ if( $product->get_price() == 0 || $product->get_price() == ”) $purchasable = true; return $purchasable; } add_filter( ‘woocommerce_is_purchasable’, ‘custom_woocommerce_is_purchasable’, 10, 2 );