Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mitchkumstein

    (@mitchkumstein)

    Sorry. Here it is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    
    <head profile="https://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    	<meta name="keywords" content="LEMONed, iLEMONed, WordPress, Themes, CSS, Design" />
    	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    	<style type="text/css" media="screen">
    		@import url( <?php bloginfo('stylesheet_url'); ?> );
    	</style>
    
    	<!-- Sweet Title -->
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/addEvent.js"></script>
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/sweetTitles.js"></script>
    
    	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    	<?php wp_get_archives('type=monthly&format=link'); ?>
    	<?php wp_head(); ?>
    </head>
    
    <body>
    <div id="wrapper">
    
    <div id="header">
    	<ul class="menu">
    		<li class="<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    			<a href="<?php echo get_settings('home'); ?>"><?php _e('Home'); ?></a>
    		</li>
    		<?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>
    		<?php wp_register('<li>','</li>'); ?>
    	</ul>
    	<h1><a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
    
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    <!-- End of #header -->
    
    <div id="content">

    Aha, solved the mystery. Root, you confused me with the original poster – I have no language giving the searchbox an ID of #s; instead of #s I needed to use #searchform. Thanks!

    Hmm, doesn’t seem to be working. See below for the text for the sidebar and searchbox in the “layout” section of the CSS:

    #sidebar {
    float: right;
    margin: 0 14px 0 5px;
    padding: 10px 0 20px 0;
    width: 212px;
    border: 2px solid #8ac60e;
    border-right: 5px solid #8ac60e;
    border-bottom: 4px solid #8ac60e;
    background: #f7ffe4 url(images/sidebarbg.gif) repeat;
    display: inline;
    overflow: hidden;
    }
    #s {margin-left: 5px}

    Any other ideas? I did a ctrl + refresh to make sure my browser wasn’t loading a cached version of the site.

    Thanks. Just to clarify, as I am _very much_ a novice here, you are saying that:

    a) the change should be in the stylesheet, not the searchform.php

    b) the relevant formating is for the sidebar (“#s” = “#sidebar”), not the search box

    One additional note: in the CSS the #sidebar includes “margin: 0 14px 0 5px;” and the text in the sidebar does seem to be 5 px off the margin of the sidebar, as opposed to the search bar, which is flush with the margin.

    So, can you confirm a) that the line you indicated is correct, and b) where it should be placed? Thanks!

    I have a similar question. I am a WordPress novice trying to center the search bar in my sidebar (it is currently left justified). https://mitchkumstein.com

    The code in my searchform.php file is:

    <form method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
    <p>
    <input type=”text” value=”<?php echo wp_specialchars($s, 1); ?>” name=”s” id=”s” /> 
    <input class=”button” type=”submit” value=”<?php _e(‘Search’); ?>” />
    </p>
    </form>

    Can anyone suggest code that would align it properly, and where I should insert the code? Thanks!

    Thanks!

    What’s a simpler to modify theme that has some similar layout characteristics that you would recommend?

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