7-Views - Page 5 of 8 - Developers Blog
Show Admin bar in wordpress only if user is logged in
You can determine if the user is logged in then only the admin bar is shown. For example, the following lines will only display the admin bar for logged in users.
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’;