Promote your Service and Product online Contact us

+91 87 44 999667; +91 99 11 883996 info@3pixls.com, sales@3pixls.com

Exclude Categories from Recent Posts Widget

April 28th, 2016 by

[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’), […]

WordPress pagination

April 15th, 2016 by

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-&gt;max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo " <div class="\&quot;pagination\&quot;">Page ".$paged." of ".$pages.""; if($paged […]

Remove Video Title and Ratings Info In YouTube’s Embedded Player

September 3rd, 2015 by

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&amp;rel=0&amp;autohide=1&amp;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 […]

How to Display First and Second Post Differently than other posts

July 7th, 2015 by

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]

Display ‘Add to Cart’ button on product without price

April 24th, 2015 by

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 );


Warning: Undefined variable $additional_loop in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34

Warning: Attempt to read property "max_num_pages" on null in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34