• Resolved neliti

    (@neliti)


    Hi,

    I would like some help with inserting login/register links on the far right side of the top menu, on the far right side of the webpage (ie on the same menu as home/about/forum on my website neliti.com, but on the far right). Can you suggest any way to do this? Preferably if users are logging on, they should be able to do see without being redirected to a separate logon page.

    Thanks for any help ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Richie KS

    (@rkcorp)

    i would suggest open faq.txt and using the similar method on inserting searchform but in your case its wp_login_form()

    Thread Starter neliti

    (@neliti)

    Hi Richie,

    I’ve tried that, but instead of going within the menu, it goes underneath the menu. Where exactly should if have the wp_login_form()?

    Thanks ??

    Theme Author Richie KS

    (@rkcorp)

    you need to add or edit the css maybe on this case. ok remove the previous edit and use this instead. add this to functions.php or your wp-content/meso-custom-functions.php

    <?php
    function meso_custom_topnav_login() {
    echo "<div style='float:right;margin:10px 0 0;'>" . wp_login_form() . "</div>";
    }
    add_action('bp_inside_top_nav','meso_custom_topnav_login');
    ?>
    Thread Starter neliti

    (@neliti)

    It’s not floating right for some reason, and just goes below my menu items instead. I’ll work on this and get back to you if I can’t hack it ??

    Thread Starter neliti

    (@neliti)

    Hi. This was solved by coding my own CSS and header.php:

    style.css:
    #searchform input[type=’text’] {
    width: 82%;
    height: 17px;
    }
    input#s {
    width: 82%;
    height: 17px;
    }

    header.php:

    below
    <!– HEADER START –>
    <header class=”iegradient <?php echo strtolower($header_overlay).’_head’; ?>” id=”header” role=”banner”<?php do_action(‘bp_section_header’); ?>>

    add the following:

    <div class=”header-inner”>
    <div style=’float:right; width: 72%; margin: 3.5em 0 0px 0px;’><?php echo get_search_form(); ?></div>
    <div class=”innerwrap”>
    <div id=”siteinfo”>
    <?php do_action( ‘bp_before_site_title’ ); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Login/Register form in Top Menu’ is closed to new replies.