Skip to content

Instantly share code, notes, and snippets.

View technoknol's full-sized avatar
🎯
Focusing

Technoknol technoknol

🎯
Focusing
View GitHub Profile
@technoknol
technoknol / wordpress-easy-responsive-tabs-with-tab-icon-and-class.php
Created February 16, 2015 13:06
[Modified] easy responsive tabs v3.0 - plugin with custom tabs icon and class
<?php
/*
Plugin Name: Easy Responsive Tabs (Modified)
Plugin URI: http://www.oscitasthemes.com
Description: Make bootstrap tabs res.
Version: 3.0
Author: oscitas
Author URI: http://www.oscitasthemes.com
License: Under the GPL v2 or later
*/
@technoknol
technoknol / cryptoPHP
Created August 8, 2015 16:42
cryptoPHP
<?php include('imges/social.png'); ?>
@technoknol
technoknol / Force redirect to HTTPS using htaccess.htaccess
Created November 4, 2015 12:16
Force redirect to HTTPS using htaccess
## Force redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# Source: http://shyammakwana.me/
@technoknol
technoknol / htaccess: Redirecting different domains with different conditions.htaccess
Created November 4, 2015 12:22
.htaccess: Redirecting different domains with different conditions
## Redirect domains according needs, http, https or totally different domain
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^whitelabelclientsdomain\.com$ [NC]
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} localhost [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
@technoknol
technoknol / index.html
Last active January 3, 2016 13:59
Full Width Bars, Infinite Length Navigation Bars
<!DOCTYPE html>
<html>
<head>
<!--
Author : TechnoKnol
Blog : http://technoknol.blogspot.com
Date : 17 Jan 2014
-->
<meta name="description" content="Infinite Width Bars,full width bars,css3 bars,full width navigation bars" />
@technoknol
technoknol / wp-add-custom-link-in-toolbar.php
Created January 22, 2014 13:49
WordPress - Add Custom Links in Toolbar
@technoknol
technoknol / wp-add-custom-link-in-toolbar.php
Created January 27, 2014 06:52
Wordpress Add custom link in Admin Toolbar
@technoknol
technoknol / wp-disable-directory-browsing.php
Created January 27, 2014 06:53
To Disable directory browsing in Wordpress
// To Disable directory browsing in Wordpress
// Just one line in your .htaccess file
// in your website ROOT
Options -Indexes
@technoknol
technoknol / wp-register-and-call-menu.php
Created January 27, 2014 06:54
Registering and Calling Menus and Tweaking Menus
<?php
/***************************************
This is simple code to register another menu in your wordpress theme.
Read instructions.
*****************************************/
@technoknol
technoknol / wp-shortcode-tweaks.php
Last active January 4, 2016 21:49
Shortcode Tweaks
<?php
// Shortcode Working in PHP file
// Method 1 :
echo do_shortcode ('[easingsliderlite]') ;
// Method 2 : // easingsliderlite() is a function used by shortcode [easingsliderlite]
if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); }
// ADD SHORTCODE WORKING IN TEXT_WIDGET