WP: link favicon in the theme

If there is already an old favicon.ico file in your current theme’s main folder, delete it using FTP Clients.

With an FTP Client, upload the new favicon.ico file into your current theme’s main folder.

Upload another copy of your favicon.ico file to the main directory of your site (ie. http://example.com/favicon.ico). This will display the favicon in your subscribers’ feedreaders.

In order for your favicon to show up in some older browsers, you will need to edit your page header. Remember, the best way to edit your theme’s files is via a Child Theme. For the purpose of the following instructions you will need to create a copy of your parent theme’s header.php file in your child theme.

Go to your WordPress Administration Panel.

  1. Click on Appearance.
  2. Click on Theme Editor.
  3. Select the file called Header or header.php to edit the file.
  4. Search for the line of code that begins with
    <link rel="shortcut icon" and ends with /favicon.ico" />

    Overwrite it, if it exists, or add the following the same code below the <head> HTML tag.

more [email protected] WPcodex: Creating a Favicon

How to set a partylist with javascript

Party List :

  • Party List is a data type in CRM, using which you can set more than one records of an entity for a single field.
  • Party List type field, renders as Lookup on the form, but it works as multi select lookup.
  • We can’t create a custom party list fields.

Function to set  Call To in a Phone Call Activity (tested on CRM 2015 Update 1 Online):

function setCallTo() {
    var callTo = getAttr("to"); //Party list to set

    var callToArry = new Array(); 
    callToArry[0] = new Object(); 

    callToArry[0].id = getLkpId("new_calltocontact");
    callToArry[0].name = getLkpName("new_calltocontact");
    callToArry[0].entityType = "contact";

function getAttr(attributeId) {
    return Xrm.Page.getAttribute(attributeId);
function getVal(attributeId) {
    try {
        return Xrm.Page.getAttribute(attributeId).getValue();
    catch (e) {
        alert("getVal: Error for attribute " + attributeId);
function getLkpName(attributeId) {
    return getVal(attributeId)[0].name;
function getLkpId(attributeId) {
    return getVal(attributeId)[0].id;