Forum Replies Created

Viewing 15 replies - 166 through 180 (of 196 total)
  • Thread Starter deko

    (@deko)

    I put an external link in the Codex article as you suggested. Thanks for the tip.

    Thread Starter deko

    (@deko)

    So if I wanted to redefine <p> in my stylesheet, I would NOT have to do this in the wp-html post box:

    <div class="grey-text">
    <p>text goes here</p>
    <p>text goes here</p>
    <div>

    but rather, simply:

    <div class="grey-text">
    text goes here

    text goes here
    </div>

    Is this correct?

    The style sheet might look something like this:

    .grey-text {
    color:#999999;
    text-indent:-12px;
    margin-left:12px;
    }

    .grey-text p {
    margin:0;
    padding:0;
    }

    Aside from <p>, <br>, single and double quotes, is there anything else that the wp-html editor converts automatically?

    Thanks.

    Thread Starter deko

    (@deko)

    The seem to ropopulate themselves. Anyone know how to kill them for good?

    Thread Starter deko

    (@deko)

    If I don’t care to see them on my dashboard (I don’t), then I assume can ax them…

    (‘chop’)

    Thread Starter deko

    (@deko)

    Thanks! That helped.

    Thread Starter deko

    (@deko)

    Yes, but the probelm is WP is not letting me change this – when I click ‘Update Options’ button on optioins-general.php I get redirected to the login page of the old server. What is causing this redirect? How to disable?

    Thread Starter deko

    (@deko)

    Yes, I suppose i could try that. But I will, eventually, figure out how to disable that ‘send referer’ bug. I think it has something to do with admin.php. There is not a lot of WP documentation on this.

    Thread Starter deko

    (@deko)

    Thanks for the reply.

    So, to get around the issue of the PHP code having an if-else statement to decide which #page background to use (differnt for single), I assume you would modify the single.php file and update all the div tags to use the appropriate style directives? Is this correct?

    Thread Starter deko

    (@deko)

    Yes, after some research, that is my guess as well.

    But, every time I click “Update Options” after changing the URI, I get this:

    Sorry, you need to enable sending referrers for this feature to work.

    and the change does not stick.

    There must be some way to temporarily disable this ‘sending referer’ security feature in WP so I can fix this.

    Any ideas?

    This may be a bit OT, but in regard to backups:

    I noticed a couple of large fields in the table wp_options when backing up – the field names look like this:

    rss_0ff4b43bd116a9d....

    Looks like content for the Dashboard or something.

    How can I prevent this data from sneaking into my wp-options table?

    How do I delete it?

    Thanks in advance.

    Thread Starter deko

    (@deko)

    But – I am using the default theme – one would think this would pass…

    Thread Starter deko

    (@deko)

    So, apparently, it doesn’t matter. I suppose if I want my blog to be read by machines it would help to have valid xhtml. But I see little advantage in that…

    I had this same problem. In a word, it’s cache.

    Try adding this line to your wp-config file:

    define('DISABLE_CACHE', true);

    This line, IMHO, should be there by default, prefaced with the following comment:

    When cache is ENABLED, updates to theme source files are not immediately displayed. This can result in errors, frustration and confusion while attempting to customizing a theme. Keep cache DISABLED until you are finished any customization work. To ENABLE cache, comment out this line.

    Thread Starter deko

    (@deko)

    Please correct me if I’m wrong, but it appears that I cannot remove ALL embedded styling from header.php.

    WP version = 2.0.2; Theme = default

    Here’s what I WAS able to remove from header.php (consolidated into the main stylesheet, style.css).

    #body { background: ...
    #header { background: ...
    #footer { background: ...

    This was accomplished by moving the images and updating stylesheet.

    Here’s what remains (the entire file):

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <style type="text/css" media="screen">
    <?php if ((! $withcomments) && (! is_single())) { ?>
    #page { background: url("/images/kubrickbg.jpg") repeat-y top; border: none; }
    <?php } else { ?>
    #page { background: url("/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>
    #header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
    #headerimg { margin: -10px 9px 0; height: 192px; width: 740px; }
    </style>

    <?php wp_head(); ?>
    </head>
    <body>
    <div id="page">

    <div id="header">
    <div id="headerimg">
    <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>
    <hr />

    As you can see, the #page, #header and #headerimg directives remain.

    The PHP code has an if-else statement to decide which #page background to use (differnt for single). So I assume there is no way to move this to the stylesheet.

    But what about #header and #headerimg?

    Can safely move these to the stylesheet? What’s with the “!important” directive? Will I need this in the stylesheet?

    Thanks.

    Thread Starter deko

    (@deko)

    There is another stylesheet in the wp-admin directory:

    wp-admin.css

    What is this used for? Is it necessary? Can this be consolidated in the content stylesheet?

    thx…

Viewing 15 replies - 166 through 180 (of 196 total)