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.

FAQ

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.

후기

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.