Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1420798

    You can display various social media icons in the header. I would like to display the Tripadvisor icons with a link in addition to FB, Insta and email. Can you tell me how to do this please? Merci, Marie

    #1420803

    Hey Gabriele-Marie,

    Thank you for the inquiry.

    We can use some filters in the functions.php file to add a new icon. Please check the thread below for an example.

    // https://kriesi.at/support/topic/tripadvisor-as-social-share-icon/#post-1286736

    Related threads:

    // https://kriesi.at/support/topic/telegram-in-social-share-button/#post-1358871
    // https://kriesi.at/support/topic/changement-couleur-et-police-ne-fonctionne-pas/#post-1344998

    Best regards,
    Ismael

    #1420831
    This reply has been marked as private.
    #1420859

    Hi,

    Thank you for the update.

    First, you have to add this code in the functions.php file to register the Tripadvisor icon.

    // Register tripadvisor icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons['Tripadvisor'] = array( 'font' =>'tripadvisor', 'icon' => 'uf262');
    return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    $icons['Tripadvisor'] = 'Tripadvisor';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    
    //Add items on the social share section
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args) {
    	$new_array = array(
    		'Tripadvisor' => array(
    			"encode"=>true, "encode_urls"=>false, "pattern" => "https://www.tripadvisor.com://send?text=[title]-[permalink]"
    		)
    	);
    
    	return array_merge($new_array, $args);
    }

    After that, go to the Enfold > Social Profiles, click the plus (+) symbol below the Facebook entry, select Tripadvisor from the dropdown, then add your Tripadvior account URL in the Social Icon URL field. Let us know if you need further assistance.

    Best regards,
    Ismael

    #1420929
    This reply has been marked as private.
    #1420998

    Hi,
    Please include an admin login in the Private Content area so we can examine your site and assist.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.