Tagged: x
-
AuthorPosts
-
September 10, 2016 at 5:41 am #1169149
FeddeParticipantHey guys,
I have a phone number added in my navbar, its a page right now. I would like to directly link that menu link to a facetime call. I think it should be possible using one of the html links shown at: https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/FacetimeLinks/FacetimeLinks.html
My question is how to directly link the menu link to the facetime call, so it wont go to the page i created for the menu link.
URL: http://www.feddewestera.nl/
Thanks in advance!
September 10, 2016 at 7:07 am #1169197
ThaiModeratorHi There,
Please add the following code to the HREF field of your menu item:
– Video Call:
facetime:14085551234
– Audio Call:facetime-audio:14085551234Hope it helps 🙂
September 12, 2016 at 1:38 am #1170843
FeddeParticipantHi,
Thanks for the fast reply. I can add the HREF field on a custom link in the menu section, but it won’t accept the facetime code. When you save the settings the code just fades.
Am i doing something wrong?
September 12, 2016 at 1:54 am #1170868
Rue NelModeratorHello There,
Thanks for writing in! I have tested in my local testing server and indeed the menu doesn’t accept the facetime in the href. I would suggest that you add this following code in your child theme’s functions.php file;
// Add custom menu facetime menu // ============================================================================= function custom_facetime_menu_item( $items, $args ) { if ( X_WOOCOMMERCE_IS_ACTIVE && x_get_option( 'x_woocommerce_header_menu_enable' ) == '1' ) { if ( $args->theme_location == 'primary' ) { $items .= '<li class="menu-item x-menu-item x-menu-item-facetime">' . '<a href="facetime:14085551234" class="x-btn-navbar-facetime">' . 'FaceTime' . '</a>' . '</li>'; } } return $items; } add_filter( 'wp_nav_menu_items', 'custom_facetime_menu_item', 9999, 2 ); // =============================================================================Please let us know how it goes.
September 12, 2016 at 2:53 am #1170950
FeddeParticipantUpon adding that code in my function.php i get the following error + white screen: Parse error: syntax error, unexpected end of file in /home4/fedde95/public_html/feddewestera.nl/wp-content/themes/x-child/functions.php on line 75
September 12, 2016 at 2:55 am #1170951
FeddeParticipantAh i got the code in without getting the white screen + error now. Whats the next step?
September 12, 2016 at 2:58 am #1170954
Rue NelModeratorHello There,
Thanks for the updates! Could you please update the code and use this instead:
// Add custom menu facetime menu // ============================================================================= function custom_facetime_menu_item( $items, $args ) { if ( $args->theme_location == 'primary' ) { $items .= '<li class="menu-item x-menu-item x-menu-item-facetime">' . '<a href="facetime:14085551234" class="x-btn-navbar-facetime">' . 'FaceTime' . '</a>' . '</li>'; } return $items; } add_filter( 'wp_nav_menu_items', 'custom_facetime_menu_item', 9999, 2 ); // =============================================================================If nothing else works, would you mind providing us the ftp login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your credentials, we will be happy to assist you with everything.
To do this, you can make a post with the following info:
– WP username
– WP password
– FTP Hostname
– FTP Username
– FTP PasswordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
September 12, 2016 at 3:29 am #1171001
FeddeParticipantIt worked! Thanks a bunch!!
September 12, 2016 at 3:35 am #1171014
RadModeratorYou’re most welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1169149 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
