WordPress.org

Ready to get started?Download WordPress

Forums

Posts like "?p=18" are generated without backgound image (8 posts)

  1. llprice
    Member
    Posted 8 years ago #

    Hello, hope someone can help me solve my little problem.
    I'm not a coder, and I'm learning CSS on the fly, but I set up a WordPress blog with the Kurbrik theme a few months ago, and made quite a few modifications in the style sheet to reflect a home page design & colors.
    I tried to tweak the php to get rounded corners into the box, but gave up on that task when my changes didn't carry over to every page on the site.

    http://cgi.unk.edu:16080/artblog/

    I then turned the blog posting over to another person. Recently, I have returned to the news duties. Today, I made a horrible discovery -- the post pages are very hard to read because a background image isn't included in each post as it's page is generated.

    for example: http://cgi.unk.edu/artblog/?p=15

    I don't know if this is due to an oversight in the style sheet, or if I mucked something up in the php. Is there a help file that might help me get this fixed or can someone suggest a correction.

    Thanks.
    llprice@citlink.net

  2. Kafkaesqui

    Posted 8 years ago #

    I'm seeing this in your style section of your <head>:

    #page { background: url("http://cgi.unk.edu/artblog/wp-content/themes/arts/images/") no-repeat top; border: none; }

    Note a lack of an actual image file in the url.

  3. llprice
    Member
    Posted 8 years ago #

    Wow. Thanks for spotting that so fast.
    I'll make the changed right away.
    You're terrific.

    L.L. Price

  4. llprice
    Member
    Posted 8 years ago #

    Hello Kafkaesqui,

    Now that I've had my morning coffee, I realize that I need just a bit more information. I did notice, in the source, that the WP generated "post" pages did NOT have that background image
    like the main pages.

    What I didn't see (and don't know), is where I can change the code or markup to make that background image automatically appear in each post page, as it is generated, when I post a new message.

    Thanks for your help.
    llprice

  5. Joshua Sigar
    Member
    Posted 8 years ago #

    Do you have different header file for index and single? Either way, post here http://pastebin.com the content of header.php and come back with the link.

  6. Kafkaesqui

    Posted 8 years ago #

    Following alphaoide's suggestion, also don't forget to let us know which image is supposed to be there.

  7. llprice
    Member
    Posted 8 years ago #

    Hello alphaoide and Kafkaesqui,

    Okay, I think I see the line that needs to be replaced -- in the header! Now it's coming back to me. Change images in the header in Kurbrik -- I read that last summer, but forgot. I'm guessing these are the lines that are of interest:

    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/artbg.gif") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/") no-repeat top; border: none; }

    I need to add "artbg.gif" after the "/images/" in the second line. I'm guessing I need to replace the "no-repeat" with the "repeat-y top string as well.

    Back when I set this up, I used FTP to make alterations. That login changed when the other party took over the news. As I recall, I can't edit in the theme editor either. I have to wait until Monday, when the sysop can give me a new pass.

    Or is there some way to make changes through the dashboard?

    Thanks guys.
    L. L. Price

  8. Joshua Sigar
    Member
    Posted 8 years ago #

    If you can't use the theme editor then you have to use FTP--no other way.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags