Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Arman rajucs

🏠
Working from home
Block or report user

Report or block rajucs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Woocommerce product page Add to Cart button hover
.woocommerce ul.products li.product {
overflow: hidden;
}
.woocommerce ul.products li.product:hover .button {
-webkit-transform: translatey(0) !important;
transform: translatey(0) !important;
}
.woocommerce ul.products li.product .button {
View Did you mean to use "continue 2 - this warning is for php version confilict
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in G:\xampp\htdocs\printingrags\wp-content\plugins\revslider\includes\operations.class.php on line 2854
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in G:\xampp\htdocs\printingrags\wp-content\plugins\revslider\includes\operations.class.php on line 2858
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in G:\xampp\htdocs\printingrags\wp-content\plugins\revslider\includes\output.class.php on line 3708
Above warning is for php version conflict check your previous php version and your localhost php version.
View wordpress fronpage or homepage css not loading
I have woodmart theme installed in my wordpress suddently in front page or home page css not loading. I got angry why its happeingin.
THen i tried to fix the problem and finaly found the problem.
THe problem is for Cache plugin installed in my wordpress site.
There is lot of cache plugin the popular plugin is -
1. w3 total cache
2. wp super chache
I installed w3 total cache and activated this. After activate suddently css not working for only frontpage. Then i have to deactivate this pluigin again.
View php date and time accurate
$difference = strtotime($list_vids['ExpirationDate']) - strtotime($now);
$hours = $difference / 3600; // 3600 seconds in an hour
$minutes = ($hours - floor($hours)) * 60;
$final_hours = round($hours,0);
$final_minutes = round($minutes);
View To check regex expression
1. https://www.regextester.com/96826
2. https://regexr.com/
@rajucs
rajucs / To check Bangladeshi Mobile number validation with 11 to 13 digit number with preg_match
Created Sep 28, 2019
To check Bangladeshi Mobile number validation with 11 to 13 digit number with preg_match
View Sorting Out of Stock WooCommerce Products code
/**
* Sorting out of stock WooCommerce products - Order product collections by stock status, in-stock products first.
*/
class iWC_Orderby_Stock_Status
{
public function __construct()
{
// Check if WooCommerce is active
if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
add_filter('posts_clauses', array($this, 'order_by_stock_status'), 2000);
View Fixed Category in woodmart custom c ss
.home .header-categories-nav .categories-menu-dropdown
{
visibility: visible;
opacity: 1;
transform: none;
pointer-events: visible;
}
View Displaying Share button snippet for wordpress
<div class="entry-meta">
<div class="share-icon">
<h3>Share this page</h3>
<ul>
<li><a class="facebook" target="_blank" href="#"><i class="fa fa-facebook"></i></a></li>
<li><a class="twitter" target="_blank" href="#"><i class="fa fa-twitter"></i></a></li>
<li><a class="pinterest" target="_blank" href="#"><i class="fa fa-pinterest"></i></a></li>
<li><a class="google-plus" target="_blank" href="#"><i class="fa fa-google-plus"></i></a></li>
<li><a class="linkedin" target="_blank" href="#"><i class="fa fa-linkedin"></i></a></li>
</ul>
View Follow us icon code manually for wordpress widget
<ul class="social-link">
<li>
<a href=""><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-pinterest"></i></a>
You can’t perform that action at this time.