Forum Replies Created

Viewing 15 replies - 46 through 60 (of 62 total)
  • Thread Starter tactics

    (@tactics)

    Sorry for the duplicate reply.

    That worked like a charm thanks a million!

    Thread Starter tactics

    (@tactics)

    Thanks, but unfortunately, it’s the same result. When it renders, I get:

    <link rel="stylesheet" href="<?php get_bloginfo('template_url'); ?>/css/default.css" media="Screen" type="text/css" />

    Perhaps it would help if I posted the whole block:

    <?php
    // BEGIN STYLESWITCHER CODE
    if(!isset($reqPath)){ $reqPath = ""; }
    require_once($reqPath ."inc/styleswitcher.php");
    $ss = new Styleswitcher();
    $ss->addStyle("default", "https://www.mysite.com/blog/wp-content/themes/Access/css/default.css", "Screen");
    $ss->addStyle("hc", "https://www.mysite.com/blog/wp-content/themes/Access/css/hc.css", "Screen");
    $ss->createSet("style");
    $ss->addStyleToSet("style", "default", true);
    $ss->addStyleToSet("style", "hc");
    $ss->cookieDomain = ".". $_SERVER['HTTP_HOST'];
    $ss->cookieName = "cwStyle";
    $ss->printStyles();
    // End Styleswitcher code
    ?>
    Thread Starter tactics

    (@tactics)

    Thanks, but unfortunately, it’s the same result. When it renders, I get:

    <link rel="stylesheet" href="<?php get_bloginfo('template_url'); ?>/css/default.css" media="Screen" type="text/css" />

    Perhaps it would help if I posted the whole block:

    <?php
    // BEGIN STYLESWITCHER CODE
    if(!isset($reqPath)){ $reqPath = ""; }
    require_once($reqPath ."inc/styleswitcher.php");
    $ss = new Styleswitcher();
    $ss->addStyle("default", "https://www.mysite.com/blog/wp-content/themes/Access/css/default.css", "Screen");
    $ss->addStyle("hc", "https://www.mysite.com/blog/wp-content/themes/Access/css/hc.css", "Screen");
    $ss->createSet("style");
    $ss->addStyleToSet("style", "default", true);
    $ss->addStyleToSet("style", "hc");
    $ss->cookieDomain = ".". $_SERVER['HTTP_HOST'];
    $ss->cookieName = "cwStyle";
    $ss->printStyles();
    // End Styleswitcher code
    ?>
    Thread Starter tactics

    (@tactics)

    Bueller? Anyone?

    Thread Starter tactics

    (@tactics)

    OK, this is really bizarre… all of the sudden, the links are now working. Some kind of strange delay when updating them. So never mind.

    Thread Starter tactics

    (@tactics)

    Oh, and not that you’ll be able to tell anything from looking at it, but here’s the link to the actual site:

    https://www.silverfreaks.com/

    Thread Starter tactics

    (@tactics)

    Kickass, thanks. Don’t know why I couldn’t find that anywhere, or why someone bothered to create a special plugin if it’s that simple.

    Thread Starter tactics

    (@tactics)

    Oh, and I figured I should say this premptively: Yes, I turned off the rich text editor and correct invalid xhtml options. it had no effect. WP is still adding break tags where I don’t want them, and changing my ampersand signs.

    I read the thread about wp inserting extra paragraph tags and someone suggested the “Disable autop” plugin. Will that plugin solve my problems as well?

    I’m confused. I looked at both of the pages you referenced above and they look exactly the same to me.

    Thread Starter tactics

    (@tactics)

    OK, never mind. Apparently, it doesn’t actually *change* the links. It just makes it so that you can pull them up with either the page name, or the page id.

    The problem I have now is that my style sheets aren’t working anymore. I read the bit in the support topic about this and it suggested adding some numeric data. So I changed my rewrite rules to:

    /%year%/%page_id%/

    But the pages still come up like this

    Thread Starter tactics

    (@tactics)

    The category looks exactly how I want it. So I don’t need to modify that.

    What I need is for the news page to be an exact replicate of the news category. The reason for this is that I need the news items to appear on a sub-page of my “news and events” page, so the link to it will be output in my sidebar’s page navigation. Does that make sense?

    tactics

    (@tactics)

    OK, the code I posted was just a sample. It needs to be edited to fit your particular template.

    “#header” needs to be changed to whatever the name of the div is in your particular template that contains the background image you want to change.

    “my_image.jpg” needs to be changed to the url of the image you want to appear in that div.

    If this is completely greek to you, then it’s a bit beyond the level of support any of us can provide in a forum. Do a Google search for “CSS tutorials”

    tactics

    (@tactics)

    Yep, you’re missing something ??

    Right click the “.phps” link under “downloads” on the following page and save it

    https://wp.uberdose.com/2007/03/23/another-wordpress-meta-plugin-192/

    Thread Starter tactics

    (@tactics)

    Just wanted to add to this post. I didn’t like the response I got, so I set out to find a better solution.

    Thanks to a collaboration between Dirk and myself, there’s no need to use conditional statements to accomplish this.

    Download and install this plugin

    Once it’s installed you can specify a style for each individual page that will over-ride the style in the stylesheet. Let’s say your template has div containing a background image you want to change on a specific page. Let’s say it’s called “#header”.

    Go to the page you want to edit in the wp admin and in the “custom tag” field, enter something like this:

    <style type=”text/css” media=”Screen”>#header { background-image: url(my_image.jpg); }</style>

    That’ll do it.

    tactics

    (@tactics)

    Until a couple days ago, this was a pain in the ass. Now thanks to a collaboration between Dirk and myself, it’s easy as pie.

    Download and install this plugin

    Once it’s installed you can specify a style for each individual page that will over-ride the style in the stylesheet. I’m not familiar with the template your using, but it probably has div containing the image you want to change. Let’s say it’s called “#header”.

    Go to the page you want to edit in the wp admin and in the “custom tag” field, enter something like this:

    <style type=”text/css” media=”Screen”>#header { background-image: url(my_image.jpg); }</style>

    That’ll do it.

Viewing 15 replies - 46 through 60 (of 62 total)