WordPress.org

Forums

a little help on it...background picture and sidebar (4 posts)

  1. roscai
    Member
    Posted 9 years ago #

    i´m new of course...
    can someone tell me how can i change the background of my pages. i vant to set up a watermark picture on the background of some pages. what should edit?
    and something else... i want to disable sidebar on certain pages how can i make it. i have only one sidebar.
    thank and hope thhat is not a stupid request.
    pd. i have a litle ideea of php

  2. moshu
    Member
    Posted 9 years ago #

    Please, help us to help you :)
    A link is always welcome. What theme are you using?
    Did you check the Blog_Design_and_Layout section of the Codex?
    Or... if yu are that new - it's good to start with the basics: Getting_Started_with_WordPress

  3. roscai
    Member
    Posted 9 years ago #

    i´m using bluehorizon theme. the blog is not online i´m learning and make modifications on a local machine. i check all codex pages but didn´find the answer of what i´m asking.
    now the theme has a white background. page php loocks like this:
    <?php get_header(); ?>

    <div id="static">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post">
    <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
    <div class="entrytext">
    <?php the_content('<p class="serif">Read the rest of this page »'); ?>

    <?php link_pages('Pages: ', '', 'number'); ?>

    </div>
    </div>
    <?php endwhile; endif; ?>

    </div>

    <?php get_footer(); ?>

    and the same source opend in html like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <html>

    <head>
    <style>
    a:link {font:8pt/11pt verdana; color:red}
    a:visited {font:8pt/11pt verdana; color:#4e4e4e}
    </style>
    <meta HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
    <title>HTTP 404 No encontrado</title>
    </head>
    <script>

    function Homepage(){

    // in real bits, urls get returned to our script like this:
    // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm

    //For testing use
    //DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
    DocURL=document.location.href;

    //this is where the http or https will be, as found by searching for :// but skipping the res://
    protocolIndex=DocURL.indexOf("://", 4);

    //this finds the ending slash for the domain server
    serverIndex=DocURL.indexOf("/", protocolIndex + 3);

    //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
    //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
    //urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
    BeginURL=DocURL.indexOf("#",1) + 1;
    urlresult=DocURL.substring(BeginURL, serverIndex);
    if (protocolIndex - BeginURL > 7)
    urlresult=""

    //for display, we need to skip after http://, and go to the next slash
    displayresult=DocURL.substring(protocolIndex + 3, serverIndex);

    var aElement = document.createElement("A");
    aElement.innerText = displayresult;
    aElement.href = urlresult;

    homepageContainer.appendChild(aElement);
    }

    function doSearch()
    {
    saOC.NavigateToDefaultSearch();
    }

    function initPage()
    {
    document.body.insertAdjacentHTML("afterBegin","<object id=saOC CLASSID='clsid:B45FF030-4447-11D2-85DE-00C04FA35C89' HEIGHT=0 width=0></object>");
    Homepage();
    }

    </script>

    <body bgcolor="white" onload="initPage()">

    <table width="400" cellpadding="3" cellspacing="5">
    <tr>
    <td id="tableProps" valign="top" align="left"><img id="pagerrorImg" SRC="pagerror.gif"
    width="25" height="33"></td>
    <td id="tableProps2" align="left" valign="middle" width="360"><h1 id="errortype"
    style="COLOR: black; FONT: 13pt/15pt verdana"><span id="errorText">No se encontró la página</span></h1>
    </td>
    </tr>
    <tr>
    <td id="tablePropsWidth" width="400" colspan="2"><font
    style="COLOR: black; FONT: 8pt/11pt verdana">Puede que la página solicitada ya no exista
    haya cambiado de nombre o no esté disponible temporalmente.</font></td>
    </tr>
    <tr>
    <td id="tablePropsWidth2" width="400" colspan="2"><font id="LID1"
    style="COLOR: black; FONT: 8pt/11pt verdana"><hr color="#C0C0C0" noshade>
    <p id="LID2">Pruebe lo siguiente:

    <br>

    <h2 id="ietext" style="font:8pt/11pt verdana; color:black">HTTP 404 - Archivo no encontrado<br>
    Internet Explorer <BR>
    </h2>
    </font></td>

    </tr>
    </table>
    </body>
    </html>

    the big question is how i edit the line :
    <body bgcolor="white" onload="initPage()">

    or i don´t know...give me a solucion pls.

  4. moshu
    Member
    Posted 9 years ago #

    1. Sorry, this is not bluehorizon.
    2. I have no idea what those scripts and tables are, so I can't say anything to help.
    3. To edit the bgcolor, change "white" to a hex color code, look around here: http://hotwired.lycos.com/webmonkey/reference/color_codes/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags