This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Portfolio for SimpleTechLife | |
Theme URI: http://wptreehouse.com/portfolio-project/ | |
Description: A custom WordPress portoflio site for SimpleTechLife | |
Author: Praveen | |
Author URI: http://2hands1world.blogspot.com | |
Version: 1.0 | |
Tags: clean, light, responsive, two-column, custom-post-types, custom-fields, portfolio | |
License: GNU General Public License v2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName yourname.dev | |
DocumentRoot path to custom directory/ | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory path to custom directory/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('register_form','show_first_name' ); | |
add_action('register_post','check_fields',10,3 ); | |
add_action('user_register','register_extra_fields' ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exclude these files from the git repo | |
wp-content/backup/* | |
wp-content/cache/* | |
wp-content/upgrade/* | |
wp-content/uploads/* | |
sitemap.* | |
wp-config.php | |
# Hidden system files | |
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName praveen.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Enable AllowOverRide in Apache.conf [Ubuntu 13.10] , we have also enabled viewing Indexes and following Symbolic links | |
<directory /Path to your folder> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</directory> | |
2.Create a .htaccess in the "/Path to your folder" with the below rewrite rule : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wp_nav_menu_items','add_search_box', 10, 2); | |
function add_search_box($items, $args) { | |
ob_start(); | |
get_search_form(); | |
$searchform = ob_get_contents(); | |
ob_end_clean(); | |
if( $args->theme_location == ‘primary-menu’ ) | |
$items .= '<li>' . $searchform . '</li>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Library Plugin | |
Author: Praveen selvasekaran | |
Author URI: hhttp://simpeltechlife.in | |
Description: The theme to to all themes | |
Version: 3.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-12"> | |
<h1>Situations of Concern</h1> | |
<div id="myCarousel" class="carousel slide"> | |
<!-- Carousel items --> | |
<div class="carousel-inner"> | |
<div class="item active"> | |
<div class="row"> | |
<div class="col-sm-3"><a href="#x"><img src="http://placehold.it/500x500" alt="Image" class="img-responsive"></a></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Functions.php | |
<?php | |
if ( function_exists('register_sidebar') ) { | |
register_sidebar(array( | |
'name' => 'sidebar', | |
'id' => 'sidebar', | |
'description' => 'The default Sidebar', | |
'before_widget' => '<div class="sidebar-box">', | |
'after_widget' => '</div>', |
OlderNewer