CodeBotics
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hatch] Mainmenu marks submenu choiceI haven’t properly tested this, but I think you might be able to do this with just CSS. It would probably be better to do it by moving the search box HTML, but it’s easier to just add some CSS!
Try adding this to your style.css:
#header > div > form#searchform { position: absolute; right: 0; top: 100px; }Forum: Themes and Templates
In reply to: [Hatch] Mainmenu marks submenu choiceHi,
1) Assuming you have created a child theme, you need to add the following to your child themes style.css:
.current-menu-parent a { color: #990000; }2) I’m not 100% sure exactly where you want it, could you post a screenshot showing me? Also, it looks quite good with the search where it is at the moment!
CodeBotics
Edit: your theme’s active colour is #990000, not #990
Forum: Themes and Templates
In reply to: Query two custom posts and two custom taxonomiesImportant Note: tax_query takes an array of tax query arguments arrays (it takes an array of arrays) – you can see this in the second example below.
http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
Forum: Themes and Templates
In reply to: jquery-1.6.3.min.js was not foundAre you sure you haven’t been hacked? jquerye.com is not a jQuery repository. In fact, when I try to go there it shows my localhost. I don’t have a clue why, but I don’t think that’s good news!
Forum: Themes and Templates
In reply to: Perplexing padding problemForgot to mark as resolved!
Forum: Themes and Templates
In reply to: Perplexing padding problemProblem turned out to be caused by <div class=”navigation”>, which had 0px height so I hadn’t noticed it!
Thanks for your help.
Forum: Themes and Templates
In reply to: Perplexing padding problemYep, completely valid both HTML and CSS and no PHP warnings or notices.
Forum: Themes and Templates
In reply to: beginning themer. framework vs traditional buildI personally learnt by making themes from scratch without a framework, which meant spending a lot of time in the codex but meant I learnt a lot along the way. The chances are your first theme won’t be great, but you can learn a lot from what went wrong the first time and so on. To make sure you’re doing everything properly, I think it’s worth installing plugins such as theme-check and turning WP_Debug on from the very beginning.
I’ve made quite a few themes now, and have just started working on building my own framework that I will know inside out. This will mean I can expedite the whole theme creation process somewhat, without having to rely on someone else’s code. In other words, I will have the best of both worlds!
Forum: Themes and Templates
In reply to: Can Header.php be used elsewhere on a site?This code:
$currentdir = dirname('content/wp-content/themes');
will just return ‘content/wp-content’ as far as I know. Note the single quotation marks I’ve added.Could you explain your folder structure to me? The way I understand it is this:
root directory -> content -> wp-content -> themes -> twentytwelveIn which case, did you try using the code I posted earlier without changing anything?
<?php $currentdir = getcwd(); include($currentdir.'/content/wp-content/themes/themename/header.php'); ?>CB
Forum: Themes and Templates
In reply to: Can Header.php be used elsewhere on a site?This works for getting header.php from another theme on the same site:
<?php $currentdir = dirname(__FILE__); include($currentdir.'/../themename/header.php'); ?>To get it from a different site, assuming the files for the site at URL http://www.blog.com/content are in a directory called content you’d need to use something like:
<?php $currentdir = getcwd(); include($currentdir.'/content/wp-content/themes/themename/header.php'); ?>I haven’t tested the second one, but the first one definitely works!
CB
Forum: Themes and Templates
In reply to: Can Header.php be used elsewhere on a site?I think for what you’re trying to do, you’ll need include(‘path/to/header.php’).
Fore example:
<?php include('/content/wp-content/themes/themename/header.php') ?>Forum: Themes and Templates
In reply to: install new themsIt’s much easier to install it as a Zip, can you not compress the folder into a zip on your computer?
Forum: Your WordPress
In reply to: My first client websiteAn embedded Google Map centred on the businesses address would look great on the right hand side of the contact page, other than that I think it’s very good and professional!
Forum: Your WordPress
In reply to: Review my Site/ThemeFixed that issue now, thank you. I haven’t yet fixed the IE7 issue however.
Forum: Your WordPress
In reply to: Review my Site/ThemeI agree, it is important. And yep, new theme.
Do you think it’s worth trying to fix the IE7 issue? Surely a line has to be draw somewhere with IE, but where?
Thanks for pointing that out, there’s a little scrolling in Chrome as well, but nowhere near as much as in FF. I’ll look into fixing that shortly.
The PHP files are licensed under GPL, as required. Everything else will be licensed under a single use license.
Thanks for your comments.