Hello! I'm a front-end developer in Baltimore, Maryland, who enjoys solving problems while writing smarter code + teaching others to do the same.
##SKILLS |Languages | Frameworks + Libraries |Tools |
Hello! I'm a front-end developer in Baltimore, Maryland, who enjoys solving problems while writing smarter code + teaching others to do the same.
##SKILLS |Languages | Frameworks + Libraries |Tools |
Highcharts.setOptions({ | |
lang: { | |
thousandsSep: ',' | |
} | |
}); |
<h1>CSS Basic Elements</h1> | |
<p>The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p> | |
<hr /> | |
<h1>Line length</h1> | |
<p>abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz</p> | |
<h1>Headings</h1> | |
<h2>Heading 2</h2> | |
<p>And then some paragraph text to follow. The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p> |
<iframe src="" frameborder="0" height="" width="100%"></iframe> |
<div style="display:none!;font-size: 0px!important;max-height:0px!important;overflow:hidden!important;mso-hide:all!important;"></div> |
-- in header.php/html -- | |
<meta name="description" content="<?php echo $pageDesc; ?>" /> | |
<title><?php echo $pageTitle; ?> | Site Title</title> | |
-- @ top of index.php or other pages -- | |
<?php | |
$pageDesc = "Description goes here"; | |
$pageTitle = "Page Title goes here"; | |
include("header.html"); | |
?> |
#lives { | |
color:black; | |
content:'matter'; | |
} |
/** | |
* Register menus in functions.php | |
*/ | |
register_nav_menus( array( | |
'logged-in' => __( 'Logged-in Menu Area', 'yourtheme' ), | |
'visitor' => __( 'Visitor Menu Area', 'yourtheme' ), | |
)); | |
<?php | |
$trim_length = 25; //desired length of text to display | |
$value_more = '(…)'; // what to add at the end of the trimmed text | |
$custom_field = 'my-custom-field-name'; | |
$value = get_post_meta($post->ID, $custom_field, true); | |
if ($value) { | |
echo wp_trim_words( $value, $trim_length, $value_more); | |
} | |
?> |
<?php | |
add_filter( 'body_class', 'add_slug_body_class' ); | |
function add_slug_body_class( $classes ) { | |
global $post; | |
if ( isset( $post ) ) { | |
$classes[] = $post->post_type . '-' . $post->post_name; | |
} | |
return $classes; | |
} | |
?> |