Skip to:
Content
Pages
Categories
Search
Top
Bottom

Menu location help

  • Avatar of Kristen
    Kristen
    Participant

    @khull808

    I have created my menu, and moved it down from the top of the page. However it will not move horizontally. Also, when signed out, the Log In and Sign Up links do not show on the menu bar. If I mouse-over it they show, but not initially on the page.

    Anyone know how I could fix this problem? It seems simple enough, but I’ve tried everything that seems to be a simple, quick fix. *sigh*

Viewing 25 replies - 1 through 25 (of 27 total)
  • Avatar of Kristen
    Kristen
    Participant

    @khull808

    Hmm..Okay I did some changes and the Log In and Sign Up links do show now. But I still have no idea what to do to move the menu over to the right to center it in the page. It is “stuck” on the left side.

    I am using the Arras theme. Would I have to fix the theme coding? I find it odd that the vertical changes worked, but not the horizontal. Any ideas?

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @khull808

    Hi Kristen! 2 questions:
    1- Could you provide a link to your site?
    2 – Does it move if you try a negative value?

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    My website is http://www.mobilepicasso.com

    It does not move when I try a negative value.

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @khull808

    The problem appears to be that you’re using a theme that is NOT a child theme of bp-default. To resolve your issue, you’ll need to edit the file bp-wp-navbar.php as follows:

    Find the function
    `if ( $navbarHorizOffset ):`

    and change
    `#bp-default #wp-admin-bar .padder {left:px;}`

    to
    `#wp-admin-bar .padder {left:px;}`

    You should be able to do the same with the other functions in that section of the file (remove references to #bp-default) to make them work also with your theme.

    To make the “Hide main nav” function work with your theme, you may need to make another edit as follows:

    Find the function
    `if ( $hideMainNav ):`

    and change
    `ul#nav {display:none;}`

    to
    `div#nav {display:none;}`

    Hope this helps! :-)

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    Thank you for the response. I will try it out now and let you know how it goes. :)

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    @pcwriter

    It worked!! THANK YOU SO SO MUCH!!

    You are a life saver! I’m sure you don’t get enough credit as you deserve, considering you do this for free. You must be very passionate about it, but I am so grateful, as I’m sure others are as well. :D

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    @pcwriter

    new deveopment… :/

    I checked out my website on my other computer (mac) and the menu bar is not in the same place as I saw it on my pc. Also, the background image was stretched out and a little distorted on the mac. But on the pc it looks fine.

    Do you know why they are off??

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @khull808

    I’m passionate about learning new stuff – although my head seems to be thicker than it used to be; “stuff” doesn’t seem to get in as fast as it used to ;-)

    For your menu bar: I noticed you don’t seem to have set a width for your new navbar. This could throw things off on some systems if they *think* the navbar width is still 100%. (The vert offset setting moves the entire bp-adminbar up or down, but the horiz offset setting only moves the adminbar padder div which is nested inside the main adminbar div.)

    Try setting the overall navbar width to 980, and the horizontal offset to 0.

    Unfortunately, I don’t have a mac, so I can’t see what the background image looks like on one. Could you post a screenshot from yours? (If you don’t have an image account anywhere, try tinypic.com – it’s free and real easy to upload.)

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    @pcwriter

    I will try to edit my nav bar to your recommendations and see if that fixes it. If I have no luck, then I’ll post a pic to help you see what I’m talking about.

    Thanks again!

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    @pcwriter

    I tried out what you said, and the menu bar is back to the left side of the screen. It took away the bottom scroll bar on the web page though, which is what I was trying to figure out. I’m thinking that because I had the horizontal offset setting to 130, it pushed the page out creating that scroll bar. There has to be a way so that the nav bar will be centered (using horizontal offset) and not push the page out right?

    I don’t know how to go about fixing that problem. Any ideas?

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    @pcwriter

    Here is what it looks like after I changed it to your recommendations.
    30dkrqd.png

    Here is what it looks like before, with the horizontal offset setting in place. See that scroll bar?
    28870pl.png

    This is what it looks like on the mac. The page is stretched out so that the background color (blue), is visible. I shouldn’t be like that at all. The small blue grunge bars should be all you see at the edges of the webpage.
    dcqzpw.png

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @khull808

    Aha! The problem you’re having with your background has nothing to with the plugin. What you’ve done is set an image with a fixed-width as your background. If you view a page on a monitor with a greater width or resolution than the one you built your site on, you’ll get the extra background color showing to either side of the image. Here are some links to some helpful stuff to get you going on solving that. View the source code of the 2nd one – lots of great info in there!
    http://www.killersites.com/mvnforum/mvnforum/viewthread_thread,9912#49710
    http://www.wickham43.supanet.com/tutorial/backgroundimageseveral.html

    On preventing the appearance of scrollbars…
    If you offset the navbar horizontally, DO reduce the overall navbar width to prevent it “pushing out” beyond the limits of the screen (you can temporarily set a contrasting navbar background color to help see what you’re doing).

    Hope this helps! :-)

    Avatar of Kristen
    Kristen
    Participant

    @khull808

    GREAT. Thanks so much @pcwriter. Hey man, do you have a facebook?

    Avatar of Mark
    Mark
    Participant

    @mark211

    @pcwriter Great plugin. I have two quick questions. I have a custom theme and I’m having problems centering the admin bar. I have not problems with the vertical just the horizontal. I tried the php above which helped but it keeps the first link to the left side of the theme. Ideally I would have the text links in the center of my theme.

    The second question is if there is a way to create a link from the Admin bar with no drop down menu. I have a page I want people to navigate to and woud like them to click on the link like a normal page instead of having to scroll down. When I remove any custom link and just leave the menu title link, that link just directs back to the home page. Any suggestions.

    Thanks,

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @mark211

    Sorry for taking so long, I must have overlooked this post.

    1 – Could you post a link to your site so I can take a look?
    2 – Unfortunately, that isn’t possible with WP custom menus the way they’re set up now: menu titles can’t be linked. Nor can it be done with the plugin… yet. It’s a darn good suggestion though! I’ll look into adding that feature to an upcoming version.

    Avatar of Mark
    Mark
    Participant

    @mark211

    Thanks for help. I look forward to seeing that addition. The link is http://www.wickedsexywater.com.

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @mark211

    To be able to use all features of the plugin in your theme, you need to remove ALL references to bp-default.

    To adjust the horizontal offset, you need to open bp-wp-navbar.php and find the following function:
    `function offset_navbar_horiz() { ?>`

    Change:
    `#bp-default #wp-admin-bar .padder {left:px;}`

    …to:
    `#wp-admin-bar .padder {left:px;}`

    Cool theme btw! :-)

    Avatar of Mark
    Mark
    Participant

    @mark211

    @pcwriter Thanks, its been a long road to get to this point with it. lol. Also, I really appreciate the help. The only issue is I added the code and I can use the horizontal offset now in the plugin but it doesn’t really accomplish what I am looking for. I was hoping to use text-align: center; in the css. The problem with the horizontal offset is that the texts pushes too far over on the theme when I’m logged in. If I dont want it push to far over then its not centered properly on the home page when I’m logged out. I would like it to be centerd for anybody who is on the site whether they are logged in or not.. It look better with the theme. Thanks again

    Avatar of Mark
    Mark
    Participant

    @mark211

    @pcwriter As you probably know I’m using WordPress MU and I just noticed that when I’m in one the subdomains the default ”community” drop down links navigates to the subdomains instead of the main blog. So for example it goes to http://subdomain.site.com/blogs/ instead of http://site.com/blogs/ . This means that users can’t navigate to thier blogs/members/ groups etc of the main domain when they are on other domains. Do you have a fix for this by any chance?
    Also it would be nice if there was a feature where if you sent up menus on the home domain they would also be set in the subdomains if webmaster wanted it to be, instead of manually adding each menu to all the domains.

    Thanks again in advance

    Avatar of Mark
    Mark
    Participant

    @mark211

    @pcwriter. sorry to keep hounding you. lol. Any ideas on the above issues? I’m willing to donate if you can give me a fix. My site is live and I’ll have to deactivate the plugin if I can’t fix them. The subdomain issue is the more important issue for me. Please let me know either way.

    Thanks,

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @mark211

    Oops… been away again…
    As a temporary fix until we can get this figured out, the URLs can be hardcoded (I’m thinking something along the lines of wp_redirect…):

    Open bp-wp-navbar.php. On lines 112, 118, 123, 128, 134, 139,
    change “
    to
    http://wickedsexywater.com

    This will prevent your having to deactivate for now. I’ll @mention you again as soon as I figure out a workaround. :-)

    Avatar of Mark
    Mark
    Participant

    @mark211

    @pcwriter It worked thanks! Where can I donate?

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @mark211

    Great news (for now)!
    There’s a handy “Donate” link right at the top of this forum.

    Thanks for helping to support my addiction recovery community project! :-)

    Avatar of yansony
    yansony
    Participant

    @yansony

    @pcwriter

    Thanks for this great plug in. I was wondering if there is a way of adding small icons next to each menu item?

    Avatar of pcwriter
    pcwriter
    Participant

    @pcwriter

    @yansony

    You’re welcome!
    I’m going to borrow a tip from @modemlooper and say you can thank me by posting a review :-)

    Your suggestion is one that has come up before, so there’s obviously interest in the idea. It’s also one I’d like to implement in a future update.

    For now though, I’m busy building a versatile new theme for BP, also with a bunch of customization options (and having lotsa fun working on my own site!) So, the next update to the plugin will probably only be after the 15th of November.

Viewing 25 replies - 1 through 25 (of 27 total)

You must be logged in to reply to this topic.