WordPress.org

Ready to get started?Download WordPress

Forums

Typograph XHTML error assistance (5 posts)

  1. awrosey
    Member
    Posted 5 years ago #

    Morten:

    I hope you are out there and can help. I love your theme, you are to be commended for the exceptional work. I am however getting two errors when I attempt to validate the XHMTL. They both have to do with the use of the duplicate input id's for the two search boxes (Tab Box and Side Bar). My url is below. Any direction you can provide is appreciated.

    Alan

    http://petpundit.com

  2. krembo99
    Member
    Posted 5 years ago #

    well.. As much as the theme is nice,The Author's page itself does not validate..
    You have actually two duplicated search forms, one in the sidebar and one in the tabbed thingie.
    one is this :

    <div id="content_5" class="content">
                 		<form id="searchBox" method="get" action="http://petpundit.com">
    						<div>
    							<input id="s" name="s" type="text" value="" size="44" tabindex="8" />
    							<input id="searchsubmit" name="searchsubmit" type="submit" value="Find" tabindex="9" />
    						</div>
    					</form>
    			         </div>

    and the other one here :

    <li id="search">
    				<h3><label for="s">Search</label></h3>
    				<form id="searchform" method="get" action="http://petpundit.com">
    
    					<div>
    						<input id="s" name="s" type="text" value="" size="10" tabindex="10" />
    						<input id="searchsubmit" name="searchsubmit" type="submit" value="Find" tabindex="11" />
    					</div>
    				</form>
    			</li>

    That creates duplicates.
    So either Try to remove the sidebar one (second) , or change the ID to Class in css.

  3. awrosey
    Member
    Posted 5 years ago #

    @Krembro99

    Thanks for the reply. I am aware that the problem is occurring because of the duplicated search boxes. I can get rid of the error by removing one of them (I would remove the one in the tabbed box myself), but I was wondering if there was something I could do in the html or css to resolve the conflict while maintaining both search boxes.

    Unfortunately, I don't know enough about either (html or css) to correct this myself. While I have been able to tailor the theme to my liking via trial and error in the style sheet, this alteration is beyond my abilities. You know the saying ... A little knowledge is a dangerous thing... ;)

    Any assitance is appreciated.

    Alan

  4. krembo99
    Member
    Posted 5 years ago #

    like I said above, you can change the ID to class in the css
    #searchBox input#s
    to
    .searchBox input.s
    changing also the xhtml from ID="s" to Class="s"

    but I don't know how it will effect the rest of your theme, or you can duplicate the Searchbox class, naming one of them Searchbox1 and the other searchbox2 and changing also that in the xhtml

  5. Morten Rand-Hendriksen
    Member
    Posted 5 years ago #

    @awrosey: When I designed the theme I intended for the search area in the box to replace the search widget in the sidebar. No need for two search boxes, right? If you want to keep both the search area in the drop-down box and in the sidebar you have to make the change suggested by krembo99. If you want it in the sidebar as a widget but not in the drop-down box you can edit it out from the dedicated drop-down php file. It was all set up to give people as many options as possible.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags