Skip to content

Commit 340149f

Browse files
author
Cosmin
committed
selective refresh for widgets #95
1 parent e574010 commit 340149f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function shapely_setup() {
9595

9696
add_image_size( 'shapely-featured', 848, 566, true );
9797

98+
add_theme_support( 'customize-selective-refresh-widgets' );
9899
// Welcome screen
99100
if ( is_admin() ) {
100101
global $shapely_required_actions, $shapely_recommended_plugins;

style.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://colorlib.com/wp/themes/shapely
44
Author: colorlib
55
Author URI: https://colorlib.com/
66
Description: Shapely is a powerful and versatile one page WordPress theme with pixel perfect design and outstanding functionality. It is by far the most advanced free WordPress theme available today with loads of unmatched customization options. This theme comes with several homepage widgets that can be used to add portfolio, testimonials, parallax sections, your product or service information, call for action and much more. Shapely supports most free and premium WordPress plugins such as WooCommerce, Jetpack, Gravity Forms, Contact Form 7, Yoast SEO, Google Analytics by Yoast and much more. This theme is the best suited for business, landing page, portfolio, ecommerce, store, local business, personal websites but can be tweaked to be used as blog, magazine or any other awesome website while highlighting its unique one page setup. This is going to be the last WordPress theme you will ever want to use because it is so much better than anything you have seen. Needless to say that this theme is SEO friendly thanks to its well optimized strucutre. Shapely theme is mobile friendly and fully responsive making it your best multipurpose partnert for any project and website.
7-
Version: 1.0.7
7+
Version: 1.7.0
88
License: GNU General Public License v3
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Text Domain: shapely
@@ -2050,11 +2050,11 @@ input[type="submit"]:focus {
20502050
}
20512051

20522052
.widget {
2053-
margin-bottom: 48px;
2053+
margin-bottom: 0;
20542054
}
20552055

2056-
.content-area .widget {
2057-
margin-bottom: 0;
2056+
#secondary .widget {
2057+
margin-bottom: 48px;
20582058
}
20592059

20602060
.category-list {
@@ -3167,4 +3167,8 @@ footer.bg-dark a {
31673167
.header-image-bg .page-title {
31683168
position: relative;
31693169
z-index: 2;
3170+
}
3171+
3172+
.customize-partial-edit-shortcut button, .widget .customize-partial-edit-shortcut button {
3173+
left: 0 !important;
31703174
}

0 commit comments

Comments
 (0)