• 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

blog template page customization

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 › blog template page customization

This topic is: resolved

Tagged: blog template

  • This topic has 9 replies, 2 voices, and was last updated 12 years, 6 months ago by jtdatawork.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • January 2, 2013 at 7:22 pm #9090
    jtdatawork
    Member

    I need to add a photo before the content on the blog template page only. How can I do this?

    Thanks!


    JT Dataworks Web design and SEO

    January 3, 2013 at 5:24 am #9142
    Brad Dalton
    Participant

    Use a conditional tag (for the blog page template or post i.d) with a custom function or the Genesis simple hooks plugin. http://www.studiopress.com/plugins/simple-hooks

    if (is_page_template( 'blog.php' ))

    http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template


    Tutorials for StudioPress Themes.

    January 3, 2013 at 5:59 pm #9314
    jtdatawork
    Member

    Sorry to be so thick, but I'm not good at php. I tried to put the following into the before content simple hook block but nothing shows up...

    Not sure if it's because the code is wrong, but if I just put the photo url in, it shows up, albeit on all pages. So this seemed logical. What am I doing wrong?

    <?php if (is_page_template( ‘blog.php’ )) {?>

    <img src="http://www2.denisemazzola.com/wp-content/uploads/b-blog.jpg">

    <?php }?>


    JT Dataworks Web design and SEO

    January 3, 2013 at 7:02 pm #9327
    jtdatawork
    Member

    Update, I tried this:

    <?php if (is_page_template( ‘page_blog.php’ )) {?>
    <div class="blog-page">
    <?php }?>

    And added the photo in the css to the class .blog-page. This almost worked. The photo does show up now, but it also seems to be affecting the regular pages as the photo can be seem behind the banners on the regular site pages. see http://www2.denisemazzola.com/become-a-dog-professional-2/

    On the blog page it looks like this http://www2.denisemazzola.com/blogging-about-dogs/

    Why isn't it excluding the photo from the regular pages? Help! My client wants to launch this site in the next few days. I thought this would be simple. Boy was I wrong. 🙁

     

     


    JT Dataworks Web design and SEO

    January 4, 2013 at 12:07 am #9418
    Brad Dalton
    Participant

    The code i gave you is only a solution for the conditional tag. You'll need to write the code and include the conditional tag.  Maybe Nick can help if you send a email to support.


    Tutorials for StudioPress Themes.

    January 4, 2013 at 2:10 am #9434
    Brad Dalton
    Participant

    http://dreamwhisperdesigns.com/genesis-tutorials/add-content-genesis-blog-page-template/

    Try this.

    What i did was register a new widget area and hook it in using a conditional tag but i also added a page_blog template in the child theme.


    Tutorials for StudioPress Themes.

    January 4, 2013 at 7:19 pm #9638
    jtdatawork
    Member

    Hi Brad,
    Thanks! That got me almost there. You are officially my new hero.

    I did not have to register the widget, I just added the code you pointed me to, to my page_blog template and the background in the style sheet started showing. So now I have a blog template page with the correct image showing. The only problem is things are not displaying right. The background image is off about 5 px and there is a page title ABOVE the image pushing it down the page, and which I designated in my theme functions to NOT show up (any of my page titles).

    Any thoughts on how I can correct these final problems?

     

     


    JT Dataworks Web design and SEO

    January 5, 2013 at 1:38 am #9695
    Brad Dalton
    Participant

    You can align the image using the Advanced Image Settings horizontally or vertically.

    You can also hide the title using CSS


    Tutorials for StudioPress Themes.

    January 5, 2013 at 1:49 pm #9773
    jtdatawork
    Member

    I hit a snag doing this, turns out my cleint want to use categories, meaning that I will need an archives template instead of (or in additon to) a blog page template. Do you think it will it work to add this template just like I did the Blog Page?Thnx.


    JT Dataworks Web design and SEO

    January 5, 2013 at 6:55 pm #9823
    jtdatawork
    Member

    Yay! OK! Hiding the title with CSS - worked great!

    Changing the alignment on the image, I figured out with a tweak to CSS also. I had a content padding that was throwing it off.

    Thank you! The last little problem I'm having really should be in a new thread, so I'm going to mark this resolved. Brad, thanks so much for taking the time to help. It was a lifesaver!

     

     


    JT Dataworks Web design and SEO

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 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