converting2wp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: footer text colorPS: If you install the Firebug extension in Firefox, then you can right click on a part of the page of interest, and it will show you the CSS that affects that element.
Forum: Fixing WordPress
In reply to: footer text colorThe CSS affecting those links comes from style.css
Line 197ff:
a, h2 a:hover, h3 a:hover {
color:#0066CC;
text-decoration:none;
}Line 317ff:
#footer p {
text-align:center;
}Adding a section
#footer a {
color:#FFFFFF;
}will change the colors of the links to white. Use some other code for another color.
Forum: Fixing WordPress
In reply to: PHP variable persistence/scope between template filesThanks. I’ve tried that but I must be doing something wrong.
Let me give it another whack…
Forum: Fixing WordPress
In reply to: Home page problemsIt’s possible to create a WordPress page and then have that be the “home page” for your site.
From http://codex.ww.wp.xz.cn/Pages#Using_a_Page_as_the_Front_Page :
Using a Page as the Front Page
A Page can easily be set to be your site’s Front Page. Visit the Administration > Settings > Reading panel and under Front page displays, you can choose to set any (published) Page or Posts Page as the Front Page.
You then create *another* page and set that to be the one where your blog posts will appear.
Forum: Fixing WordPress
In reply to: Form handling with WordPress – How to?Here’s the path I’m going down for now. If anyone has a better suggestion, I’d be glad to hear about it:
Set up the $posted_data array
$myformdata=serialize($posted_data); setcookie ('myformdata',$myformdata,0,'/',$_SERVER['HTTP_HOST'],false,true);Then to retrieve the data
$posted_data=unserialize(stripslashes($_COOKIE['myformdata']));@kevcpu: Going back to how to differentiate two forms
$cf7->posted_data doesn’t include the form ID, but it IS available as $cf7->id (duh!) and you may also find $cf7->title useful.
-N [who thought her debugging days were really far behind her … ;-)]
The echo may be in a context where it may not make sense (no page is actually being constructed) and/or there’s a syntax error.
In trying to make progress here (where, I too, didn’t have any info from the server logs), I found this post that discussed how to use the WordPress logging:
http://fuelyourcoding.com/simple-debugging-with-wordpress
and I found the info logged there pointed me in the right direction. It’s particularly helpful when something is keeping the page from being displayed — as you describe.
Forum: Fixing WordPress
In reply to: PHP variable persistence/scope between template filesDoes anyone have a comment here?
Is it possible to use a plugin to have pages “share” data? Or is there a better solution?
Any pointers to docs? or an example?
Forum: Fixing WordPress
In reply to: Formatting Post Title in Constructor ThemeThanks for sharing your link (and the cake looks awesome!).
This line in your second block
padding:10px 12px;
says you want 10px padding on the top and bottom, and 12px on the left and right.
If you change it to
padding:10px 12px 0px 0px;
it will move the line to the left to line up with the date and may bring the lines together slightly.
Your date is styled as h4 with
h4 {
font-size:1.4em;
margin:8px 0;
}If you decrease the 8px, it’ll bring the two lines closer together.
I hope I’ve understood your question.
Forum: Fixing WordPress
In reply to: Pass address line variables to my pageIs there any way to register a user variable as a global (and so be able to access it from other pages WITHOUT passing it on the query string)?
Okay, that didn’t work.
I needed to use
if (isset($cf7->posted_data[“some-field-unique-to-the-form”]) {
… do stuff…
}Forum: Plugins
In reply to: [Plugin: Contact Form 7] Form appears center alignedThe CF7 css file includes:
.buttonSubmit {
float:right;
}
input, textarea {
background-color:#F1EDBF;
color:#00833B;
}So if you add “.buttonSubmit” info to your CSS file, that should help.
I haven’t really tested this, but it looks as if there’s a hidden value passed along with the other form data that is the number of the form. You could access it as
$formid = $cf7->posted_data[“_wpcf7”];
and then base the action of function on the value of that $formid variable.
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Form appears center alignedIn your style.css, line 628, you’ve got a
.entry form {
text-align:center;
}that seems to be dominating the “text-align: left;”. Do you need it for other forms?
In contactform7.com’s “tip” section, there’s this article:
http://contactform7.com/2009/11/21/custom-layout-for-checkboxes-and-radio-buttons/
that has the CSS to put the radio buttons in a column.
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Pipes not working for checkboxes in v2.2I just spent an hour on this. My problem turned out to be an apostrophe in the label. When I changed
“No. Don’t publish my cell phone number in the Directory.|No”
to
“No. Do not publish my cell phone number in the Directory.|No”
it started working like a champ.
This may not be your problem, but I hope it saves someone else some time.