Support » Plugin: WP Store Locator » Change color in search results

  • Resolved magostino14

    (@magostino14)


    I am trying to change the color of the description that shows up in the results area

    here is the page i am working on: http://www.owlee.com/retailers/

    below is the section of code i am trying to edit in the wpsl-gmap.js

    html = “<li data-store-id='” + id + “‘><div><p>” + storeImg + “” + store + “<span class=’wpsl-street’>” + address + “</span>” + address2 + city + ” ” + state + ” ” + zip + “<span class=’wpsl-country’>” + country + ” </span> ” + ” ” + ” <span style=’blue’> ” + ” <span class=’wpsl-description-txt’> ” + description + “</span>” + “</span></p>” + moreInfo + “</div>” + response.phone + “</p>” + distance + “” + wpslLabels.directions + ““;

    as you might be able to tell, i have the description bolded but i am not able to change the color of the description text. I have tried to add a span style as you can see to change it to blue but it does not seem to be working.

    Do you know what code i can add to change the description color in the results?

    Thank you so much

    https://wordpress.org/plugins/wp-store-locator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Try to add this to the CSS from your theme:

    #wpsl-wrap .wpsl-description-txt {
       color: #ff22ff !important. // pink
    }

    Also, style=”blue” probably needs to be style=”color:blue;” in case you want to make the color changes inline.

    Thread Starter magostino14

    (@magostino14)

    unfortunatly that did not change the font color of the description..

    any other ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change color in search results’ is closed to new replies.