Andy
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Hardly any options in Edit Page mode?Not that I can see. Under settings/discussion, there’s a tick box and it even says:
[] Allow people to post comments on new articles
(These settings may be overridden for individual articles.)But there are no options to override in individual articles. Just empty space under the text edit window… ??
Forum: Your WordPress
In reply to: Lifestyle Coach site – got their in the end.Thanks ??
Oh don’t worry, the CSS did mess with my head.
Forum: Themes and Templates
In reply to: 'is_page' doesn't work for the blog section?Ah, he’s good.
! is_page()
That did it. The is_archive didn’t work so well.
Thanks a bunch.
Forum: Themes and Templates
In reply to: 'is_page' doesn't work for the blog section?Ooops. Spoke to soon.
It works for the blog home page but not for the rest of the blog.
I think you might have mentioned this but I’m not 100% sure on what you mean?
Forum: Themes and Templates
In reply to: 'is_page' doesn't work for the blog section?Brilliant, that worked first time.
Thanks a lot.
Forum: Fixing WordPress
In reply to: Adding custom PHP to WP pagesTook me a while to get around to trying this but thanks, it works a treat ??
Forum: Fixing WordPress
In reply to: In a bit of a CSS pickle, help!… never mind. I miss clicked something and lost 4 hours work, so have to start again.
close thread.
Forum: Fixing WordPress
In reply to: Adding custom PHP to WP pagesOk, i got the is_page to work. Those links were most useful.
But I just need a further tip in how to do something…
I want it to say:
<?php if (is_page('About 3C')) { <div>Display this particular div</div> } else { <div>Display that particular div</div> } ?>
At the moment, it throws out a php error. I used to be able to do this in coldfusion, anything after the if statement would just display/continue the html code, so we’d see the resultant div tags.
Forum: Fixing WordPress
In reply to: Adding custom PHP to WP pagesThat’s great. I’ll look into that and get back.
Many thanks!
Forum: Fixing WordPress
In reply to: Adding custom PHP to WP pagesActually i think it’s my bad.
I thought that the pages had a ‘page-id’ variable. But i just did this and it came out negative:
<?php if (defined('page-id')) { echo "x"; } else { echo "y"; } ?>
So… is there a way to check if we’re on a certain page?
Forum: Fixing WordPress
In reply to: Adding custom PHP to WP pagesActually, it may be my php. I’m rusty with php.
Here it is:
<?php if (page-id=="20") { <div id="homelinks"> Bla bla, div content goes here... </div> } else { echo ""; } ?>
I’m trying to establish ‘if’ you’re on the home page then display this div, otherwise do nothing. I noticed that pages have an id and that the home page is 20. So this is my guess… ?
Forum: Themes and Templates
In reply to: WordPress upgrade overwrites my custom theme‘fraid so.
That’s exactly the case.
Forum: Themes and Templates
In reply to: WordPress upgrade overwrites my custom themeNice,
I upgraded and now my site looks like this:
Is this going to be the situation every time i upgrade??
Forum: Themes and Templates
In reply to: WordPress upgrade overwrites my custom themeRight. Think i’m there now.
Confusion was this:
I tried before to simply duplicate my twentyten folder and rename it then attempt to select it in the ‘choose theme’ section. But the thumbnail and description of the duplicate obviously hadn’t changed. It looked like absolutely nothing had happened. I thought the thumbnail preview was dynamic see.
So i found the ‘screenshot.png’ plus the info at the top of the style.css file and customized that. NOW when i select a theme you can see the difference.
Time to try the update and hope it works.
Forum: Themes and Templates
In reply to: WordPress upgrade overwrites my custom themeRight. Getting frustrating here, been trying this all night.
I have one folder in my themes called ‘twentyten’.
I rename it and my site disappears. Kinda makes sense.
the word ‘twentyten’ appears a LOT in my wp theme files/css. Is there just one or MANY instances where i have to rename references to ‘twentyten’ to my new theme name?
I can’t find where it is i have to change the code so it’s no longer looking for ‘twentyten’ and is instead looking for whatever i rename my theme folder to.
cheers