/    Sign up×
Community /Pin to ProfileBookmark

Add navbar above banner

Hi, I have a brand new site (sportsinsanity.com) and am trying to edit the layout. I’m trying to add a navbar above the banner on my site, like this site has [url]http://comicbookcritic.net/[/url] (not my site). My friend who’s been helping me with some told me it’s PHP, he doesn’t know PHP and neither do I – so we couldn’t add it. If anyone can help, that be great.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@DariaMay 02.2011 — It's really not a PHP question, but since we are here....

I assume you are using WordPress, so you would need to modify the header in the theme you are using.

Go to wp-content/themes/(whatever theme you are using)/header.php

(save a backup version of the original file first).

[B]Then look for <div id="branding" role="banner"> [/B]

It contains your banner.

And then look for

[B]<div id="access" role="navigation">[/B]

it contains your navbar.

If your theme was setup correctly, you can just swap those two ([COLOR="Red"]NOT JUST THESE LINES, BUT COMPLETE <div TAGS[/COLOR]!!! with everyhing within them).

This should do the trick. If not, then your header has been already modified in some other way, and in a pinch you can revert to your originally saved version until you figure it out. But you should be able to see the logic there...
×

Success!

Help @Ronito spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...