tactics
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Writing a relative path to a theme’s stylesheetSorry for the duplicate reply.
That worked like a charm thanks a million!
Forum: Themes and Templates
In reply to: Writing a relative path to a theme’s stylesheetThanks, 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 ?>
Forum: Themes and Templates
In reply to: Writing a relative path to a theme’s stylesheetThanks, 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 ?>
Forum: Plugins
In reply to: Problem with conditional posts navigationBueller? Anyone?
Forum: Fixing WordPress
In reply to: Page slugs not working on 2.5.1OK, this is really bizarre… all of the sudden, the links are now working. Some kind of strange delay when updating them. So never mind.
Forum: Fixing WordPress
In reply to: Page slugs not working on 2.5.1Oh, and not that you’ll be able to tell anything from looking at it, but here’s the link to the actual site:
Forum: Plugins
In reply to: Can’t get last modified date to appear on pagesKickass, 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.
Forum: Fixing WordPress
In reply to: Disable wysiwg in WP?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?
Forum: Fixing WordPress
In reply to: Unwanted Line Break in RSS FeedI’m confused. I looked at both of the pages you referenced above and they look exactly the same to me.
Forum: Fixing WordPress
In reply to: Permalinks and page namesOK, 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
Forum: Themes and Templates
In reply to: Posting excerpts of a specific category’s posts on a pageThe 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?
Forum: Themes and Templates
In reply to: Mandigo – Having different header images on different pagesOK, 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”
Forum: Themes and Templates
In reply to: Mandigo – Having different header images on different pagesYep, 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/
Forum: Fixing WordPress
In reply to: Plugin for inserting css tags into the header?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.
Forum: Themes and Templates
In reply to: Mandigo – Having different header images on different pagesUntil 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.