View Build_an_Responsive_Email_Template_From_Scratch.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>*|MC:SUBJECT|*</title> | |
<style type="text/css"> | |
/* /\/\/\/\/\/\/\/\/ CLIENT-SPECIFIC STYLES /\/\/\/\/\/\/\/\/ */ | |
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */ | |
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */ | |
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */ |
View JSON-LD
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
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "Event", | |
"name": "Jan Lieberman Concert Series: Journey in Jazz", | |
"startDate": "2017-04-24T19:30-08:00", | |
"location": { | |
"@type": "Place", | |
"name": "Santa Clara City Library, Central Park Library", | |
"address": { |
View upload logo wordpress
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
function alts_customize_register( $wp_customize ) { | |
$wp_customize->add_setting( 'alts_logo' ); // Add setting for logo uploader | |
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'alts_logo', array( | |
'label' => __( 'Upload Logo (replaces text)', 'alts' ), | |
'section' => 'title_tagline', | |
'settings' => 'alts_logo', | |
) ) ); | |
} | |
add_action( 'customize_register', 'alts_customize_register' ); |
View How to Create a bootstrap WordPress Theme
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
#content | |
{ | |
color:red; | |
} |
View How to Create a bootstrap WordPress Theme
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 get_header(); ?> | |
<div class="row"> | |
<div id="content"> | |
<h1>Main Area - body</h1> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<h1><?php the_title(); ?></h1> | |
<h5>Posted on <?php the_time('F jS, Y') ?></h5> | |
<p><?php the_content(__('(more...)')); ?></p> | |
<hr> <?php endwhile; else: ?> | |
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?> |
View How to Create a bootstrap WordPress Theme
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"> | |
<h2 ><?php _e('Categories'); ?></h2> | |
<ul > | |
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?> | |
</ul> | |
<h2 ><?php _e('Archives'); ?></h2> | |
<ul > | |
<?php wp_get_archives('type=monthly'); ?> | |
</ul> | |
</div> |
View How to Create a bootstrap WordPress Theme
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="container"> | |
<div class="row"> | |
<h2>Footer</h2> | |
</div> | |
</div> | |
<?php // wp_footer(); //footer hook! ?> | |
<!-- Latest compiled and minified JavaScript --> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> | |
</body> | |
</html> |
View add github code in wordpress post
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
/** | |
* Embed Gists with a URL | |
* | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
* |
View How to Create a bootstrap WordPress Theme
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
<html> | |
<head> | |
<title>Theme Name</title> | |
<link rel="stylesheet" href="<?php bloginfo('style.css'); ?>"> | |
<!-- Bootsatrp minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> |