• I have tried various CSS tricks for the last five hours, but do not seem to be able to solve this.

    The location box on my site is displaying the input fields on multiple lines with input fields of different widths. I would like it to look like the input box on https://goodwillnj.org/store-locator/. That has the four boxes of equal width and height.

    What can I do to fix this display? Is there CSS that I am missing?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there!

    Examining the mentioned website (https://goodwillnj.org/store-locator/), it seems it has a specific stylesheets with multiple SCSS rules for styling the store locator. I have extracted the equivalent CSS rules applied to Wp Store Locator elements in your target page, here they are:

    #wpsl-gmap {
        float:right;
        width:66.5%;
        height:350px;
        margin-bottom:0
    }
    .wpsl-store-below #wpsl-gmap {
        float:none;
        width:100%
    }
    .wpsl-gmap-canvas {
        width:100%;
        height:300px;
        margin-bottom:20px
    }
    #wpsl-reset-map:hover {
        cursor:pointer
    }
    #wpsl-gmap div:not[class^=gv-iv],
    #wpsl-gmap img,
    .wpsl-gmap-canvas div:not[class^=gv-iv],
    .wpsl-gmap-canvas img {
        box-shadow:none!important;
        max-width:none!important;
        background:0 0
    }
    #wpsl-gmap img,
    .wpsl-gmap-canvas img {
        display:inline;
        opacity:1!important;
        max-height:none!important
    }
    #wpsl-gmap * {
        box-sizing:content-box!important;
        -webkit-box-sizing:content-box!important;
        -moz-box-sizing:content-box!important
    }
    #wpsl-gmap div.gm-iv-marker,
    .wpsl-gmap-canvas div.gm-iv-marker {
        backgroud-image:inherit
    }
    #wpsl-wrap {
        position:relative;
        width:100%;
        overflow:hidden;
        clear:both;
        margin-bottom:20px
    }
    #wpsl-search-wrap {
        float:left;
        width:100%
    }
    #wpsl-search-wrap form {
        margin:0;
        padding:0;
        border:none;
        outline:0
    }
    #wpsl-gmap #wpsl-map-controls {
        position:absolute;
        height:40px;
        right:10px;
        bottom:24px;
        border-radius:2px;
        z-index:3;
        font-size:14px;
        white-space:nowrap;
        overflow:hidden;
        box-shadow:rgba(0, 0, 0, .3) 0 1px 4px -1px
    }
    #wpsl-gmap #wpsl-map-controls.wpsl-street-view-exists {
        right:60px
    }
    #wpsl-map-controls .wpsl-direction-preloader {
        margin:5px 5px 0 5px
    }
    #wpsl-map-controls div {
        float:left;
        background:#fff;
        border-radius:2px
    }
    #wpsl-map-controls div:hover {
        cursor:pointer
    }
    #wpsl-wrap [class*=" wpsl-icon-"],
    #wpsl-wrap [class^=wpsl-icon-] {
        position:relative;
        float:left;
        padding:12px 13px;
        display:inline-block;
        font-family:wpsl-fontello;
        font-style:normal;
        font-weight:400;
        font-size:1.3em;
        color:#737373;
        speak:none;
        text-decoration:inherit;
        text-align:center;
        font-variant:normal;
        text-transform:none;
        line-height:1em;
        -webkit-font-smoothing:antialiased;
        -moz-osx-font-smoothing:grayscale
    }
    #wpsl-map-controls span {
        font-family:inherit;
        font-size:inherit
    }
    #wpsl-wrap .wpsl-icon-reset {
        border-radius:2px 0 0 2px;
        z-index:2;
        padding-right:4px
    }
    #wpsl-wrap .wpsl-ie .wpsl-icon-reset {
        margin-right:-1px
    }
    #wpsl-wrap .wpsl-icon-direction {
        z-index:1
    }
    #wpsl-map-controls.wpsl-reset-exists .wpsl-icon-direction {
        border-radius:0 2px 2px 0
    }
    #wpsl-wrap .wpsl-active-icon,
    #wpsl-wrap [class*=" wpsl-icon-"]:hover,
    #wpsl-wrap [class^=wpsl-icon-]:hover {
        color:#000
    }
    #wpsl-wrap [class*=" wpsl-icon-"]:focus,
    #wpsl-wrap [class^=wpsl-icon-]:active {
        outline:0
    }
    #wpsl-wrap .wpsl-in-progress,
    #wpsl-wrap .wpsl-in-progress:hover {
        color:#c6c6c6
    }
    #wpsl-gmap #wpsl-reset-map {
        position:absolute;
        display:none;
        right:37px;
        top:37px;
        padding:6px 14px;
        background:#fff!important;
        background-clip:padding-box;
        border:1px solid rgba(0, 0, 0, .15);
        border-radius:2px;
        z-index:3
    }
    #wpsl-reset-map:hover {
        cursor:pointer
    }
    .gm-style-cc {
        word-wrap:normal
    }
    #wpsl-search-wrap .wpsl-input,
    #wpsl-search-wrap .wpsl-select-wrap {
        display:table
    }
    #wpsl-search-btn,
    #wpsl-search-wrap #wpsl-radius,
    #wpsl-search-wrap #wpsl-results,
    #wpsl-search-wrap .wpsl-input input,
    #wpsl-search-wrap .wpsl-input label {
        display:table-cell
    }
    #wpsl-search-wrap label {
        margin-bottom:0
    }
    #wpsl-search-input {
        width:179px;
        height:auto;
        padding:7px 12px;
        font-size:100%;
        margin:0
    }
    #wpsl-search-btn,
    #wpsl-search-wrap input {
        border:1px solid #d2d2d2;
        border-radius:3px
    }
    #wpsl-search-btn {
        padding:7px 10px;
        line-height:1.428571429;
        font-weight:400;
        color:#7c7c7c;
        background-color:#e6e6e6;
        background-repeat:repeat-x;
        background-image:-moz-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image:-ms-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image:-webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image:-o-linear-gradient(top, #f4f4f4, #e6e6e6);
        background-image:linear-gradient(top, #f4f4f4, #e6e6e6);
        box-shadow:0 1px 2px rgba(64, 64, 64, .1);
        text-transform:none!important
    }
    #wpsl-search-input.wpsl-error {
        border:1px solid #bd0028!important
    }
    .wpsl-search {
        margin-bottom:12px;
        padding:12px 12px 0 12px;
        background:#f4f3f3
    }
    .wpsl-search.wpsl-checkboxes-enabled {
        padding:12px
    }
    .wpsl-back {
        display:inline-block
    }
    #wpsl-result-list {
        width:33%;
        margin-right:.5%
    }
    .wpsl-store-below #wpsl-result-list {
        width:100%;
        margin:12px 0 0 0
    }
    #wpsl-direction-details,
    #wpsl-stores {
        height:350px;
        overflow-y:auto
    }
    #wpsl-direction-details,
    .wpsl-hide {
        display:none
    }
    #wpsl-result-list p {
        padding-left:10px
    }
    .wpsl-store-below #wpsl-result-list p {
        padding-left:0
    }
    #wpsl-result-list a {
        outline:0
    }
    .wpsl-direction-before {
        margin:14px 0 21px 0;
        padding-left:10px
    }
    .wpsl-store-below .wpsl-direction-before {
        padding-left:0
    }
    .wpsl-direction-before div {
        margin-top:10px
    }
    #wpsl-wrap #wpsl-result-list li {
        padding:10px;
        border-bottom:1px dotted #ccc;
        margin-left:0;
        overflow:hidden;
        list-style:none outside none!important;
        text-indent:0
    }
    #wpsl-wrap #wpsl-result-list li li {
        padding:0;
        border-bottom:0;
        margin-left:14px;
        overflow:visible
    }
    #wpsl-wrap #wpsl-result-list ul li {
        list-style:none!important
    }
    #wpsl-wrap #wpsl-result-list ol li {
        list-style:decimal!important
    }
    #wpsl-wrap.wpsl-store-below #wpsl-result-list li {
        padding:10px 10px 10px 0
    }
    #wpsl-result-list li p {
        padding-left:0;
        margin:0 0 20px 0
    }
    .wpsl-store-details.wpsl-store-listing {
        position:relative;
        padding-right:20px
    }
    .wpsl-store-details.wpsl-store-listing.wpsl-active-details:before,
    .wpsl-store-details.wpsl-store-listing:before {
        position:absolute;
        content:'';
        bottom:6px;
        right:0;
        border-top:5px solid #000;
        border-left:6px solid transparent;
        border-right:6px solid transparent
    }
    .wpsl-store-details.wpsl-store-listing.wpsl-active-details:before {
        border-bottom:5px solid #000;
        border-top:none;
        border-left:6px solid transparent;
        border-right:6px solid transparent
    }
    #wpsl-stores .wpsl-store-thumb {
        float:right;
        border-radius:3px;
        margin:7px 0 0 10px;
        padding:0;
        border:none
    }
    .wpsl-direction-index {
        float:left;
        width:8%;
        margin:0 5% 0 0
    }
    .wpsl-direction-txt {
        float:left;
        width:62%
    }
    .wpsl-direction-distance {
        float:left;
        width:20%;
        margin:0 0 0 5%
    }
    .wpsl-direction-txt span {
        display:block;
        margin-top:10px
    }
    .wpsl-country,
    .wpsl-street {
        display:block;
        border-bottom:none!important
    }
    .wpsl-directions {
        display:table;
        border-bottom:none!important
    }
    #wpsl-wrap #wpsl-result-list li.wpsl-preloader {
        position:relative;
        border-bottom:none;
        padding:10px 10px 10px 35px
    }
    .wpsl-preloader img {
        position:absolute;
        left:10px;
        top:50%;
        margin-top:-8px;
        box-shadow:none!important;
        border:none!important
    }
    .wpsl-preloader span {
        float:left;
        margin:-5px 0 0 11px
    }
    #wpsl-search-btn,
    #wpsl-search-wrap div {
        margin-right:10px;
        float:left
    }
    #wpsl-search-wrap .wpsl-select-wrap {
        position:relative;
        z-index:2;
        margin-right:0
    }
    #wpsl-search-wrap .wpsl-input-field {
        position:relative
    }
    #wpsl-radius,
    #wpsl-results {
        float:left;
        margin-right:15px
    }
    #wpsl-category {
        position:relative;
        z-index:1;
        clear:both
    }
    #wpsl-search-wrap .wpsl-dropdown div {
        position:absolute;
        float:none;
        margin:-1px 0 0 0;
        top:100%;
        left:-1px;
        right:-1px;
        border:1px solid #ccc;
        background:#fff;
        border-top:1px solid #eee;
        border-radius:0 0 3px 3px;
        opacity:0;
        overflow:hidden;
        -webkit-transition:all 150ms ease-in-out;
        -moz-transition:all 150ms ease-in-out;
        -ms-transition:all 150ms ease-in-out;
        transition:all 150ms ease-in-out
    }
    #wpsl-search-wrap .wpsl-dropdown.wpsl-active div {
        opacity:1
    }
    #wpsl-search-wrap .wpsl-input label {
        margin-right:0
    }
    #wpsl-radius,
    #wpsl-results {
        display:inline
    }
    #wpsl-radius {
        margin-right:10px
    }
    #wpsl-search-btn:hover {
        cursor:pointer
    }
    #wpsl-search select,
    #wpsl-search-wrap select {
        display:none
    }
    #wpsl-search-wrap div label {
        float:left;
        margin-right:10px;
        line-height:32px
    }
    #wpsl-results label {
        width:auto
    }
    #wpsl-result-list ul {
        list-style:none;
        margin:0;
        padding:0
    }
    .wpsl-direction-details {
        display:none
    }
    #wpsl-gmap .wpsl-info-window,
    .wpsl-gmap-canvas .wpsl-info-window {
        max-width:225px
    }
    .wpsl-info-window span,
    .wpsl-more-info-listings span {
        display:block
    }
    .wpsl-info-window .wpsl-no-margin {
        margin:0
    }
    .wpsl-more-info-listings {
        display:none
    }
    .wpsl-info-window span span {
        display:inline!important
    }
    #wpsl-wrap .wpsl-info-window p {
        margin:0 0 10px 0
    }
    .wpsl-store-hours {
        margin-top:10px
    }
    .wpsl-store-hours strong {
        display:block
    }
    #wpsl-gmap .wpsl-info-actions {
        display:block;
        margin:10px 0!important
    }
    .wpsl-info-actions a {
        float:left;
        margin-right:7px
    }
    .wpsl-info-actions .wpsl-zoom-here {
        margin-right:0
    }
    .wpsl-dropdown {
        position:relative;
        width:90px;
        border:1px solid #ccc;
        cursor:pointer;
        background:#fff;
        border-radius:3px;
        -webkit-user-select:none;
        -moz-user-select:none;
        user-select:none;
        margin-right:0!important;
        z-index:2
    }
    #wpsl-results .wpsl-dropdown {
        width:70px
    }
    .wpsl-dropdown ul {
        position:absolute;
        left:0;
        width:100%;
        height:100%;
        padding:0!important;
        margin:0!important;
        list-style:none;
        overflow:hidden
    }
    .wpsl-dropdown:hover {
        box-shadow:0 0 5px rgba(0, 0, 0, .15)
    }
    .wpsl-dropdown .wpsl-selected-item,
    .wpsl-dropdown li {
        position:relative;
        display:block;
        line-height:normal;
        color:#000;
        overflow:hidden
    }
    #wpsl-radius .wpsl-dropdown .wpsl-selected-item,
    #wpsl-radius .wpsl-dropdown li,
    #wpsl-results .wpsl-dropdown .wpsl-selected-item,
    #wpsl-results .wpsl-dropdown li {
        white-space:nowrap
    }
    .wpsl-selected-item:after {
        position:absolute;
        content:"";
        right:12px;
        top:50%;
        margin-top:-4px;
        border:6px solid transparent;
        border-top:8px solid #000
    }
    .wpsl-active .wpsl-selected-item:after {
        margin-top:-10px;
        border:6px solid transparent;
        border-bottom:8px solid #000
    }
    .wpsl-dropdown li:hover {
        background:#f8f9f8;
        position:relative;
        z-index:3;
        color:#000
    }
    .wpsl-dropdown .wpsl-selected-item,
    .wpsl-dropdown li,
    .wpsl-selected-item {
        list-style:none;
        padding:9px 12px!important;
        margin:0!important
    }
    .wpsl-selected-dropdown {
        font-weight:700
    }
    .wpsl-clearfix:after,
    .wpsl-clearfix:before {
        content:" ";
        display:table
    }
    .wpsl-clearfix:after {
        clear:both
    }
    #wpsl-wrap .wpsl-selected-item {
        position:static;
        padding-right:35px!important
    }
    #wpsl-category,
    .wpsl-input,
    .wpsl-select-wrap {
        position:relative;
        margin-bottom:10px
    }
    #wpsl-search-wrap .wpsl-scroll-required div {
        overflow-y:scroll
    }
    .wpsl-scroll-required ul {
        overflow:visible
    }
    .wpsl-provided-by {
        float:right;
        padding:5px 0;
        text-align:right;
        font-size:12px;
        width:100%
    }
    #wpsl-wrap .wpsl-results-only label {
        width:auto
    }
    .wpsl-contact-details,
    .wpsl-location-address,
    .wpsl-locations-details {
        margin-bottom:15px
    }
    .wpsl-contact-details {
        clear:both
    }
    table.wpsl-opening-hours td {
        vertical-align:top;
        padding:0 15px 0 0;
        text-align:left
    }
    table.wpsl-opening-hours time {
        display:block
    }
    table.wpsl-opening-hours {
        width:auto!important;
        font-size:100%!important
    }
    table.wpsl-opening-hours,
    table.wpsl-opening-hours td {
        border:none!important
    }
    .wpsl-gmap-canvas .wpsl-infobox {
        min-width:155px;
        max-width:350px!important;
        padding:10px;
        border-radius:4px;
        font-size:13px;
        font-weight:300;
        border:1px solid #ccc;
        background:#fff!important
    }
    .wpsl-gmap-canvas .wpsl-infobox:after,
    .wpsl-gmap-canvas .wpsl-infobox:before {
        position:absolute;
        content:"";
        left:40px;
        bottom:-11px
    }
    .wpsl-gmap-canvas .wpsl-infobox:after {
        border-left:11px solid transparent;
        border-right:11px solid transparent;
        border-top:11px solid #fff
    }
    .wpsl-gmap-canvas .wpsl-infobox:before {
        border-left:13px solid transparent;
        border-right:13px solid transparent;
        border-top:13px solid #ccc;
        bottom:-13px;
        left:38px
    }
    #wpsl-checkbox-filter,
    .wpsl-custom-checkboxes {
        display:block;
        float:left;
        margin:5px 0 15px;
        padding:0;
        width:100%
    }
    #wpsl-checkbox-filter li,
    .wpsl-custom-checkboxes li {
        float:left;
        list-style:none;
        margin:0 1% 0 0
    }
    #wpsl-checkbox-filter.wpsl-checkbox-1-columns li,
    .wpsl-custom-checkboxes.wpsl-checkbox-1-columns li {
        width:99%
    }
    #wpsl-checkbox-filter.wpsl-checkbox-2-columns li,
    .wpsl-custom-checkboxes.wpsl-checkbox-2-columns li {
        width:49%
    }
    #wpsl-checkbox-filter.wpsl-checkbox-3-columns li,
    .wpsl-custom-checkboxes.wpsl-checkbox-3-columns li {
        width:32%
    }
    #wpsl-checkbox-filter.wpsl-checkbox-4-columns li,
    .wpsl-custom-checkboxes.wpsl-checkbox-4-columns li {
        width:24%
    }
    #wpsl-checkbox-filter input,
    .wpsl-custom-checkboxes input {
        margin-right:5px
    }
    #wpsl-result-list .wpsl-contact-details span {
        display:block!important
    }
    #wpsl-search-wrap .select2 {
        display:none!important
    }
    .rtl #wpsl-result-list {
        float:left
    }
    .rtl #wpsl-checkbox-filter input,
    .rtl .wpsl-custom-checkboxes input {
        margin-right:0;
        margin-left:5px
    }
    .rtl .wpsl-info-actions a {
        float:right;
        margin:0 0 0 7px
    }
    .rtl #wpsl-gmap .wpsl-info-window {
        padding-right:22px
    }
    .rtl #wpsl-wrap #wpsl-result-list li.wpsl-preloader {
        padding:10px 35px 10px 0
    }
    .rtl .wpsl-preloader img {
        left:0;
        right:10px
    }
    .wpsl-twentynineteen .wpsl-input {
        width:100%
    }
    .wpsl-twentynineteen #wpsl-search-input {
        line-height:1.3em
    }
    .wpsl-twentynineteen #wpsl-search-wrap label {
        margin-top:6px
    }
    .wpsl-twentynineteen .wpsl-dropdown {
        width:116px
    }
    #wpsl-results .wpsl-dropdown {
        width:81px
    }
    @media (max-width:825px) {
        #wpsl-search-input {
            width:348px
        }
        .wpsl-results-only #wpsl-search-wrap .wpsl-dropdown {
            width:70px
        }
        #wpsl-search-wrap .wpsl-input {
            width:100%;
            margin-bottom:10px
        }
        #wpsl-category label,
        #wpsl-radius label,
        .wpsl-cat-results-filter #wpsl-search-wrap .wpsl-input,
        .wpsl-input label,
        .wpsl-no-filters #wpsl-search-wrap .wpsl-input,
        .wpsl-results-only #wpsl-search-wrap .wpsl-input {
            width:auto
        }
    }
    
    @media (max-width:720px) {
        #wpsl-search-wrap .wpsl-dropdown {
            width:114px
        }
    }
    
    @media (max-width:675px) {
        #wpsl-search-wrap #wpsl-search-btn {
            float:left;
            margin:0 5px 0 0
        }
        .wpsl-dropdown,
        .wpsl-results-only #wpsl-search-wrap .wpsl-input {
            width:100%
        }
        .wpsl-search {
            padding:2%
        }
        .wpsl-input {
            margin-right:0
        }
        #wpsl-gmap,
        #wpsl-result-list {
            width:49.75%
        }
        #wpsl-gmap,
        #wpsl-result-list {
            float:none;
            width:100%
        }
        .wpsl-direction-before {
            padding-left:0
        }
        #wpsl-gmap {
            margin-bottom:15px
        }
        #wpsl-result-list,
        .wpsl-cat-results-filter .wpsl-select-wrap,
        .wpsl-filter .wpsl-select-wrap {
            margin-bottom:10px
        }
        #wpsl-result-list p,
        #wpsl-wrap #wpsl-result-list li {
            padding-left:0
        }
        #wpsl-wrap #wpsl-result-list li.wpsl-preloader {
            padding-left:25px
        }
        .wpsl-preloader img {
            left:0
        }
        #wpsl-stores.wpsl-not-loaded {
            height:25px
        }
        #wpsl-reset-map {
            top:25px
        }
        #wpsl-gmap {
            margin-top:10px
        }
        #wpsl-category,
        #wpsl-search-btn,
        .wpsl-input,
        .wpsl-no-filters #wpsl-search-wrap .wpsl-input,
        .wpsl-select-wrap {
            margin-bottom:0
        }
        #wpsl-stores.wpsl-no-autoload {
            height:auto!important
        }
        #wpsl-checkbox-filter.wpsl-checkbox-3-columns li,
        #wpsl-checkbox-filter.wpsl-checkbox-4-columns li {
            width:49%
        }
    }
    
    @media (max-width:570px) {
        #wpsl-search-wrap #wpsl-search-btn {
            margin-bottom:5px
        }
        .wpsl-search {
            padding:4%
        }
        #wpsl-search-input {
            width:98%!important
        }
        .wpsl-cat-results-filter #wpsl-search-input,
        .wpsl-cat-results-filter #wpsl-search-wrap .wpsl-input,
        .wpsl-no-results #wpsl-search-input,
        .wpsl-results-only #wpsl-search-input {
            width:100%!important
        }
        .wpsl-search-btn-wrap {
            margin-top:15px
        }
        .wpsl-checkboxes-enabled .wpsl-search-btn-wrap {
            margin-top:0
        }
        #wpsl-search-btn,
        #wpsl-search-wrap div {
            margin-right:0
        }
        #wpsl-search-wrap div label {
            display:block;
            width:100%
        }
        #wpsl-results {
            width:auto
        }
        .wpsl-select-wrap {
            width:100%
        }
        #wpsl-radius,
        #wpsl-results {
            width:50%
        }
        #wpsl-radius {
            margin-right:4%
        }
        #wpsl-search-wrap .wpsl-dropdown {
            width:96%!important
        }
        .wpsl-search-btn-wrap {
            clear:both
        }
        .wpsl-no-filters #wpsl-search-input,
        .wpsl-no-filters #wpsl-search-wrap .wpsl-input {
            width:100%!important
        }
    }
    
    @media (max-width:420px) {
        #wpsl-checkbox-filter li {
            margin:0
        }
        #wpsl-checkbox-filter.wpsl-checkbox-1-columns li,
        #wpsl-checkbox-filter.wpsl-checkbox-2-columns li,
        #wpsl-checkbox-filter.wpsl-checkbox-3-columns li,
        #wpsl-checkbox-filter.wpsl-checkbox-4-columns li {
            width:100%
        }
    }
    

    Try applying these rules to your theme, it is very likely that they will end up rendering the map just as in the target website ??

    Regards,

    • This reply was modified 1 year, 11 months ago by farroyo.
    Thread Starter Roger

    (@elleirdad)

    Thank you. But, that does not solve the problem. So, let me simplify it a bit. Your sample shows the input bar looking like this:

    Please notice that the label “Your location” is to the left of the box and the box background is white.

    However, on my page the label is above box and the background is the wrong color. Here is the page with the problem:

    https://goodwstg.wpengine.com/stores/

    Thank you.

    Thread Starter Roger

    (@elleirdad)

    BTW. I checked, there are no pre?or?code prefixes.

    Hi again,

    The problem with your issue is that you are trying to mimick the appearance of Wp Store Locator in another website, where there is probably a different WordPress theme or even a custom Store Locator template.

    In any case, copying specific CSS rules from one site to another and hoping that it looks the same is never straightforward, as there are always many other styles involved in the mix, for both websites.

    So, since this is actually related to design and CSS rules, not to the plugin itself, it is not that we don’t want to help but your issue is actually a bit out of the scope of our support, it should be addressed to your website’s designer.

    I hope you understand.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trouble with Location Box layout’ is closed to new replies.