Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi
File: functions.php
'default' => '4',
[1500] Fix | Delete
'type' => 'option',
[1501] Fix | Delete
'capability' => 'edit_theme_options',
[1502] Fix | Delete
'transport' => 'postMessage',
[1503] Fix | Delete
'sanitize_callback' => 'absint',
[1504] Fix | Delete
)
[1505] Fix | Delete
);
[1506] Fix | Delete
[1507] Fix | Delete
$wp_customize->add_control(
[1508] Fix | Delete
new ET_Divi_Range_Option(
[1509] Fix | Delete
$wp_customize,
[1510] Fix | Delete
'et_divi[section_padding]',
[1511] Fix | Delete
array(
[1512] Fix | Delete
'label' => esc_html__( 'Section Height', 'Divi' ),
[1513] Fix | Delete
'section' => 'et_divi_general_layout',
[1514] Fix | Delete
'type' => 'range',
[1515] Fix | Delete
'input_attrs' => array(
[1516] Fix | Delete
'min' => 0,
[1517] Fix | Delete
'max' => 10,
[1518] Fix | Delete
'step' => 1,
[1519] Fix | Delete
),
[1520] Fix | Delete
)
[1521] Fix | Delete
)
[1522] Fix | Delete
);
[1523] Fix | Delete
[1524] Fix | Delete
$wp_customize->add_setting(
[1525] Fix | Delete
'et_divi[phone_section_height]',
[1526] Fix | Delete
array(
[1527] Fix | Delete
'default' => et_get_option( 'tablet_section_height', '50' ),
[1528] Fix | Delete
'type' => 'option',
[1529] Fix | Delete
'capability' => 'edit_theme_options',
[1530] Fix | Delete
'transport' => 'postMessage',
[1531] Fix | Delete
'sanitize_callback' => 'absint',
[1532] Fix | Delete
)
[1533] Fix | Delete
);
[1534] Fix | Delete
[1535] Fix | Delete
$wp_customize->add_control(
[1536] Fix | Delete
new ET_Divi_Range_Option(
[1537] Fix | Delete
$wp_customize,
[1538] Fix | Delete
'et_divi[phone_section_height]',
[1539] Fix | Delete
array(
[1540] Fix | Delete
'label' => esc_html__( 'Section Height', 'Divi' ),
[1541] Fix | Delete
'section' => 'et_divi_mobile_phone',
[1542] Fix | Delete
'type' => 'range',
[1543] Fix | Delete
'input_attrs' => array(
[1544] Fix | Delete
'min' => 0,
[1545] Fix | Delete
'max' => 150,
[1546] Fix | Delete
'step' => 1,
[1547] Fix | Delete
),
[1548] Fix | Delete
)
[1549] Fix | Delete
)
[1550] Fix | Delete
);
[1551] Fix | Delete
[1552] Fix | Delete
$wp_customize->add_setting(
[1553] Fix | Delete
'et_divi[tablet_section_height]',
[1554] Fix | Delete
array(
[1555] Fix | Delete
'default' => '50',
[1556] Fix | Delete
'type' => 'option',
[1557] Fix | Delete
'capability' => 'edit_theme_options',
[1558] Fix | Delete
'transport' => 'postMessage',
[1559] Fix | Delete
'sanitize_callback' => 'absint',
[1560] Fix | Delete
)
[1561] Fix | Delete
);
[1562] Fix | Delete
[1563] Fix | Delete
$wp_customize->add_control(
[1564] Fix | Delete
new ET_Divi_Range_Option(
[1565] Fix | Delete
$wp_customize,
[1566] Fix | Delete
'et_divi[tablet_section_height]',
[1567] Fix | Delete
array(
[1568] Fix | Delete
'label' => esc_html__( 'Section Height', 'Divi' ),
[1569] Fix | Delete
'section' => 'et_divi_mobile_tablet',
[1570] Fix | Delete
'type' => 'range',
[1571] Fix | Delete
'input_attrs' => array(
[1572] Fix | Delete
'min' => 0,
[1573] Fix | Delete
'max' => 150,
[1574] Fix | Delete
'step' => 1,
[1575] Fix | Delete
),
[1576] Fix | Delete
)
[1577] Fix | Delete
)
[1578] Fix | Delete
);
[1579] Fix | Delete
[1580] Fix | Delete
$wp_customize->add_setting(
[1581] Fix | Delete
'et_divi[row_padding]',
[1582] Fix | Delete
array(
[1583] Fix | Delete
'default' => '2',
[1584] Fix | Delete
'type' => 'option',
[1585] Fix | Delete
'capability' => 'edit_theme_options',
[1586] Fix | Delete
'transport' => 'postMessage',
[1587] Fix | Delete
'sanitize_callback' => 'absint',
[1588] Fix | Delete
)
[1589] Fix | Delete
);
[1590] Fix | Delete
[1591] Fix | Delete
$wp_customize->add_control(
[1592] Fix | Delete
new ET_Divi_Range_Option(
[1593] Fix | Delete
$wp_customize,
[1594] Fix | Delete
'et_divi[row_padding]',
[1595] Fix | Delete
array(
[1596] Fix | Delete
'label' => esc_html__( 'Row Height', 'Divi' ),
[1597] Fix | Delete
'section' => 'et_divi_general_layout',
[1598] Fix | Delete
'type' => 'range',
[1599] Fix | Delete
'input_attrs' => array(
[1600] Fix | Delete
'min' => 0,
[1601] Fix | Delete
'max' => 10,
[1602] Fix | Delete
'step' => 1,
[1603] Fix | Delete
),
[1604] Fix | Delete
)
[1605] Fix | Delete
)
[1606] Fix | Delete
);
[1607] Fix | Delete
[1608] Fix | Delete
$wp_customize->add_setting(
[1609] Fix | Delete
'et_divi[phone_row_height]',
[1610] Fix | Delete
array(
[1611] Fix | Delete
'default' => et_get_option( 'tablet_row_height', '30' ),
[1612] Fix | Delete
'type' => 'option',
[1613] Fix | Delete
'capability' => 'edit_theme_options',
[1614] Fix | Delete
'transport' => 'postMessage',
[1615] Fix | Delete
'sanitize_callback' => 'absint',
[1616] Fix | Delete
)
[1617] Fix | Delete
);
[1618] Fix | Delete
[1619] Fix | Delete
$wp_customize->add_control(
[1620] Fix | Delete
new ET_Divi_Range_Option(
[1621] Fix | Delete
$wp_customize,
[1622] Fix | Delete
'et_divi[phone_row_height]',
[1623] Fix | Delete
array(
[1624] Fix | Delete
'label' => esc_html__( 'Row Height', 'Divi' ),
[1625] Fix | Delete
'section' => 'et_divi_mobile_phone',
[1626] Fix | Delete
'type' => 'range',
[1627] Fix | Delete
'input_attrs' => array(
[1628] Fix | Delete
'min' => 0,
[1629] Fix | Delete
'max' => 150,
[1630] Fix | Delete
'step' => 1,
[1631] Fix | Delete
),
[1632] Fix | Delete
)
[1633] Fix | Delete
)
[1634] Fix | Delete
);
[1635] Fix | Delete
[1636] Fix | Delete
$wp_customize->add_setting(
[1637] Fix | Delete
'et_divi[tablet_row_height]',
[1638] Fix | Delete
array(
[1639] Fix | Delete
'default' => '30',
[1640] Fix | Delete
'type' => 'option',
[1641] Fix | Delete
'capability' => 'edit_theme_options',
[1642] Fix | Delete
'transport' => 'postMessage',
[1643] Fix | Delete
'sanitize_callback' => 'absint',
[1644] Fix | Delete
)
[1645] Fix | Delete
);
[1646] Fix | Delete
[1647] Fix | Delete
$wp_customize->add_control(
[1648] Fix | Delete
new ET_Divi_Range_Option(
[1649] Fix | Delete
$wp_customize,
[1650] Fix | Delete
'et_divi[tablet_row_height]',
[1651] Fix | Delete
array(
[1652] Fix | Delete
'label' => esc_html__( 'Row Height', 'Divi' ),
[1653] Fix | Delete
'section' => 'et_divi_mobile_tablet',
[1654] Fix | Delete
'type' => 'range',
[1655] Fix | Delete
'input_attrs' => array(
[1656] Fix | Delete
'min' => 0,
[1657] Fix | Delete
'max' => 150,
[1658] Fix | Delete
'step' => 1,
[1659] Fix | Delete
),
[1660] Fix | Delete
)
[1661] Fix | Delete
)
[1662] Fix | Delete
);
[1663] Fix | Delete
[1664] Fix | Delete
$wp_customize->add_setting(
[1665] Fix | Delete
'et_divi[cover_background]',
[1666] Fix | Delete
array(
[1667] Fix | Delete
'default' => 'on',
[1668] Fix | Delete
'type' => 'option',
[1669] Fix | Delete
'capability' => 'edit_theme_options',
[1670] Fix | Delete
'transport' => 'postMessage',
[1671] Fix | Delete
'sanitize_callback' => 'wp_validate_boolean',
[1672] Fix | Delete
)
[1673] Fix | Delete
);
[1674] Fix | Delete
[1675] Fix | Delete
$wp_customize->add_control(
[1676] Fix | Delete
'et_divi[cover_background]',
[1677] Fix | Delete
array(
[1678] Fix | Delete
'label' => esc_html__( 'Stretch Background Image', 'Divi' ),
[1679] Fix | Delete
'section' => 'et_divi_general_background',
[1680] Fix | Delete
'type' => 'checkbox',
[1681] Fix | Delete
)
[1682] Fix | Delete
);
[1683] Fix | Delete
[1684] Fix | Delete
if ( ! is_null( $wp_customize->get_setting( 'background_color' ) ) ) {
[1685] Fix | Delete
$wp_customize->add_control(
[1686] Fix | Delete
new WP_Customize_Color_Control(
[1687] Fix | Delete
$wp_customize,
[1688] Fix | Delete
'background_color',
[1689] Fix | Delete
array(
[1690] Fix | Delete
'label' => esc_html__( 'Background Color', 'Divi' ),
[1691] Fix | Delete
'section' => 'et_divi_general_background',
[1692] Fix | Delete
)
[1693] Fix | Delete
)
[1694] Fix | Delete
);
[1695] Fix | Delete
}
[1696] Fix | Delete
[1697] Fix | Delete
if ( ! is_null( $wp_customize->get_setting( 'background_image' ) ) ) {
[1698] Fix | Delete
$wp_customize->add_control(
[1699] Fix | Delete
new WP_Customize_Image_Control(
[1700] Fix | Delete
$wp_customize,
[1701] Fix | Delete
'background_image',
[1702] Fix | Delete
array(
[1703] Fix | Delete
'label' => esc_html__( 'Background Image', 'Divi' ),
[1704] Fix | Delete
'section' => 'et_divi_general_background',
[1705] Fix | Delete
)
[1706] Fix | Delete
)
[1707] Fix | Delete
);
[1708] Fix | Delete
}
[1709] Fix | Delete
[1710] Fix | Delete
// Remove default background_repeat setting and control since native
[1711] Fix | Delete
// background_repeat field has different different settings.
[1712] Fix | Delete
$wp_customize->remove_setting( 'background_repeat' );
[1713] Fix | Delete
$wp_customize->remove_control( 'background_repeat' );
[1714] Fix | Delete
[1715] Fix | Delete
// Re-defined Divi specific background repeat option.
[1716] Fix | Delete
$wp_customize->add_setting(
[1717] Fix | Delete
'background_repeat',
[1718] Fix | Delete
array(
[1719] Fix | Delete
'default' => apply_filters( 'et_divi_background_repeat_default', 'repeat' ),
[1720] Fix | Delete
'sanitize_callback' => 'et_sanitize_background_repeat',
[1721] Fix | Delete
'theme_supports' => 'custom-background',
[1722] Fix | Delete
'capability' => 'edit_theme_options',
[1723] Fix | Delete
'transport' => 'postMessage',
[1724] Fix | Delete
)
[1725] Fix | Delete
);
[1726] Fix | Delete
[1727] Fix | Delete
$wp_customize->add_control(
[1728] Fix | Delete
'background_repeat',
[1729] Fix | Delete
array(
[1730] Fix | Delete
'label' => esc_html__( 'Background Repeat', 'Divi' ),
[1731] Fix | Delete
'section' => 'et_divi_general_background',
[1732] Fix | Delete
'type' => 'radio',
[1733] Fix | Delete
'choices' => et_divi_background_repeat_choices(),
[1734] Fix | Delete
)
[1735] Fix | Delete
);
[1736] Fix | Delete
[1737] Fix | Delete
$wp_customize->add_control(
[1738] Fix | Delete
'background_position_x',
[1739] Fix | Delete
array(
[1740] Fix | Delete
'label' => esc_html__( 'Background Position', 'Divi' ),
[1741] Fix | Delete
'section' => 'et_divi_general_background',
[1742] Fix | Delete
'type' => 'radio',
[1743] Fix | Delete
'choices' => array(
[1744] Fix | Delete
'left' => esc_html__( 'Left', 'Divi' ),
[1745] Fix | Delete
'center' => esc_html__( 'Center', 'Divi' ),
[1746] Fix | Delete
'right' => esc_html__( 'Right', 'Divi' ),
[1747] Fix | Delete
),
[1748] Fix | Delete
)
[1749] Fix | Delete
);
[1750] Fix | Delete
[1751] Fix | Delete
// Remove default background_attachment setting and control since native
[1752] Fix | Delete
// background_attachment field has different different settings.
[1753] Fix | Delete
$wp_customize->remove_setting( 'background_attachment' );
[1754] Fix | Delete
$wp_customize->remove_control( 'background_attachment' );
[1755] Fix | Delete
[1756] Fix | Delete
$wp_customize->add_setting(
[1757] Fix | Delete
'background_attachment',
[1758] Fix | Delete
array(
[1759] Fix | Delete
'default' => apply_filters( 'et_sanitize_background_attachment_default', 'scroll' ),
[1760] Fix | Delete
'sanitize_callback' => 'et_sanitize_background_attachment',
[1761] Fix | Delete
'theme_supports' => 'custom-background',
[1762] Fix | Delete
'capability' => 'edit_theme_options',
[1763] Fix | Delete
'transport' => 'postMessage',
[1764] Fix | Delete
)
[1765] Fix | Delete
);
[1766] Fix | Delete
[1767] Fix | Delete
$wp_customize->add_control(
[1768] Fix | Delete
'background_attachment',
[1769] Fix | Delete
array(
[1770] Fix | Delete
'label' => esc_html__( 'Background Position', 'Divi' ),
[1771] Fix | Delete
'section' => 'et_divi_general_background',
[1772] Fix | Delete
'type' => 'radio',
[1773] Fix | Delete
'choices' => et_divi_background_attachment_choices(),
[1774] Fix | Delete
)
[1775] Fix | Delete
);
[1776] Fix | Delete
[1777] Fix | Delete
$wp_customize->add_setting(
[1778] Fix | Delete
'et_divi[body_font_size]',
[1779] Fix | Delete
array(
[1780] Fix | Delete
'default' => '14',
[1781] Fix | Delete
'type' => 'option',
[1782] Fix | Delete
'capability' => 'edit_theme_options',
[1783] Fix | Delete
'transport' => 'postMessage',
[1784] Fix | Delete
'sanitize_callback' => 'absint',
[1785] Fix | Delete
)
[1786] Fix | Delete
);
[1787] Fix | Delete
[1788] Fix | Delete
$wp_customize->add_control(
[1789] Fix | Delete
new ET_Divi_Range_Option(
[1790] Fix | Delete
$wp_customize,
[1791] Fix | Delete
'et_divi[body_font_size]',
[1792] Fix | Delete
array(
[1793] Fix | Delete
'label' => esc_html__( 'Body Text Size', 'Divi' ),
[1794] Fix | Delete
'section' => 'et_divi_general_typography',
[1795] Fix | Delete
'type' => 'range',
[1796] Fix | Delete
'input_attrs' => array(
[1797] Fix | Delete
'min' => 10,
[1798] Fix | Delete
'max' => 32,
[1799] Fix | Delete
'step' => 1,
[1800] Fix | Delete
),
[1801] Fix | Delete
)
[1802] Fix | Delete
)
[1803] Fix | Delete
);
[1804] Fix | Delete
[1805] Fix | Delete
$wp_customize->add_setting(
[1806] Fix | Delete
'et_divi[body_font_height]',
[1807] Fix | Delete
array(
[1808] Fix | Delete
'default' => '1.7',
[1809] Fix | Delete
'type' => 'option',
[1810] Fix | Delete
'capability' => 'edit_theme_options',
[1811] Fix | Delete
'transport' => 'postMessage',
[1812] Fix | Delete
'sanitize_callback' => 'et_sanitize_float_number',
[1813] Fix | Delete
)
[1814] Fix | Delete
);
[1815] Fix | Delete
[1816] Fix | Delete
$wp_customize->add_control(
[1817] Fix | Delete
new ET_Divi_Range_Option(
[1818] Fix | Delete
$wp_customize,
[1819] Fix | Delete
'et_divi[body_font_height]',
[1820] Fix | Delete
array(
[1821] Fix | Delete
'label' => esc_html__( 'Body Line Height', 'Divi' ),
[1822] Fix | Delete
'section' => 'et_divi_general_typography',
[1823] Fix | Delete
'type' => 'range',
[1824] Fix | Delete
'input_attrs' => array(
[1825] Fix | Delete
'min' => 0.8,
[1826] Fix | Delete
'max' => 3,
[1827] Fix | Delete
'step' => 0.1,
[1828] Fix | Delete
),
[1829] Fix | Delete
)
[1830] Fix | Delete
)
[1831] Fix | Delete
);
[1832] Fix | Delete
[1833] Fix | Delete
$wp_customize->add_setting(
[1834] Fix | Delete
'et_divi[phone_body_font_size]',
[1835] Fix | Delete
array(
[1836] Fix | Delete
'default' => et_get_option( 'tablet_body_font_size', '14' ),
[1837] Fix | Delete
'type' => 'option',
[1838] Fix | Delete
'capability' => 'edit_theme_options',
[1839] Fix | Delete
'transport' => 'postMessage',
[1840] Fix | Delete
'sanitize_callback' => 'absint',
[1841] Fix | Delete
)
[1842] Fix | Delete
);
[1843] Fix | Delete
[1844] Fix | Delete
$wp_customize->add_control(
[1845] Fix | Delete
new ET_Divi_Range_Option(
[1846] Fix | Delete
$wp_customize,
[1847] Fix | Delete
'et_divi[phone_body_font_size]',
[1848] Fix | Delete
array(
[1849] Fix | Delete
'label' => esc_html__( 'Body Text Size', 'Divi' ),
[1850] Fix | Delete
'section' => 'et_divi_mobile_phone',
[1851] Fix | Delete
'type' => 'range',
[1852] Fix | Delete
'input_attrs' => array(
[1853] Fix | Delete
'min' => 10,
[1854] Fix | Delete
'max' => 32,
[1855] Fix | Delete
'step' => 1,
[1856] Fix | Delete
),
[1857] Fix | Delete
)
[1858] Fix | Delete
)
[1859] Fix | Delete
);
[1860] Fix | Delete
[1861] Fix | Delete
$wp_customize->add_setting(
[1862] Fix | Delete
'et_divi[tablet_body_font_size]',
[1863] Fix | Delete
array(
[1864] Fix | Delete
'default' => et_get_option( 'body_font_size', '14' ),
[1865] Fix | Delete
'type' => 'option',
[1866] Fix | Delete
'capability' => 'edit_theme_options',
[1867] Fix | Delete
'transport' => 'postMessage',
[1868] Fix | Delete
'sanitize_callback' => 'absint',
[1869] Fix | Delete
)
[1870] Fix | Delete
);
[1871] Fix | Delete
[1872] Fix | Delete
$wp_customize->add_control(
[1873] Fix | Delete
new ET_Divi_Range_Option(
[1874] Fix | Delete
$wp_customize,
[1875] Fix | Delete
'et_divi[tablet_body_font_size]',
[1876] Fix | Delete
array(
[1877] Fix | Delete
'label' => esc_html__( 'Body Text Size', 'Divi' ),
[1878] Fix | Delete
'section' => 'et_divi_mobile_tablet',
[1879] Fix | Delete
'type' => 'range',
[1880] Fix | Delete
'input_attrs' => array(
[1881] Fix | Delete
'min' => 10,
[1882] Fix | Delete
'max' => 32,
[1883] Fix | Delete
'step' => 1,
[1884] Fix | Delete
),
[1885] Fix | Delete
)
[1886] Fix | Delete
)
[1887] Fix | Delete
);
[1888] Fix | Delete
[1889] Fix | Delete
$wp_customize->add_setting(
[1890] Fix | Delete
'et_divi[body_header_size]',
[1891] Fix | Delete
array(
[1892] Fix | Delete
'default' => '30',
[1893] Fix | Delete
'type' => 'option',
[1894] Fix | Delete
'capability' => 'edit_theme_options',
[1895] Fix | Delete
'transport' => 'postMessage',
[1896] Fix | Delete
'sanitize_callback' => 'absint',
[1897] Fix | Delete
)
[1898] Fix | Delete
);
[1899] Fix | Delete
[1900] Fix | Delete
$wp_customize->add_control(
[1901] Fix | Delete
new ET_Divi_Range_Option(
[1902] Fix | Delete
$wp_customize,
[1903] Fix | Delete
'et_divi[body_header_size]',
[1904] Fix | Delete
array(
[1905] Fix | Delete
'label' => esc_html__( 'Header Text Size', 'Divi' ),
[1906] Fix | Delete
'section' => 'et_divi_general_typography',
[1907] Fix | Delete
'type' => 'range',
[1908] Fix | Delete
'input_attrs' => array(
[1909] Fix | Delete
'min' => 22,
[1910] Fix | Delete
'max' => 72,
[1911] Fix | Delete
'step' => 1,
[1912] Fix | Delete
),
[1913] Fix | Delete
)
[1914] Fix | Delete
)
[1915] Fix | Delete
);
[1916] Fix | Delete
[1917] Fix | Delete
$wp_customize->add_setting(
[1918] Fix | Delete
'et_divi[body_header_spacing]',
[1919] Fix | Delete
array(
[1920] Fix | Delete
'default' => '0',
[1921] Fix | Delete
'type' => 'option',
[1922] Fix | Delete
'capability' => 'edit_theme_options',
[1923] Fix | Delete
'transport' => 'postMessage',
[1924] Fix | Delete
'sanitize_callback' => 'et_sanitize_int_number',
[1925] Fix | Delete
)
[1926] Fix | Delete
);
[1927] Fix | Delete
[1928] Fix | Delete
$wp_customize->add_control(
[1929] Fix | Delete
new ET_Divi_Range_Option(
[1930] Fix | Delete
$wp_customize,
[1931] Fix | Delete
'et_divi[body_header_spacing]',
[1932] Fix | Delete
array(
[1933] Fix | Delete
'label' => esc_html__( 'Header Letter Spacing', 'Divi' ),
[1934] Fix | Delete
'section' => 'et_divi_general_typography',
[1935] Fix | Delete
'type' => 'range',
[1936] Fix | Delete
'input_attrs' => array(
[1937] Fix | Delete
'min' => -2,
[1938] Fix | Delete
'max' => 10,
[1939] Fix | Delete
'step' => 1,
[1940] Fix | Delete
),
[1941] Fix | Delete
)
[1942] Fix | Delete
)
[1943] Fix | Delete
);
[1944] Fix | Delete
[1945] Fix | Delete
$wp_customize->add_setting(
[1946] Fix | Delete
'et_divi[body_header_height]',
[1947] Fix | Delete
array(
[1948] Fix | Delete
'default' => '1',
[1949] Fix | Delete
'type' => 'option',
[1950] Fix | Delete
'capability' => 'edit_theme_options',
[1951] Fix | Delete
'transport' => 'postMessage',
[1952] Fix | Delete
'sanitize_callback' => 'et_sanitize_float_number',
[1953] Fix | Delete
)
[1954] Fix | Delete
);
[1955] Fix | Delete
[1956] Fix | Delete
$wp_customize->add_control(
[1957] Fix | Delete
new ET_Divi_Range_Option(
[1958] Fix | Delete
$wp_customize,
[1959] Fix | Delete
'et_divi[body_header_height]',
[1960] Fix | Delete
array(
[1961] Fix | Delete
'label' => esc_html__( 'Header Line Height', 'Divi' ),
[1962] Fix | Delete
'section' => 'et_divi_general_typography',
[1963] Fix | Delete
'type' => 'range',
[1964] Fix | Delete
'input_attrs' => array(
[1965] Fix | Delete
'min' => 0.8,
[1966] Fix | Delete
'max' => 3,
[1967] Fix | Delete
'step' => 0.1,
[1968] Fix | Delete
),
[1969] Fix | Delete
)
[1970] Fix | Delete
)
[1971] Fix | Delete
);
[1972] Fix | Delete
[1973] Fix | Delete
$wp_customize->add_setting(
[1974] Fix | Delete
'et_divi[body_header_style]',
[1975] Fix | Delete
array(
[1976] Fix | Delete
'default' => '',
[1977] Fix | Delete
'type' => 'option',
[1978] Fix | Delete
'capability' => 'edit_theme_options',
[1979] Fix | Delete
'transport' => 'postMessage',
[1980] Fix | Delete
'sanitize_callback' => 'et_sanitize_font_style',
[1981] Fix | Delete
)
[1982] Fix | Delete
);
[1983] Fix | Delete
[1984] Fix | Delete
$wp_customize->add_control(
[1985] Fix | Delete
new ET_Divi_Font_Style_Option(
[1986] Fix | Delete
$wp_customize,
[1987] Fix | Delete
'et_divi[body_header_style]',
[1988] Fix | Delete
array(
[1989] Fix | Delete
'label' => esc_html__( 'Header Font Style', 'Divi' ),
[1990] Fix | Delete
'section' => 'et_divi_general_typography',
[1991] Fix | Delete
'type' => 'font_style',
[1992] Fix | Delete
'choices' => et_divi_font_style_choices(),
[1993] Fix | Delete
)
[1994] Fix | Delete
)
[1995] Fix | Delete
);
[1996] Fix | Delete
[1997] Fix | Delete
$wp_customize->add_setting(
[1998] Fix | Delete
'et_divi[phone_header_font_size]',
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function