7-Views - Page 5 of 8 - Developers Blog
Create Custom Pagination Function in WordPress theme
Sometime you want your custom style to be implemented in wordpress pagination for this you want to have your own pagination func For that add this fun to your theme functions.php file After adding the function move to the page where you have the post loop and the code above the loop $paged = ( […]
Adding ‘active’ class to open Bootstrap accordion item
Several times we want to have our own custom class on open tab of our bootstrap acoordion so that you can apply your custom css to it. A basic jQuery solution to add an ‘active’ class to the accordion heading of the currently active accordion item.
Force your site to load securely with an .htaccess file in apache
If you have added an SSL certificate to your domain, you can force all visits to your site to use HTTPS to ensure your traffic is secure. This page lists examples on how to do this depending on how your site is hosted. RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
The directive [(ngModel)]= not working anymore in rc5
The problem arises due to forms module not added by default. So to add this please add the following line in the app.module.ts file import { FormsModule } from ‘@angular/forms’;
count(): Parameter must be an array or an object that implements Countable
count() throws a warning since PHP 7.2 in case a scalar or non-countable object is passed. We rely on this behavior in many places so code needs to be adjusted. More info https://wiki.php.net/rfc/counting_non_countables http://php.net/manual/en/function.count.php Here is my solution for this. function count_array($aArr) { if (is_array($aArr)) { return count($aArr); } else { return 0; } } […]