From 9ac936b61ebf2c88e536f251e842e6eb7e1c7b05 Mon Sep 17 00:00:00 2001 From: TruongSa Date: Sat, 24 Dec 2016 13:09:00 +0700 Subject: [PATCH 1/2] Fix social icons --- inc/template-tags.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 1e3781af..34ff7e96 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -732,13 +732,15 @@ function onepress_get_social_profiles() // If icon isset $icons = array(); $array[$k]['icon'] = trim($array[$k]['icon']); - if ($array[$k]['icon'] != '' && strpos($array[$k]['icon'], 'fa-') !== 0) { - $icons['fa-' . $array[$k]['icon']] = 'fa-' . $array[$k]['icon']; + + if ($array[$k]['icon'] != '' && strpos($array[$k]['icon'], 'fa') !== 0) { + $icons[$array[$k]['icon']] = 'fa-' . $array[$k]['icon']; } else { $icons[$array[$k]['icon']] = $array[$k]['icon']; } + $network = ($array[$k]['network']) ? sanitize_title($array[$k]['network']) : false; - if ($network) { + if ( $network && ! $array[$k]['icon'] ) { $icons['fa-' . $network] = 'fa-' . $network; } From 1488fac736bdbeb41acfa1029a82f1e96e9395f3 Mon Sep 17 00:00:00 2001 From: Cong Thien Date: Wed, 28 Dec 2016 14:42:07 +0700 Subject: [PATCH 2/2] make contact form label full width --- assets/sass/_sections.scss | 3 +++ style.css | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/assets/sass/_sections.scss b/assets/sass/_sections.scss index bcabeb20..98f97636 100644 --- a/assets/sass/_sections.scss +++ b/assets/sass/_sections.scss @@ -888,6 +888,9 @@ br { margin-bottom: 5px; } + label { + width: 100%; + } } div.wpcf7-validation-errors { diff --git a/style.css b/style.css index f2784c93..1958ecfd 100644 --- a/style.css +++ b/style.css @@ -3019,6 +3019,10 @@ section > .customize-partial-edit-shortcut button { margin-bottom: 5px; } +.wpcf7-form label { + width: 100%; +} + div.wpcf7-validation-errors { margin: 20px 0px; padding: 15px;