Mobile Call Now & Map Buttons

外掛說明

Mobile Call Now & Map Buttons adds a sticky mobile contact bar with optional Call Now and Directions buttons. It is useful for local businesses that want mobile visitors to call or open directions quickly.

Features

  • Add a mobile Call Now button using a phone number.
  • Add a Directions button using a street address or GPS coordinates.
  • Add an optional Google Place ID for a more precise Google Maps destination.
  • Customize bar background, button colors, and button text.
  • Choose the maximum device width where the buttons appear.
  • Optional z-index and append-to-body settings for theme compatibility.

螢幕擷圖

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/mobile-call-now-map-buttons directory, or install the plugin through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings > Mobile Call Now & Map Buttons to configure the plugin.

常見問題集

How is the maps button created?

The location is built with a Google Maps URL. Your entered location values are constructed using either the address fields or GPS coordinates. If you add a Google Place ID, the plugin appends it to the Maps URL to help Google identify the exact destination.

What format should I use for GPS coordinates?

Use decimal degrees format, such as 50.6745 for latitude and -120.3273 for longitude. Do not enter degree symbols or N/E/S/W letters.

Why are the buttons hiding my footer?

This is usually a theme CSS conflict. Try adjusting the z-index setting or enable the append-to-body option.

What does the number sanitizing option do?

By default, the plugin cleans the phone number for safer and more consistent tel: links. Enable this option only if your phone number format must be preserved.

使用者評論

2019 年 1 月 14 日
This plugin makes it very easy without problems. Nice work and nice support. Thanks for all
2018 年 6 月 13 日 2 則留言
Does what it is supposed to but could be much better. The text size is not optimized for the smallest screen width (320px). At this size, the text from the "Directions" button get's pushed below the button background because there isn't enough width for the text and the icon on the button. So I had to write new CSS to make the font-size on the buttons smaller. I think this is a big issue because this plugin is made to improve mobile UX, but it end ups looking like poor development on the smallest phones. Also, the map should open in a modal or something. Right now it opens in a new window which will see some traffic leave the original site completely.
2018 年 5 月 21 日
Mobile Call Now buttons is a great plugin, I really enjoyed using it and better than other competition
2018 年 3 月 24 日
Stupidly simply configuration. It just works and does exactly what I want. Thank you!!!
閱讀全部 19 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Mobile Call Now & Map Buttons〉的開發相關工作。

參與者

將〈Mobile Call Now & Map Buttons〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.6.2

  • Fixed front-end output logic so the plugin can display Call Now, Directions, or both buttons depending on configured settings.
  • Improved validation for phone, address, GPS, and Google Place ID values.
  • Additional security hardening for CVE-2023-24401 by sanitizing stored settings and escaping admin/front-end output.

1.6.1

  • Added optional Google Place ID support for map destinations.
  • Added admin help links for Google Place ID documentation and the Place ID finder.
  • Updated Google Maps URL generation to use the Maps Directions URL format.

1.6.0

  • Security hardening release.
  • Added settings sanitization callback.
  • Escaped admin and frontend output.
  • Restricted settings page access to administrators using manage_options.
  • Updated frontend link handling for tel: and Google Maps URLs.
  • Updated JavaScript to use current jQuery patterns and removed debug logging.
  • Updated plugin headers for current WordPress and PHP compatibility.

1.5.0

  • Readme and documentation change.
  • Added PHP version requirement.

1.4.2

  • Minor change to initialization.

1.4.1

  • Fixed CSS where one-button use could result in an off-center button.
  • Added direct file access protection.