marvd
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Child theme templates don't register.Mostly working! Still some tinkering to do with js, but it’s looking fine. Thanks again.
Forum: Themes and Templates
In reply to: Child theme templates don't register.That did the trick! Mostly. Now I have to adjust the URLs accordingly. Thanks a lot.
I should have realized that since I replaced the header I’d have to call the stylesheet again. But what I still don’t understand is why, then, did it show up in the first place?
Forum: Themes and Templates
In reply to: Child theme templates don't register.First the wp-admin called the theme “broken,” then after reactivating it loads. Now all the markup appears (header, wp posts, footer, sidebar) but it’s completely unstyled.
Interestingly, now all the files show up in the Editor, including the stylesheet. I can even edit the stylesheet, but the front end still doesn’t pick up any styles.
Forum: Themes and Templates
In reply to: Child theme templates don't register.1) The child theme directory is named ‘diad’ and contains
footer.php
functions.php
header.php
sidebar.php
and directories for css, js and images.2) That’s right. As long as they appear on the front end I don’t mind editing them via FTP.
3) Yes. In fact there’s almost no php left besides those wp_query instances mentioned above.
Forum: Themes and Templates
In reply to: Child theme templates don't register.Removed; no effect.
Forum: Themes and Templates
In reply to: Child theme templates don't register.For comparison, here’s my original:
http://www.nomadproductions.tv/delhiinaday-wp/index-superceded.phpMuch of the content is pulled from pages by id, using wp_query calls. But I also wanted to display news posts one at a time with AJAX, and couldn’t get the loop working correctly to do that. That’s why I went the child theme route instead: I’d start with a working loop, and tack on everything else. But the tacking on is proving difficult.
Thanks very much for your help.
Forum: Themes and Templates
In reply to: Child theme templates don't register.Everything. I replaced them with the HTML of the site I was trying to wp-ify, split up at the open/close tags for the #main div. I slapped the commented theme description block on top of each:
<?php
/*
Theme Name: DIAD
Theme URI: http://nomadproductions.tv/delhiinaday-wp/
Description: Child Theme for Twenty Eleven
Author: HNH!digital
Author URI: http://hnhdigital.com/
Template: twentyeleven
Version: 0.1
*/
?>and a wp_head(); above the </head> tag. Anything else I’ve forgotten to do?
Forum: Themes and Templates
In reply to: Child theme templates don't register.Sure, thanks. I was hoping it might be even more basic than that. The site is currently at:
http://nomadproductions.tv/delhiinaday-wp/You’ll see it’s using the standard Twenty Eleven header, footer and sidebar even while it’s using the child theme’s css. Earlier I’d had it working without a theme, by using
<?php
define(‘WP_USE_THEMES’, false);
require(‘./wp-blog-header.php’);
?>at the beginning of my index. The layout looked good and I could insert individual posts, but it’s got a lot of scripts running (parallax scrolling, galleries, etc.) that would work better as plugins. Once it’s all in the header and running, I’ll peel them off.