• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Move Featured Image

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Move Featured Image

This topic is: resolved

Tagged: agency pro

  • This topic has 11 replies, 2 voices, and was last updated 11 years, 10 months ago by macrunner.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • December 20, 2013 at 1:22 am #80410
    macrunner
    Participant

    Hi,

    I am using the theme Agency Pro, I would like to move Title post and date time, author etc..., below picture.
    so as to obtain Featured Image (or any images ) above.

    Screenshot (Photoshop)

    Original: http://i.imgur.com/YBNXFgO.jpg

    Edit: http://i.imgur.com/ECPtW3w.jpg

    What files should I change?

    I hope for some help, I really appreciate thanks 🙂

    December 20, 2013 at 1:36 am #80412
    Brad Dalton
    Participant

    Link to your site please.


    Tutorials for StudioPress Themes.

    December 20, 2013 at 2:33 am #80419
    macrunner
    Participant

    Hi, I was working on the local server, but I've uploaded a new installation on the remote server.
    this is the link: http://egotheme.it

    Thank you very much

    December 20, 2013 at 3:17 am #80420
    Brad Dalton
    Participant

    On archives or single posts?

    What code did you use to add it?

    Try the third code snippet on this page http://wpsites.net/web-design/add-remove-image-above-post-title/


    Tutorials for StudioPress Themes.

    December 20, 2013 at 3:26 am #80421
    macrunner
    Participant

    Both, archive and single posts.

    I tried to follow this tutorial (yours): http://wpsites.net/web-design/display-featured-image-before-or-after-entry-title-on-single-posts-pages/

    but it works partially.

    The site currently no modification or addition code, installed WordPress + Genesis + Agency Pro active theme.

    December 20, 2013 at 3:37 am #80422
    macrunner
    Participant

    I tried to use this code that thou hast reported: http://wpsites.net/web-design/add-remove-image-above-post-title/

    but does not work well, the images are duplicated: http://egotheme.it

    This is the code that I used:
    functions.php

    add_action( 'genesis_entry_header', 'wpsites_before_post_image', 5 );
    function wpsites_before_post_image() {
     
      if ( is_page() ) return;
     
    	if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    		printf( '<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    	}
    }

    style.css

    .post-photo {
        margin-bottom: 35px;
        display: block;
        margin: 0 auto 2.4rem;
    }
    
    December 20, 2013 at 4:15 am #80431
    Brad Dalton
    Participant

    You'll also need to remove the image after the title

    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    

    You can also control featured images in your Genesis > Theme Settings > Content Archives.


    Tutorials for StudioPress Themes.

    December 20, 2013 at 4:28 am #80434
    macrunner
    Participant

    Hi Brad,
    Okay, now it works fine!

    Thank you very much 🙂

    December 20, 2013 at 4:28 am #80435
    Brad Dalton
    Participant

    Or you could also use something like this:

    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    add_action( 'genesis_entry_header', 'genesis_do_post_image', 5 );
    

    Tutorials for StudioPress Themes.

    December 20, 2013 at 4:42 am #80439
    macrunner
    Participant

    Is much better, because it Featured Image only appears in the preview, awesome 🙂
    Thank you again 🙂

    December 27, 2013 at 10:24 am #81407
    macrunner
    Participant

    Hi,
    is also possible for a Video (embed or link) ?
    Thanks!

    December 27, 2013 at 1:27 pm #81438
    macrunner
    Participant

    I apologize, I opened a new thread: http://www.studiopress.community/topic/move-video-in-agency-pro/

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble