• 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

How to edit single.php file?

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 › How to edit single.php file?

This topic is: not resolved

Tagged: child themes, php

  • This topic has 6 replies, 2 voices, and was last updated 10 years, 5 months ago by katmmad.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 10, 2012 at 1:40 pm #4250
    katmmad
    Member

    Hmmn.  I was just advised to put a clear div in my "single.php file" after the #subnav div and before the #inner div.  Opening up Genesis's single.php file, of course, tells me to only edit the Child Theme... and my Child Theme doesn't have a single.php file.  Even if I were to just copy the genesis/single.php file, I'm not quite sure how to edit the #subnav div and the #inner div.  Help!  (I did just take a quickie PHP class but this is my first time trying to edit Genesis/Lifestyle using it.  Poking around the forums but thought it might be faster to just write a question... thanks in advance to anyone who can answer this!

     

    thanks,

    Kat

     

    f you add a clear div after the #subnav div and before the #inner div, you won't have this issue. You should be able to do this in your theme's single.php file.

    Example clear div.

    <div style="clear:both;"></div>

    December 10, 2012 at 5:29 pm #4315
    Anita
    Keymaster

    What are you trying to accomplish?


    Love coffee, chocolate and my Bella!

    December 11, 2012 at 6:48 am #4468
    katmmad
    Member

    I'm having a problem where my content is being pushed underneath the header if there are under 10 comments -- it was suggested that I fix it with this change.  The original problem was posted here: http://www.studiopress.community/topic/wp-or-genesis-problem-disappearing-posts/

    December 11, 2012 at 6:51 am #4473
    Anita
    Keymaster

    Did you modify anything in the Functions or PHP file? Have you added any content that requires a <div> element? Sometimes you need to check what you added - this doesn't sound like an error or glitch in the theme but in something you added somewhere.

     


    Love coffee, chocolate and my Bella!

    December 11, 2012 at 6:55 am #4474
    Anita
    Keymaster

    There is a Facebook iFrame in that Post. When I delete it using Firebug - the post returns to normal. What are you using for those Facebook likes or that iFrame?


    Love coffee, chocolate and my Bella!

    December 11, 2012 at 6:58 am #4475
    Anita
    Keymaster

    I also see a lot of tracking codes on that post too. But if you have an active site and all the plugins are activate, we cannot help you. You should disable all of the plugins and give us an opportunity to look at it free and clear without them.


    Love coffee, chocolate and my Bella!

    December 11, 2012 at 9:56 am #4503
    katmmad
    Member

    I'm going to stick to the other thread, then... I opened two because they seemed like separate (albeit related) problems.

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

© 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