Safari Bug? Or coding error…
-
Hello,
I’ve recently revisited one of my sites, to find that the menu has developed a personality disorder on Safari (fine on Firefox). See http://www.funraiser.co
The first item on the Nav strip is positioned awkwardly (south of where it should be). If I remove the ‘home’ page (NEWS) from the nav bar coding, the pages fill in the space. The first Page listed, in this instance, has the same problem.
Attempts to find a problem have failed – the navigation.strip.php appears to be in order, and I haven’t changed the CSS. The same adapted theme code was working fine on another site – until I added a logo code to the header.php file.
Any ideas? Safari has been updated – but it seems more likely to be a code error that I’ve overlooked.
QUOTING navigation.strip.php below:
<ul class=”nav fix”>
- /” title=”Recent News”>News<span></span>
<li class=”last”><?php wp_list_pages(‘title_li=&sort_column=post_title’ ) ?>
<li id=”searchBar1″ class=”searchField”>
<div>Quoting Header.PHP
<div id=”masthead”>
” title=”<?php bloginfo(‘name’); ?>” class=”logo”><img alt=”<?php bloginfo(‘name’); ?>” src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/funraiser_logo.jpg” />
</div>
-
Looks like you have 2 a tags inside the first li tag:
<li> <a href="http://funraiser.co" title="Fun Raiser: The Harvard Trade-up Challenge" class="logo"></a> <a href="http://funraiser.co/" title="Recent News">News<br><span></span></a> </li>
Hi vtxyzzy
that is what it looks like, but I can’t see the root cause. Where do you think the corrupted code is hiding? I have checked the header and nav php files again, without spotting anything unusual, such as extra list tags.
Header Code: http://pastebin.com/pW5FeWqY
Navigation Code: http://pastebin.com/nZb77CHn
In Navigation.strip.php, I see this code:
<li><a href="<?php echo get_settings('home'); ?>/" title="Recent News">News</a></li>
What is in get_settings(‘home’)?
Sorry, I don’t understand your question. Can you explain what you mean, and how to amend the code please? I changed it recently to the following (no success).
Thanks.
<ul class="nav fix"> <li><a>" title="Recent News">News</a></li> <li class="last"><?php wp_list_pages('title_li=&sort_column=post_title' ) ?> <li id="searchBar1" class="searchField"> <div>
[Please post code snippets between backticks or use the code button.]
Something is inserting this code:
<a class="logo" title="Fun Raiser: The Harvard Trade-up Challenge" href="http://funraiser.co"> </a>
in multiple places. I thought it might be in the call to get_settings() somehow. You need to look at plugins or theme options that deal with a logo.
Tried deactivating all the Plugins, but no luck there. Deleted many plugins too.
The problem only arose when editing the header.php to include a logo. Previously, the theme inserted the site title in H1 tags.
Sorry, I can’t think of anything else to try.
Got it! Te header.php was missing a closing
></a>
on the logo/homepage link code.Thanks for your help vtxyzzy – much appreciated.
- The topic ‘Safari Bug? Or coding error…’ is closed to new replies.