Decor theme pictures

Community Forums Forums Design Tips and Tricks Decor theme pictures

This topic is: not resolved

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

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

    robby0123
    Participant
    Post count: 6

    Hello,

    When i upload a picture it is always above the post and with a date stamp. I would like to put pictures in the normal way. Below the title within the post like other themes. How do i do this plz? I use the decor theme. Thanks in advance.

    URL:  http://www.encyclopex.com/


    #1651

    SoZo
    Moderator
    Post count: 1573

    This is the function in functions.php that adds the image
    /** Add post image above post title */
    add_action( 'genesis_before_post_title', 'decor_post_image' );
    function decor_post_image() {
    if ( is_page() ) return;
    if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    printf( '%s', get_permalink(), do_shortcode( '[post_date format="j"][post_date format="F Y"]' ), $image, the_title_attribute( 'echo=0' ) );
    }
    }


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    • This reply was modified 2 years ago by  SoZo.
    • This reply was modified 2 years ago by  SoZo.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.