Skip to content

Instantly share code, notes, and snippets.

View cidadesonho's full-sized avatar

Cidade Sonho cidadesonho

View GitHub Profile
@cidadesonho
cidadesonho / functions.php
Created July 22, 2014 13:59
Functions for WP Bootstrap Theme
<?php
// Thumbnail Support
add_theme_support( 'post-thumbnails' );
// Custom Nav Bootsrap
require_once('wp_bootstrap_navwalker.php');
// Header Menu
@cidadesonho
cidadesonho / wp_bootstrap_navwalker.php
Created July 22, 2014 13:56
Navwalker for WP Bootstrap Theme
<?php
/**
* Class Name: wp_bootstrap_navwalker
* GitHub URI: https://github.com/twittem/wp-bootstrap-navwalker
* Description: A custom WordPress nav walker class to implement the Bootstrap 3 navigation style in a custom theme using the WordPress built in menu manager.
* Version: 2.0.4
* Author: Edward McIntyre - @twittem
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@cidadesonho
cidadesonho / header.php
Created July 22, 2014 12:39
Header PHP for WP Bootstrap Theme
<html lang="pt-br">
<head>
<!-- meta -->
<meta charset="utf-8">
<title><?php bloginfo('name'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php if ( is_single() ) {
single_post_title('', true);
} else {
bloginfo('name'); echo " - "; bloginfo('description');
@cidadesonho
cidadesonho / footer.php
Created July 21, 2014 22:02
Footer PHP for WP Bootstrap Theme
@cidadesonho
cidadesonho / index.php
Last active August 29, 2015 14:04
Index PHP for WP Bootstrap Theme
<?php get_header(); ?>
<div class="jumbotron">
<div class="container">
<h1><?php bloginfo( 'description' ); ?></h1>
<p><?php bloginfo( 'admin_email' ); ?></p>
</div>
</div>
<div class="container">
@cidadesonho
cidadesonho / style.css
Created July 21, 2014 21:38
Style CSS for WP Bootstrap Theme
/*
Theme Name: WP Bootstrap
Theme URI: http://teamtreehouse.com/wordpress-bootstrap-theme-tutorial
Description: WordPress & Bootstrap Theme
Author URI: http://cidadesonho.com/
Version: 1.0
Tags: responsive, white, bootstrap
License: Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
License URI: http://creativecommons.org/licenses/by-sa/3.0/