• Resolved keramikk

    (@keramikk)


    Hello!

    Is there a way, possibly through CSS, to adjust the width and height of the search field?

    As you can see from my website, I’d like to have the logo aligned with the main menu and not having it on top.

    Sincerely,

    Geir

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I hope you are well today and thank you for your question.

    You can achieve this by adding the below CSS code in the Custom CSS option of Add Search To Menu plugin settings on the path Settings -> Add Search To Menu

    
    .astm-search-menu.default input.search-field {
        max-width: 150px;
        padding: 2px 8px;
    }
    hgroup#logo {
        padding-right: 0;
    }
    body #page .astm-search-menu .search-form input[type="submit"] {
        padding: 14px;
        right: -30px;
    }
    

    Best regards,

    Thread Starter keramikk

    (@keramikk)

    I’m well, as I hope you are too.

    Thank you for all your help.

    Sincerely,

    Geir

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    You are always welcome here ??

    Thread Starter keramikk

    (@keramikk)

    By the way, is there a way to edit the text in the search-field? I would like to translate “Search…” to Norwegian.

    Sincerely,

    Geir

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    It is generated by the theme that you are using on your site so you have to translate your theme to change that text.

    Thread Starter keramikk

    (@keramikk)

    Hello again,

    Very sorry to bother you with this again, but I need your help once more.

    I’ve added a new element to my main menu, and have the same issue as previously. To have the logo aligned with the main menu and not having it on top.

    My website URL is https://frigg.hiof.no/bo18-g18/wordpress/

    Sincerely,

    Geir

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Try using below CSS code to resolve it.

    header#branding .col-width {
        max-width: 88%;
    }

    Please note if you keep adding menu items then at one point there won’t be enough space to display them along side logo so they will display below the logo. To avoid this limit the number of parent menu items and some menus as sub menus.

    Thread Starter keramikk

    (@keramikk)

    Thank you for all your help :).

    There will be no more adding items to the menu at this point. If something were to be added, it will be, as you suggest, sub items.

    Thank you again! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Adjusting height and width of search field’ is closed to new replies.