Support » Themes and Templates » Trouble unlinking uploaded background image from new pages

  • Hello, I am wanting to add a different background image to the body of new pages that I create. My problem is that I am unsure of which code to change in my page.php panel. The theme I am using (D5 Business Line) provides an upload option for changing the background, but this option applies the change to all of the pages. Consequently, there is no line of code in the page.php or style.css panel that visibly shows any background or url information for the BODY of the background. I have searched the forums and read information about changing code in the page.php panel, but I cannot make any changes because I cannot identify the code to change. Thanks for any help.


    Page.php info

    get_header(); ?>

    <div id=”content”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div <?php post_class(); ?> id=”post-<?php the_ID(); ?>”>
    <h1 class=”page-title”><?php the_title(); ?></h1>
    <div class=”content-ver-sep”> </div>
    <div class=”entrytext”>
    <?php the_post_thumbnail(‘thumbnail’); ?>
    <?php the_content(‘<p class=”read-more”>Read the rest of this page »</p>’); ?>

    <?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

    <?php endwhile; ?>
    <div class=”clear”> </div>
    <?php edit_post_link(‘Edit This Entry’, ‘<p>’, ‘</p>’); ?>
    <?php comments_template(”, true); ?>
    <?php else: ?>
    <p>Sorry, no pages matched your criteria.</p>
    <?php endif; ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Viewing 10 replies - 1 through 10 (of 10 total)
  • Just a head ups: the only other page created outside of the home page is the contact page.

    Just watched a couple more youtube videos, but still haven’t had any success.

    you can use this plugin for upload the background images for each page. Follow this link

    Nice Design after customization!
    You can use custom style within page template.

    Thanks for the responses you guys. Arti Singh, I downloaded the background manager and it has been helpful. d5Creation, thank you for your compliment, it really means a lot. After all of these hours my respect for programmers has been lifted to new heights! I’m taking your advice on custom style within page template now. Do you know if the four thumbnails on the title page can link to another page without that page being revealed in the main menu? My only other alternative was to create a post for them but I can’t figure out how to remove the comment box below the videos without deleting my footer as well. Here’s my example.

    If you want to remove the comment box of a particular post then you have to edit the post. Follow these steps:

    1. Go to your WordPress Administration Panel.
    2. Edit post > screen options > select the discussion checkbox.
    3. Do not select the checkbox of allow comments from the discussion box.

    Arti Singh,

    I gave it a try but I was not able to remove the box. I believe that the box in question may not be the comment box. The reason I say so is that after going to the discussion checkbox I noticed that it was already unchecked. I thought I would check it just to see what would happen and another box (w/Leave A Comment) appeared below the box I was wanting to get rid of. Do you think I may have to edit one of the php files??

    Thanks for all your help.

    You can permanently remove the comments from either pages, posts or media under SETTINGS/DISABLE COMMENTS.


    Am I overlooking something because I went to the settings tab and searched through all the links but I was not able to locate a disable comments feature.

    UPDATE: I found a solution to the unidentified box being removed. I’m not sure the appropriate name, but it is the box that holds the post metadata. The line of code for hiding it can be found in the single.php panel. The lines of code I edited are below for anyone who needs a reference, but all I did to hide the box and information was place two (/) into the code holding the information that I did NOT want shown. View my example below:

    <p class="postmetadata"><?php //the_category(', ') ?>  <?php //edit_post_link('Edit', '', ' | '); ?>  <?php// comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php the_tags('Tags: ', ', ', ''); ?></p>
                <?php  wp_link_pages( array( 'before' => '<div class="page-link"><span>' . 'Pages:' . '</span>', 'after' => '</div>' ) ); ?>
                <div class="floatleft"><?php previous_post_link('« %link (Previous Post)'); ?>'</div>
    			<div class="floatright"><?php //next_post_link('(Next Post) %link »'); ?></div>
                <div class="floatleft"><?php //previous_image_link( false, '« Previous Image' ); ?></div>
    			<div class="floatright"><?php next_image_link( false, 'Next Image »' ); ?></div>
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Trouble unlinking uploaded background image from new pages’ is closed to new replies.