WordPress.org

Ready to get started?Download WordPress

Forums

Strange spacing when viewing individual entry pages, but not in home page (10 posts)

  1. Lunatique
    Member
    Posted 1 year ago #

    I have a strange problem that I'm don't know how to fix.

    When I look at my individual blog entries on their own separate pages (direct links to the entries themselves), there's a huge space between the text and the menu on the right:
    http://www.ethereality.info/ethereality_website/about_me/wordpress/?p=1866

    But when looking at my blog from the main home page, there's no extra space there:
    http://www.ethereality.info/ethereality_website/about_me/wordpress/

    How can I get rid of that extra space when viewing my entries by their direct page links? Which CSS file do I need to edit and where in the code? It's been years since I customized the CSS for my blog and I've pretty much forgotten everything I learned from back then.

    Thank you in advance for helping out. I really appreciate it.

  2. Pankaj Pandey
    Member
    Posted 1 year ago #

    because your post page is coded in wrong way its include a div twice

    <div id="content">
    <!-- end header -->
    
    	<div id="content" class="widecolumn">

    Remove one div#content to fix the issues

  3. Lunatique
    Member
    Posted 1 year ago #

    Thank you, Pankaj. Can you tell me the name of the file I'm supposed to edit, and which folder it's in?

  4. Pankaj Pandey
    Member
    Posted 1 year ago #

    single.php in theme

  5. Lunatique
    Member
    Posted 1 year ago #

    Thank you so much! It worked!

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Make sure you're aware that if you update your theme, any changes made to the theme's original files will erase. You should ideally use a Child Theme or Custom CSS plugin.

  7. Lunatique
    Member
    Posted 1 year ago #

    Sorry, Andrew--that went over my head a bit. I'm not really a techie guy (mainly an artist/writer/composer), so I really struggle with any kind of coding-related stuff. I put together my site with Dreamweaver and a lot of google searches for helpful tips, but I'm mainly a WYSIWYG person.

    So you're saying I shouldn't change the original theme file?

    This is what I did: I went to this local directory:
    blah blah blah....wordpress\wp-content\themes\classic

    And I edited the single.php file by deleting this:
    <div id="content" class="widecolumn">

    I then saved this edited version over the remote version on the FTP server.

    Was that a bad way to do it? But it worked, since the individual entries on their own page no longer have that spacing.

    If that was the wrong way to do it, can you explain how using a Child Theme or Custom CSS plugin is better? Thanks.

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    Changes to a theme's original files will erase once the theme updates as the updated files will simply overwrite each file.

    Modifications to themes are still possible without the risk of being erased via update; you need to use a Child Theme or Custom Style plugin.

    You can achieve CSS-only changes using a Custom CSS plugin, which is far easier than a Child Theme. You need only activate it (using the instructions given by the plugin) and you're given an allocated area to enter your CSS.

    You can achieve CSS changes and nearly every other modification using a Child Theme. You should seek guidance from http://codex.wordpress.org/Child_Themes .

  9. Lunatique
    Member
    Posted 1 year ago #

    I'm confused. (Sorry Andrew, you're dealing with a non-techie guy).

    When I looked at the last modified date of the classic theme's single.php, it was from 2010 (this is before I edited and saved the file), so that means it's been a long time since it was overwritten, but I've been keeping up with the WordPress updates, and I'm always running the latest version (I use the automatic update option).

    If updating WordPress to the latest version will overwrite the single.php file, wouldn't the time-stamp on it be a lot newer than 2010?

    Maybe because I have purposely avoided updating the classic theme, due to having customized it and not wanting to lose my customization, that I don't have to worry about erasing any changes I made? So as long as I don't update the classic theme, I should be okay?

  10. Andrew
    Forum Moderator
    Posted 1 year ago #

    So as long as I don't update the classic theme, I should be okay?

    yes

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.