• Resolved Ted Slater

    (@tedslater)


    Does the styling only work when used with the SearchWP search engine? I’ve installed this on my site, and there’s minimal styling, nothing like what I see on https://searchwp.com/extensions/modal-form/ for example. I do have “Positioning and visual styling” enabled.

    You can see what it looks like if you click the Search menu item in the footer of the URL I added above.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Pavlo

    (@pavloopanasenko)

    Hi Ted,

    SearchWP Modal Search Form doesn’t need SearchWP plugin to operate or apply styling.

    The issue with styles can be fixed by adding the “search-form” class to your search input <form> element.
    Normally WordPress adds this class to the form by default, but the output can be overriden using the ‘get_search_form’ filter.
    This is likely what happens in your theme or in one of the plugins` code.
    Try searching for any code that hooks to ‘get_search_form’ in you website’s codebase and change it so the correct class is added.

    Here’s a WordPress get_search_form() function code for reference: https://github.com/WordPress/WordPress/blob/master/wp-includes/general-template.php#L239-L362.

    Once “search-form” class is added back to your search input <form> element, the styling gets back to normal.

    • This reply was modified 2 years, 4 months ago by Pavlo.
Viewing 1 replies (of 1 total)
  • The topic ‘styling?’ is closed to new replies.