• Resolved crazygoingslowlyami

    (@crazygoingslowlyami)


    I’m using skeleton theme 1.6. I know there is a new version out,but it doesn’t seem to solve the below issue (and it seems to get rid of my shaded boxes that I prefer in the older version).

    The Issue:
    I have poured all through the skeleton files, and I can’t for the life of me figure out how to get some actual code in the extras area of the header. I’d LIKE to put a google search bar there, but the Extra Header Text area strips out the code. I can’t seem to find where to try and hard code it into any of the files, either.

    I can put text all around my logo, but I can’t seem to get this search box to appear to the right of the logo. Please help? Its driving me insane, lol. Anyone? Sadly, this seems a lot easier of a task in other themes. Once again I’m using the skeleton theme, version 1.6

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m not familiar with the Skeleton theme, but it seems as if you’re trying to use an interface to add the code as opposed to actually modifying the header.php file?

    Theme Author simplethemes

    (@simplethemes)

    It could be the WP sanitization is stripping out the javascript.

    If you could post your a.) parent theme functions.php as a snippet to pastebin.com (or similar) and b.) the code you’re wanting to insert, I may be able to provide you with the action hook so that you can insert this a little more reliably.

    Thread Starter crazygoingslowlyami

    (@crazygoingslowlyami)

    Thanks so much for the replies.

    @noel yes, that is correct. The theme has an interface in the admin area that allows “extras”, however its not working as I’d hoped. I’ve actually tried both that and the header.php file, but I can’t seem to get it to work properly.

    @simplethemes That’d be fantastic! Here’s what you asked for:

    functions.php contents:
    http://pastebin.com/WvDG3zrL

    Code I want to insert:
    http://pastebin.com/P8vZCZtS

    Theme Author simplethemes

    (@simplethemes)

    Can you try placing this at the end of your functions.php file:
    http://pastebin.com/raw.php?i=PYgzYBWr

    function st_header_extras() {
    	$extras = '<div class="alignright"><form action="http://www.google.com" id="cse-search-box">';
    	$extras .= '  <div>';
    	$extras .= '    <input type="hidden" name="cx" value="partner-pub-4485302719237249:8339840292" />';
    	$extras .= '    <input type="hidden" name="ie" value="UTF-8" />';
    	$extras .= '    <input type="text" name="q" size="35" />';
    	$extras .= '    <input type="submit" name="sa" value="Search" />';
    	$extras .= '  </div>';
    	$extras .= '</form></div>';
    	$extras .= '<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>';
    	echo $extras;
    }
    add_action('st_header','st_header_extras', 2);
    Thread Starter crazygoingslowlyami

    (@crazygoingslowlyami)

    Thanks! It placed it in the left part of the area above the navigation. It looks a bit off, though. Is there any way to push it downward a bit closer to the navigation bar? Also, for some reason the search button is off centered from the text area, and I have no idea why that would happen.

    Thanks so much for your continued help!

    Theme Author simplethemes

    (@simplethemes)

    It sounds like a simple CSS fix. If you can share a link I’ll be glad to take a look.

    Theme Author simplethemes

    (@simplethemes)

    Just let me know if I can be of any further help.

    Thread Starter crazygoingslowlyami

    (@crazygoingslowlyami)

    Sorry about the lack of response, simplethemes. I appreciate all your help so far. The site in question is naturalalternativeremedy.com

    Thread Starter crazygoingslowlyami

    (@crazygoingslowlyami)

    I forgot to mention that it also looks even worse on a phone, haha. Thanks again!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Extra Header Area?’ is closed to new replies.