WordPress Kadence Theme Search Modal

  • I am currently using the Kadance theme search bar in the header and I have edited the CSS to move around the search bar modal however I am having difficulty creating another container inside the modal to have search suggestions appear underneath the search bar while I type a character in, the best luck I had previous was use a code snippet but the search suggestions were appearing outside the header. The current CSS code I have in place is “

    /* Original CSS */
    .carousel-item > article {
    height: 100%;
    } archive-container article.entry {

    display: flex;
    flex-direction: column;

    } archive-container article.entry .entry-content-wrap {

    height: 100%;
    display: flex;
    flex-direction: column;

    } archive-container article.entry .entry-content-wrap .entry-footer {

    margin-top: auto;

    } search-drawer .drawer-inner {

    width: 100%;
    bottom: 20%;
    height: auto;
    border-radius: 10px;
    box-shadow: 10px 10px 10px #000;
    background: white;
    padding: 20px;

    } search-drawer .drawer-inner .drawer-content {

    width: 100%;
    top: 50px;
    bottom: auto;

    }

    @media (max-width: 767px) {
    #search-drawer .drawer-inner {
    width: 100%;
    bottom: 0;
    height: auto;
    border-radius: 10px;
    box-shadow: 10px 10px 10px #000;
    background: white;
    padding: 20px;
    }

    #search-drawer .drawer-inner .drawer-content {
        width: 100%;
        top: 20px;
        bottom: auto;
    }

    }

    .header-search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .header-search-container .search-bar-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    }

    .header-search .search-field {
    padding: 10px;
    padding-right: 40px;
    font-size: 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    flex: 1;
    width: 100%;
    }

    .header-search .search-submit {
    background: none;
    border: none;
    cursor: pointer;
    }

    /* Updated CSS / .search-suggestions-container { margin-top: 20px; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; overflow-y: auto; max-height: 300px; / Adjust as needed */
    }

    .search-suggestion-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    }

    .search-suggestion-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    }

    .search-suggestion-item a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    margin-top: 10px;
    }

    .search-suggestion-item a:hover {
    text-decoration: underline;
    }

    .search-suggestion-item p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    }”

    I am just unsure how too add the search suggestions within the kadence search modal and for it to appear underneath the search bar any suggestions ? I am currently using WPCode Snippets Plugin

Reply to WordPress Kadence Theme Search Modal