WordPress.org

Forums

Locations
[resolved] Locations - Phone title & number spacing (5 posts)

  1. iambob
    Member
    Posted 1 year ago #

    Greetings,

    I'm using the shortcode in a sidebar widget and it looks fine except for the spacing between Phone: (and the number) 123-555-1212 ... this large gap causes the last couple of numbers to not show within the widget field (250 px).

    How can I reduce this space or drop the numbers below the Phone: title?

    Thanks!

    https://wordpress.org/plugins/locations/

  2. richardgabriel
    Member
    Plugin Author

    Posted 1 year ago #

    Hey there!

    Is there a place I can see this in action?

    It sounds like you will need to use CSS to fix it.

    Best,
    Richard

  3. iambob
    Member
    Posted 1 year ago #

    Oops, forgot that part! http://wtaz.smoothgrind.net - 6th widget down on right sidebar. Thanks Richard!

  4. richardgabriel
    Member
    Plugin Author

    Posted 1 year ago #

    Hey!

    Change the following CSS:

    .locations .location {
        border: 1px solid #DDDDDD;
        border-radius: 8px;
        display: inline-block;
        margin: 0 20px 25px 0;
        min-width: 230px;
        overflow: hidden;
        padding: 25px;
    }

    To something like this:

    .locations .location {
        border: 1px solid #DDDDDD;
        border-radius: 8px;
        display: inline-block;
        margin: 0 20px 25px 0;
        min-width: auto !important;
        overflow: hidden;
        padding: 25px;
    }

    And you should be set. The issue is the "min-width" property in our plugin is higher than the allowable width in your sidebar.

    Are you able to make this change? I recommend doing so in the theme, instead of the plugin's CSS file, so that your change isn't overwritten via an update.

    I hope that helps!

    Best,
    Richard

  5. richardgabriel
    Member
    Plugin Author

    Posted 1 year ago #

    Hello!

    Just touching base on this. I'm going to mark this resolved as I believe I have answered the question.

    Let me know if you need anything else.

    Thanks!
    Richard

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Locations
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic