Family Tree Date on Child Theme

Community Forums Forums Design Tips and Tricks Family Tree Date on Child Theme

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Susan 1 year ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40524

    angieatc
    Participant
    Post count: 80

    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?

    • This topic was modified 1 year, 4 months ago by  angieatc.
    • This topic was modified 1 year, 4 months ago by  angieatc.
    • This topic was modified 1 year, 4 months ago by  angieatc.
    • This topic was modified 1 year, 4 months ago by  angieatc.
    #57550

    Susan
    Moderator
    Post count: 8969

    Hi, 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.


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.