• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Affiliates
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Single Post Page – Title Before Image

Home › Community Forums › Elevate Theme Support › Single Post Page – Title Before Image

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 4 months ago by Bud.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 31, 2018 at 8:13 am #22864
    Bud
    Customer

    Hi

    Still love Elevate. Decided to re-do and expand site still using Elevate rather than swtich to another theme.

    In functions file you have:

    //* Add featured image above the entry content
    add_action( ‘genesis_entry_header’, ‘elevate_featured_photo’, 5 );
    function elevate_featured_photo() {

    if ( is_attachment() || ! genesis_get_option( ‘content_archive_thumbnail’ ) )
    return;

    if ( is_singular() && $image = genesis_get_image( array( ‘format’ => ‘url’, ‘size’ => genesis_get_option( ‘image_size’ ) ) ) ) {
    printf( ‘<div class=”featured-image”>%s</div>’, $image, the_title_attribute( ‘echo=0’ ) );
    }

    }

    Seems like it’s the second If statement that needs to change?

    Please help! I’ve tried a lot of things but can’t get it to work.

    Thanks.

    Bud

    November 2, 2018 at 12:07 am #22867
    Wes
    Moderator

    To move the title up top you can change the “Priority” from 5 to 10 (or more if needed).

    Look at this line of that code above –

    add_action( ‘genesis_entry_header’, ‘elevate_featured_photo’, 5 );

    …and change it to this –

    add_action( ‘genesis_entry_header’, ‘elevate_featured_photo’, 10 );

    Here’s what it should look like after you make that change – https://i.postimg.cc/G2yS8FJH/Screen-Shot-2018-11-02-at-12-00-52-AM.png

    Let me know if that works

    November 2, 2018 at 7:53 am #22868
    Bud
    Customer

    Thank you so much. This sure did work.

    I had not thought about changing the priority. I’ve got a lot more to learn but I will.

    Bud

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Single Post Page – Title Before Image’ is closed to new replies.

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Affiliates
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2021 · Appfinite · Built With The Genesis Framework