Viewing 9 replies - 1 through 9 (of 9 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So your page at the moment has the search form but it’s not where you want?

    Thread Starter yavarkhan

    (@yavarkhan)

    yes! ?? exactly i just want it in the top right corner !

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can I see your website

    Thread Starter yavarkhan

    (@yavarkhan)

    right now jst creating in local host
    https://i59.tinypic.com/301d08j.jpg

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I would question whether the search form actually needs to be in your menu. If outside of your menu it’ll be easier to position where you want it.

    Thread Starter yavarkhan

    (@yavarkhan)

    yes i would like my search form outside the menu
    and should be besides my logo on the right side could you help me with the css

    Thread Starter yavarkhan

    (@yavarkhan)

    seems i need to change the function.php and style.css

    @yavarkhan – does this thread help you?

    Thread Starter yavarkhan

    (@yavarkhan)

    yes ?? thanku i tried a different approach

    created a extra widget in function.php

    / Adds a widget area.
    if (function_exists('register_sidebar')) {
        register_sidebar(array(
        'name' => 'Extra Header Widget Area',
        'id' => 'extra-widget-area',
        'description' => 'Extra widget area after the header',
        'before_widget' => '<div class="widget my-extra-widget">',
        'after_widget' => '</div>',
        'before_title' => '<h2>',
        'after_title' => '</h2>'
        ));
    }
    // Place the widget area after the header
    add_action ('__before_header', 'add_my_widget_area', 0);
    function add_my_widget_area() {
        if (function_exists('dynamic_sidebar')) {
        dynamic_sidebar('Extra Header Widget Area');
        }
    }

    and little style.css

    /* Move the extra widget area to the right of the page*/
    .my-extra-widget {
    float: none;
    position: absolute;
    width: 100%
      z-index: 210;
    margin-left:830px;
    top: 40px;
    }

    guys could ull check my style.css cause im little worried abt my css cause this is the 1st time i did my css ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘how to put HTML5 search form in top right corner of the website’ is closed to new replies.