Community Forums › Forums › Archived Forums › Design Tips and Tricks › Family Tree Date on Child Theme
- This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by Susan.
-
AuthorPosts
-
May 11, 2013 at 6:02 pm #40524angieatcMember
I would provide a link but I can't as I am building the site on my localhost. I am trying to get the date from Family Tree onto my Child Theme. From reading the old forum it looks like there are 2 codes for sure I have to add to my child theme.
In my functions
`
`add_action( 'template_redirect', 'familytree_conditional_actions' );
/**
* Switch out default Genesis post info creation for Family Tree version.
*
* @since 1.0
*/
function familytree_conditional_actions() {if ( is_page_template( 'page_blog.php' ) || is_post_type_archive() || is_singular( 'post' ) ) {
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
add_action( 'genesis_before_post_content', 'familytree_post_info' );
}}
/**
* Create custom post info function.
*
* This is done to mark up the post date.
*
* @since 1.0
*/
function familytree_post_info() {?>
<?php
}`
In my CSS:
`
`/* Post Date
------------------------------------------------------------ */
.post-date-wrap {
width: 65px;
height: 73px;
}`.full-width-content .post-date-wrap {
float: left;
background: url(images/date-bgd-left.png) no-repeat top left;
margin-top: -52px;
margin-left: -103px;
}.content-sidebar .post-date-wrap {
float: left;
background: url(images/date-bgd-left.png) no-repeat top left;
margin-top: -52px;
margin-left: -88px;
}.sidebar-content .post-date-wrap {
width: 65px;
height: 73px;
float: right;
background: url(images/date-bgd-right.png) no-repeat top left;
margin-top: -52px;
margin-right: -82px;
}.content-sidebar-sidebar .post-date-wrap {
float: left;
background: url(images/date-bgd-left.png) no-repeat top left;
margin-top: -52px;
margin-left: -88px;
}.sidebar-sidebar-content .post-date-wrap {
float: right;
width: 65px;
height: 73px;
background: url(images/date-bgd-right.png) no-repeat top left;
margin-top: -52px;
margin-right: -87px;
}.sidebar-content-sidebar .post-date-wrap, .sidebar-content-sidebar .post-date {
visibility: collapse;
height: 0;
width: 0;
}.content-sidebar .post-date, .content-sidebar-sidebar .post-date, .full-width-content .post-date {
float: left;
}.sidebar-content .post-date, .sidebar-sidebar-content .post-date {
float: right;
}.post-date {
display: inline;
width: 62px;
height: 57px;
font-size: 9px;
text-align: center;
color: #C8C980;
padding: 17px 0 0 5px;
}.post-date .month {
font-family: "fertigo-script-1", "fertigo-script-2", Georgia, "Times New Roman", Times, serif;
font-size: 20px;
line-height: 16px;
text-transform: lowercase;
color: #EB836A;
}.post-date .day {
font-family: "bree-1", "bree-2";
font-size: 24px;
font-weight: 400;
line-height: 18px;
color: #967D61;
}.post-date .year {
font-size: 9px;
line-height: 9px;
}`I cannot get this to work at all. I also saw somewhere in the forum where in the #inner I needed to remove the overflow:hidden so it would be outside of the inner. Can someone help here please?
My design site, Hill Springs Designs
August 20, 2013 at 9:55 am #57550SusanModeratorHi, Angie:
I don't have an immediate answer for you, but I’m working through all the outstanding issues here on the forum. Since it’s been over 3 months since you posted your question, I’m hoping you were able to resolve your issue. Please check in when you have a chance.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.