Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding post date and author below post title
- This topic has 9 replies, 2 voices, and was last updated 12 years, 1 month ago by
AnitaC.
-
AuthorPosts
-
December 8, 2012 at 2:26 pm #3877
lorena
MemberHi. I'd like to add the post date and title to my posts. I like the way it shows up on LiveYourLegend.net. I've got the Add to Post plugin but I need help with the coding. Thanks.
December 8, 2012 at 5:20 pm #3899AnitaC
KeymasterLook at this to see if this will help you - http://www.studiopress.com/plugins/simple-edits.
Need help with customization or troubleshooting? Reach out to me.
December 8, 2012 at 6:14 pm #3910lorena
MemberThanks! I think this will work great- but the changes haven't taken effect yet. About 20 minutes later. Any ideas?
December 8, 2012 at 7:25 pm #3926AnitaC
KeymasterI see changes. I see you added your Twitter ID on there. Your site looks really nice. Great job.
Need help with customization or troubleshooting? Reach out to me.
January 2, 2013 at 4:23 pm #9039lorena
MemberI need some more help here. I still can't see my post date, comments or the twitter ID. I can sort of see it in my Triberr feed but not actually displaying on my site. I can tell that anitac can see it but why can't I? Could there be a conflict? Would there be another way to do this?
Thanks,
Lorena
January 2, 2013 at 5:36 pm #9056AnitaC
KeymasterI think I erred. I went to http://liveyourlegend.net/ which is not your site. Post the link to your site so I can take a look.
Need help with customization or troubleshooting? Reach out to me.
January 2, 2013 at 5:57 pm #9067lorena
MemberMy site is bigstatebiglife.com
Thanks,
Lorena
January 2, 2013 at 6:06 pm #9071AnitaC
KeymasterDid you modify your functions.php, home.php, or your style.css files?
Need help with customization or troubleshooting? Reach out to me.
January 2, 2013 at 7:04 pm #9085lorena
MemberI have made a few modifications- the only manual one was to my style.css. I've included them all. Thanks for the help.
Here is my style.css:
#optin2 {
background: #cfcfce url('images/gloss.png') no-repeat bottom center;
border: 3px solid #6c6c6c;
color: #fff;
padding: 20px 15px;
text-shadow: 1px 1px #111;
width: 60%;
}#optin2 input {
border: 1px solid #585858;
font-size: 15px;
margin-bottom: 10px;
padding: 8px 10px;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
box-shadow: 0 2px 2px #5a5a5a;
-moz-box-shadow: 0 2px 2px #5a5a5a;
-webkit-box-shadow: 0 2px 2px #5a5a5a;
}#optin2 input.email {
background: #fff url('images/email.png') no-repeat 10px center;
padding-left: 35px;
}#optin2 input.name {
background: #fff url('images/name.png') no-repeat 10px center;
padding-left: 35px;
}#optin2 input[type="submit"] {
background: #f6640e url('images/orange.png') repeat-x top center;
border: 1px solid #a44913;
color: #fff;
cursor: pointer;
font-size: 14px;
font-weight: bold;
padding-left: 35px 0;
text-shadow: -1px -1px #562806;
text-transform: uppercase;
width: 30%;
}#optin2 input[type="submit"]:hover {
color: #ffdeb3;
}#optinsidebar {
background: #cfcfce url('images/gloss.png') no-repeat bottom center;
border: 3px solid #6c6c6c;
color: #fff;
padding: 20px 15px;
text-shadow: 1px 1px #111;
width: 70%;
}#optinsidebar input {
border: 1px solid #585858;
font-size: 15px;
margin-bottom: 10px;
padding: 8px 10px;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
box-shadow: 0 2px 2px #5a5a5a;
-moz-box-shadow: 0 2px 2px #5a5a5a;
-webkit-box-shadow: 0 2px 2px #5a5a5a;
}#optinsidebar input.email {
background: #fff url('images/email.png') no-repeat 10px center;
padding-left: 25px;
}#optinsidebar input.name {
background: #fff url('images/name.png') no-repeat 10px center;
padding-left: 25px;
}#optinsidebar input[type="submit"] {
background: #f6640e url('images/orange.png') repeat-x top center;
border: 1px solid #a44913;
color: #fff;
cursor: pointer;
font-size: 14px;
font-weight: bold;
padding: 8px 0;
text-shadow: -1px -1px #562806;
text-transform: uppercase;
width: 60%;
}#optin2 input[type="submit"]:hover {
color: #ffdeb3;
}#header {
background: url("http://bigstatebiglife.com/wp-content/themes/eleven40/images/headerimage.png") no-repeat scroll center top transparent;
}Function.php:
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );/** Add support for custom header **/
add_theme_support( 'genesis-custom-header', array( 'width' => 1024, 'height' => 300 ) );/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'eleven40 theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/eleven40' );/** Create additional color style options */
add_theme_support( 'genesis-style-selector', array( 'eleven40-blue' => 'Blue', 'eleven40-green' => 'Green', 'eleven40-red' => 'Red' ) );/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );/** Add new image sizes */
add_image_size( 'grid-thumbnail', 270, 100, TRUE );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'eleven40_viewport_meta_tag' );
function eleven40_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Add the page title section */
add_action( 'genesis_before_content_sidebar_wrap', 'eleven40_page_title' );
function eleven40_page_title() {
genesis_widget_area( 'page-title', array(
'before' => '<div class="page-title widget-area">',
) );
}/** Add the after post section */
add_action( 'genesis_after_post_content', 'eleven40_after_post' );
function eleven40_after_post() {
if ( ! is_singular( 'post' ) )
return;
genesis_widget_area( 'after-post', array(
'before' => '<div class="after-post widget-area">',
) );
}/** Add 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'page-title',
'name' => __( 'Page Title', 'eleven40' ),
'description' => __( 'This is the page title section.', 'eleven40' ),
) );
genesis_register_sidebar( array(
'id' => 'after-post',
'name' => __( 'After Post', 'eleven40' ),
'description' => __( 'This is the after post section.', 'eleven40' ),
) );/** Modify the speak your mind text */
add_filter( 'genesis_comment_form_args', 'custom_comment_form_args' );
function custom_comment_form_args($args) {
$args['title_reply'] = 'Leave a Comment';
return $args;
}/** Customize the post meta function */
add_filter( 'genesis_post_meta', 'post_meta_filter' );
function post_meta_filter($post_meta) {
if (!is_page()) {
$post_meta = '';
return $post_meta;
}}and home.php
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'eleven40_grid_loop_helper' );
/** Add support for Genesis Grid Loop */
function eleven40_grid_loop_helper() {if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 1,
'feature_image_size' => 0,
'feature_image_class' => 'alignleft post-image',
'feature_content_limit' => 0,
'grid_image_size' => 'grid-thumbnail',
'grid_image_class' => 'alignnone',
'grid_content_limit' => 250,
'more' => __( '[Continue reading]', 'genesis' ),
'posts_per_page' => 5,
) );
} else {
genesis_standard_loop();
}}
genesis();
January 2, 2013 at 7:29 pm #9094 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.