Pesky image arrows would stay lined up so I decided to make them with just css. Added some hover animation just for fun!
A Pen by Trisha Salas on CodePen.
// Make an RSS Feed Link for a bbPress Topic | |
// First Create Your Function | |
function bbpress_rss() { | |
$url = "http" . (($_SERVER['SERVER_PORT']==443) ? "s://" : "://") . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | |
echo ' <a href="' . $url . 'feed">Subscribe via RSS</a>'; | |
} | |
// Then Echo the Function |
<div class="wrapper"> | |
<div class="cat animal"> | |
<div class="head"> | |
<span class="nose"></span> | |
<div class="ears"></div> | |
<div class="stripes stripes-right"></div> | |
<div class="stripes stripes-left"></div> | |
<div class="tongue"></div> | |
</div> | |
<div class="body"> |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
class That_Word() { | |
$word = 'what you think the word means'; | |
$that_word = 'what the word really means'; | |
you_using_that_word(){ | |
$word <> $that_word; | |
} |
<body> | |
<a href="#maincontent">Skip to main content</a> | |
... | |
<main id="maincontent> | |
<h1>Heading</h1> | |
<p>This is the first paragraph</p> |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<header class="entry-header"> | |
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?> | |
</header><!-- .entry-header --> | |
</article><!-- #post-## --> |
<header id="masthead" class="site-header" role="banner"> | |
<div class="site-branding"> | |
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> | |
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> | |
</div> | |
<!-- taken from header.php in the _s theme --> |
<?php | |
$url = get_post_meta( $post->ID, '_project-url', true ); | |
if ($url != '') { | |
$link = sprintf( __( '%s', 'wpp-portfolio' ), esc_url( $url ) );?> | |
<p><?php echo $link;?></p> | |
<?php } | |
?> |
Pesky image arrows would stay lined up so I decided to make them with just css. Added some hover animation just for fun!
A Pen by Trisha Salas on CodePen.