Skip to content

Instantly share code, notes, and snippets.

View samediamba's full-sized avatar

Samedi S. Amba samediamba

View GitHub Profile
@samediamba
samediamba / Change WP title description
Last active August 29, 2015 14:15
Change "Enter Title Here" for custom post types
/*
Add the following to the functions/functionality file
Courtesy: http://lizardpc.com/blog/how-to/change-enter-title-here-for-custom-post-types-wordpress-3-8/
*/
function title_text_input ( $title ) {
if ( get_post_type() == 'name_of_your_custom_post_type' ) {
$title = __( 'Enter your whatever text you want' );
}
return $title;
@samediamba
samediamba / Genesis Related Posts
Last active August 29, 2015 14:14
Related Posts for the Genesis Framework
/**Place in Functions.php
// move comment box above comments
remove_action('genesis_comment_form', 'genesis_do_comment_form');
add_action( 'genesis_before_comments', 'genesis_do_comment_form');
<?php
/*** Change default comment text in StudioPress Genesis Courtesy of WP Snacks: http://goo.gl/Dp8Lv**/
function change_default_comment_text($args) {
$args['title_reply'] = 'Have your Say';
return $args;
}
add_filter( 'genesis_comment_form_args', 'change_default_comment_text' );
?>
@samediamba
samediamba / Customize Genesis Post Meta Data
Created June 30, 2013 11:11
How to customize the Post Meta data section of a Genesis Child Theme.
<?php /*Add the code below to the genesis_before_post_content Hook */
<div class="post-info">
<span class="time">
<?php /*Code courtesy of WP Beginner: http://goo.gl/3512D and Studiopress: http://goo.gl/72Qbx*/ ?>
<?php $u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
if ($u_modified_time >= $u_time + 86400) {
echo "Last modified on ";
the_modified_time('F jS, Y');
@samediamba
samediamba / index.html
Created June 17, 2013 08:54
Responsive CSS Ribbon
<!-- RIBBON 1 -->
<div class="container one">
<div class="bk l">
<div class="arrow top"></div>
<div class="arrow bottom"></div>
</div>
<div class="skew l"></div>
@samediamba
samediamba / index.html
Created June 17, 2013 08:33
Creates an effect like that of the LOC book showcase. A CodePen by Jdias. Responsive grid & background slide -
<link href='http://fonts.googleapis.com/css?family=Lato:400,300' rel='stylesheet' type='text/css'>
<div id="wrapper">
<div id="list">
<div class="item" id="primeiro" style="height: 14em;">
<p class="titulo">Winterfell</p>
</div>
<div class="item" id="segundo" style="height: 26em;">
<p class="titulo">Jon Snow</p>
</div>
@samediamba
samediamba / index.html
Created June 17, 2013 07:57
A CodePen by RobertKenner. Inset hover effects for social icons. Very nice
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">
<div>
<a class="button one"><i class="icon-facebook"></i>
<a class="button one"><i class="icon-twitter"></i>
<a class="button one"><i class="icon-linkedin"></i>
<a class="button one"><i class="icon-pinterest"></i>
<a class="button one"><i class="icon-google-plus"></i></a>
</div>
@samediamba
samediamba / index.html
Created June 17, 2013 07:57
A CodePen by RobertKenner. Inset hover effects
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">
<div>
<a class="button one"><i class="icon-facebook"></i>
<a class="button one"><i class="icon-twitter"></i>
<a class="button one"><i class="icon-linkedin"></i>
<a class="button one"><i class="icon-pinterest"></i>
<a class="button one"><i class="icon-google-plus"></i></a>
</div>
@samediamba
samediamba / index.html
Created June 16, 2013 14:17
A CodePen by Samedi Amba.
<html>
<head>
</head>
<body class style=""height: 100%>
<div class="container"><!-- The Main Container -->
<div id="topbar" class="clearfix"><!-- The Topbar -->
<div id="search"><!-- Search Panel -->
Search Area -> Quick Links