• Resolved neliti

    (@neliti)


    Hello,

    I’m trying to code the header.php file to have the search box to the right of my site logo. I’ve made numerous attempts (see neliti.com) but nothing works so far!

    Any help?

    Thanks guys.

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

    (@rkcorp)

    add this to functions.php or your wp-content/meso-custom-functions.php

    <?php
    function meso_search_after_title() {
    echo get_search_form();
    }
    add_action('bp_after_site_title','meso_search_after_title');
    ?>
    Thread Starter neliti

    (@neliti)

    Hi Richie,

    I’ve tried that but it goes underneath the logo! not next to it. Any other suggestions?

    thanks ??

    Theme Author Richie KS

    (@rkcorp)

    try

    <?php
    function meso_search_after_title() {
    echo '<div style="float:left;margin:0 0 0 10px;">' . get_search_form() . '</div>';
    }
    add_action('bp_after_site_title','meso_search_after_title');
    ?>
    Thread Starter neliti

    (@neliti)

    Hi Richie, nope! Still underneath the title. I’ll try crack it myself and get back to you if I can’t ??

    Thread Starter neliti

    (@neliti)

    Hi. This was solved by using CSS to move menu items like “Login” and “Register” to the right of the top menu.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search box next to site logo?’ is closed to new replies.