Title: CodeBotics's Replies | WordPress.org

---

# CodeBotics

  [  ](https://wordpress.org/support/users/codebotics/)

 *   [Profile](https://wordpress.org/support/users/codebotics/)
 *   [Topics Started](https://wordpress.org/support/users/codebotics/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codebotics/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codebotics/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codebotics/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codebotics/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codebotics/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 68 total)

1 [2](https://wordpress.org/support/users/codebotics/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codebotics/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/codebotics/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/codebotics/replies/page/5/?output_format=md)
[→](https://wordpress.org/support/users/codebotics/replies/page/2/?output_format=md)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Hatch] Mainmenu marks submenu choice](https://wordpress.org/support/topic/mainmenu-marks-submenu-choice/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years ago](https://wordpress.org/support/topic/mainmenu-marks-submenu-choice/#post-3556321)
 * I 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Hatch] Mainmenu marks submenu choice](https://wordpress.org/support/topic/mainmenu-marks-submenu-choice/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years ago](https://wordpress.org/support/topic/mainmenu-marks-submenu-choice/#post-3556165)
 * Hi,
 * 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Query two custom posts and two custom taxonomies](https://wordpress.org/support/topic/query-two-custom-posts-and-two-custom-taxonomies/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/query-two-custom-posts-and-two-custom-taxonomies/#post-3390465)
 * > Important 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](http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [jquery-1.6.3.min.js was not found](https://wordpress.org/support/topic/jquery-163minjs-was-not-found/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/jquery-163minjs-was-not-found/#post-3388742)
 * Are 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Perplexing padding problem](https://wordpress.org/support/topic/perplexing-padding-problem/)
 *  Thread Starter [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/perplexing-padding-problem/#post-3390437)
 * Forgot to mark as resolved!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Perplexing padding problem](https://wordpress.org/support/topic/perplexing-padding-problem/)
 *  Thread Starter [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/perplexing-padding-problem/#post-3390436)
 * Problem 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Perplexing padding problem](https://wordpress.org/support/topic/perplexing-padding-problem/)
 *  Thread Starter [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/perplexing-padding-problem/#post-3390430)
 * Yep, completely valid both HTML and CSS and no PHP warnings or notices.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [beginning themer. framework vs traditional build](https://wordpress.org/support/topic/beginning-themer-framework-vs-traditional-build/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/beginning-themer-framework-vs-traditional-build/#post-3389928)
 * I 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Can Header.php be used elsewhere on a site?](https://wordpress.org/support/topic/can-headerphp-be-used-elsewhere-on-a-site/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/can-headerphp-be-used-elsewhere-on-a-site/#post-3242362)
 * 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 -> twentytwelve
 * In 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Can Header.php be used elsewhere on a site?](https://wordpress.org/support/topic/can-headerphp-be-used-elsewhere-on-a-site/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/can-headerphp-be-used-elsewhere-on-a-site/#post-3242356)
 * 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](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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Can Header.php be used elsewhere on a site?](https://wordpress.org/support/topic/can-headerphp-be-used-elsewhere-on-a-site/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/can-headerphp-be-used-elsewhere-on-a-site/#post-3242353)
 * 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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [install new thems](https://wordpress.org/support/topic/install-new-thems/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/install-new-thems/#post-3166040)
 * It’s much easier to install it as a Zip, can you not compress the folder into
   a zip on your computer?
 *   Forum: [Your WordPress](https://wordpress.org/support/forum/your-wordpress/)
   
   In reply to: [My first client website](https://wordpress.org/support/topic/my-first-client-website-how-much-to-charge/)
 *  [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/my-first-client-website-how-much-to-charge/#post-3141067)
 * An 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](https://wordpress.org/support/forum/your-wordpress/)
   
   In reply to: [Review my Site/Theme](https://wordpress.org/support/topic/review-my-sitetheme/)
 *  Thread Starter [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/review-my-sitetheme/page/2/#post-3134502)
 * Fixed that issue now, thank you. I haven’t yet fixed the IE7 issue however.
 *   Forum: [Your WordPress](https://wordpress.org/support/forum/your-wordpress/)
   
   In reply to: [Review my Site/Theme](https://wordpress.org/support/topic/review-my-sitetheme/)
 *  Thread Starter [CodeBotics](https://wordpress.org/support/users/codebotics/)
 * (@codebotics)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/review-my-sitetheme/#post-3134501)
 * I 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.

Viewing 15 replies - 1 through 15 (of 68 total)

1 [2](https://wordpress.org/support/users/codebotics/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codebotics/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/codebotics/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/codebotics/replies/page/5/?output_format=md)
[→](https://wordpress.org/support/users/codebotics/replies/page/2/?output_format=md)