Digital experiences for all disciplines
New Landing › How can we help? › General › Feedback & Suggestions › Typekit in Redux Framework and settings for Maintenance Mode
New Landing › How can we help? › General › Feedback & Suggestions › Typekit in Redux Framework and settings for Maintenance Mode
- This topic has 6 replies, 5 voices, and was last updated 7 years by Swift Ideas – Ed.
-
Posted in: Feedback & Suggestions
-
October 11, 2015 at 3:33 pm #219884
Hi, just purchased your theme Atelier and it suits our site like a glove!
There are some things I would like to see in the future updates:
* Please include Typekit options in the Redux framework, I’ve seen this feature in other themes (the one we’re using now anyways). Your solution using a custom css with !important tags is not optimal ๐
* Another nice feature you have is the Maintenance Mode setting, that means one less plugin needed when using Atelier ๐ There would be nice if we could have more options along with the regular settings like:
Access by role: Shop Manager, Subscriber etc.
Access by IP: allow visitors from certain IPs to access the page.These maintenance settings would allow clients/developers to preview the site in other ways than using an Admin account.
Just some ideas / Jimmy
October 12, 2015 at 4:05 pm #220173Hi,
Glad you are enjoying the theme.
Thanks for the input. Will forward the suggestion to the development team.-Rui
October 13, 2015 at 2:19 pm #220476Thanks for the feedback – will consider those for future updates.
– Ed
October 13, 2015 at 10:46 pm #220628Sounds good ๐
If we could have a textfield in the font options called “Typekit ID” and when it is filled with ID, the necessary javascript is loaded. See http://help.typekit.com/customer/portal/articles/649336
Then we could have a checkbox next to each font option “Use Typekit” and when checked the font dropdown changes to a textfield where we can fill in our font name. Keeping all the other font options (size, line-height, weight etc.) as the standard fonts has.
My temporary fix for Typekit is to simply edit the field_typography.php in the swiftframework plugin, and append the standard fonts with my Typekit like so:
... "'Trebuchet MS', Helvetica, sans-serif" => "'Trebuchet MS', Helvetica, sans-serif", "Verdana, Geneva, sans-serif" => "Verdana, Geneva, sans-serif", "jubilat, sans-serif" => "jubilat, sans-serif", "brandon-grotesque, sans-serif" => "brandon-grotesque, sans-serif", );
I may have to do this every time I update the plugin, but I’d rather do that instead of using a lot of !important tags in the css ๐
As for the maintenance thing, using “access by IP” makes it really easy to preview the page without login in when launching a new site. It also helps developers to show the work progress for clients, and if we could let shop managers (capability: manage_woocommerce) and other users access the page while in maintenance, they could add their products while developers are working on the design and features.
My temporary fix for Maintenance is to add this to my functions.php:
add_action( 'get_header', 'sf_maintenance_mode' ); if ( ! function_exists( 'sf_maintenance_mode' ) ) { function sf_maintenance_mode() { global $sf_options; $custom_logo = array(); $custom_logo_output = $maintenance_mode = ""; if ( isset( $sf_options['custom_admin_login_logo'] ) ) { $custom_logo = $sf_options['custom_admin_login_logo']; } if ( isset( $custom_logo['url'] ) ) { $custom_logo_output = '<img src="' . $custom_logo['url'] . '" alt="maintenance" style="margin: 0 auto; display: block;" />'; } else { $custom_logo_output = '<img src="' . get_template_directory_uri() . '/images/custom-login-logo.png" alt="maintenance" style="margin: 0 auto; display: block;" />'; } if ( isset( $sf_options['enable_maintenance'] ) ) { $maintenance_mode = $sf_options['enable_maintenance']; } else { $maintenance_mode = false; } if ( $maintenance_mode == 2 ) { $holding_page = __( $sf_options['maintenance_mode_page'], 'swiftframework' ); $current_page_URL = sf_current_page_url(); $holding_page_URL = get_permalink( $holding_page ); $ip = $_SERVER['REMOTE_ADDR']; // added $allowed = array('XXX.XXX.XXX.XXX','XXX.XXX.XXX.XXX'); // added if ( $current_page_URL != $holding_page_URL ) { // if ( ! current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) { if ( ! in_array($ip, $allowed) ) { // changed wp_redirect( $holding_page_URL ); exit; } } } else if ( $maintenance_mode == 1 ) { if ( ! current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) { wp_die( $custom_logo_output . '<p style="text-align:center">' . __( 'We are currently in maintenance mode, please check back shortly.', 'swiftframework' ) . '</p>', get_bloginfo( 'name' ) ); } } } }
Thanks again for the smoothest theme I’ve worked with yet.
Cheers!
October 14, 2015 at 9:39 am #220708Thanks for providing your modifications, we will look into what we can do with these going forward.
Cheers,
David.March 3, 2017 at 9:58 am #315860Any News regarding Typekit fonts?
March 6, 2017 at 12:43 am #315984Hi @jensche
We are going to try and look at this for the next update, as part of the feature additions for that update.
Thanks,
– Ed
-
Posted in: Feedback & Suggestions
You must be logged in and have valid license to reply to this topic.