• 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

Digital pro adding featured image, no single.php

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 › Retired StudioPress Themes › Digital pro adding featured image, no single.php

This topic is: not resolved

Tagged: digital pro, featured image

  • This topic has 8 replies, 3 voices, and was last updated 9 months ago by Stream77.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • April 24, 2022 at 7:34 am #505093
    authorprouser
    Participant

    Hi all
    We want to display a featured image in a WordPress post. We added some code to functions to show custom posts which works. Digital pro doesn´t appear to have a single.php which is where we were going to add the code to show default images.
    What should be do? Thank you
    kind regards
    Ed

    April 24, 2022 at 7:41 am #505094
    Brad Dalton
    Participant

    In which hook position?


    Tutorials for StudioPress Themes.

    April 24, 2022 at 1:50 pm #505098
    authorprouser
    Participant

    I don´t know the answer to that question, I just added the code to functions in your link Brad but nothing happens

    April 24, 2022 at 10:12 pm #505100
    Brad Dalton
    Participant

    You can use a single.php template file

    Or

    The is_singular('post') conditional tag after the function name in your code.


    Tutorials for StudioPress Themes.

    April 25, 2022 at 9:54 am #505102
    authorprouser
    Participant

    Hi, I copied the code to and uploaded a single.php but now that is what I see when creating new posts (it has got)and it doesn´t show the featured image.

    Does the is_singular('post') conditional tag create it for me directly?
    Thank you

    April 25, 2022 at 10:18 am #505103
    authorprouser
    Participant

    Sorry couldn´t edit that answer:

    Hi, I copied the code to, and uploaded, a single.php but now that is all I see when creating new posts and it doesn´t show the featured image.

    Does the is_singular('post') conditional tag create it for me directly?
    Thank you

    April 25, 2022 at 10:43 pm #505105
    Brad Dalton
    Participant

    No, its a conditional tag you can use in your functions file. Use this or the template to execute PHP code on single posts only

    However, in your case, you might find it easier using blocks to add your image so you don't need PHP coding knowledge.


    Tutorials for StudioPress Themes.

    April 27, 2022 at 6:20 am #505126
    authorprouser
    Participant

    Thank you Brad, why don´t genesis themes come with a single.php would make things simpler!

    June 26, 2022 at 10:06 pm #505475
    Stream77
    Participant

    Teco login
    Log in to your online account with Tampa Electric and Peoples Gas where you can view ... Username Forgot your username? ... TECO Energy is an Emera company.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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