Try these rules:
(in www.domain.com's server block)
rewrite ^/$ http://domain.com permanent break;
rewrite ^/main(.*)$ http://domain.com$1 permanent break;
| /* media-queries.less */ | |
| /* | |
| Deffined on variables.less from bootstrap | |
| Large screen / wide desktop / screen >= 1200px | |
| Medium screen / desktop / 992px >= screen < 1200px | |
| Small screen / tablet / 768px >= screen < 992px | |
| Extra small screen / phone / 480px >= screen < 768px | |
| Very small screen / Outdated phone / screen < 480px | |
| */ | |
| /* Large screen & Biger */ |
Try these rules:
(in www.domain.com's server block)
rewrite ^/$ http://domain.com permanent break;
rewrite ^/main(.*)$ http://domain.com$1 permanent break;
| <?php | |
| /** | |
| * Theme Activation Tour | |
| * | |
| * This class handles the pointers used in the introduction tour. | |
| * @package Popup Demo | |
| * | |
| */ | |
| class WordImpress_Theme_Tour { |
| <?php | |
| /** | |
| * Plugin Name: My Amdin Pointers | |
| * Plugin URI: https://gist.github.com/brasofilo/6947539 | |
| * Version: 0.1 | |
| * Author: Rodolfo Buaiz | |
| * Author URI: http://brasofilo.com | |
| * Licence: GPLv3 | |
| * |
| <?php | |
| /** | |
| * Get all the registered image sizes along with their dimensions | |
| * | |
| * @global array $_wp_additional_image_sizes | |
| * | |
| * @link http://core.trac.wordpress.org/ticket/18947 Reference ticket | |
| * @return array $image_sizes The image sizes | |
| */ | |
| function _get_all_image_sizes() { |
| /** | |
| * Custom Gallery Setting | |
| */ | |
| ( function( $ ) { | |
| var media = wp.media; | |
| // Wrap the render() function to append controls | |
| media.view.Settings.Gallery = media.view.Settings.Gallery.extend({ | |
| render: function() { | |
| media.view.Settings.prototype.render.apply( this, arguments ); |
| <?php | |
| add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
| /** | |
| * Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
| * IE10 and up does not support conditional comments in standards mode. | |
| * | |
| * @uses wp_style_add_data() WordPress function to add the conditional data. | |
| * @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |