Fullwidth Templates for Any Theme & Page Builder - Version 1.0.1

Version Description

  • New: Support for storefront theme.
  • New: Support Custom Post types created by plugin Custom Post Type UI.
Download this release

Release Info

Developer Nikschavan
Plugin Icon 128x128 Fullwidth Templates for Any Theme & Page Builder
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

README.md CHANGED
@@ -4,7 +4,7 @@
4
  **Donate link:** https://www.brainstormforce.com/payment/
5
  **Requires at least:** 4.2 or later
6
  **Tested up to:** 4.7.2
7
- **Stable tag:** 1.0.0
8
  **License:** GPLv2 or later
9
  **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,8 +59,8 @@ Need help with something? Have an issue to report? [Get in touch][1] with us on
59
  <blockquote>
60
  ### Disclaimer - ###
61
 
62
- * This option works on most of the themes; but it might not work on few depending on it's layout structure.
63
- * Please open up an issue on [GitHub][1] or send us a pull request for adding compatibility with your theme.
64
  <p></p>
65
  </blockquote>
66
 
@@ -69,7 +69,6 @@ Project by [Brainstorm Force][3].
69
  [2]: https://github.com/brainstormforce/fullwidth-templates/
70
  [3]: https://www.brainstormforce.com/
71
 
72
-
73
  ## Installation ##
74
 
75
  1. Install Fullwidth Templates either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
@@ -94,3 +93,12 @@ Check Screenshots for more details.
94
  ### 5. Blank - No Header / Footer Template ###
95
  ![Blank - No Header / Footer Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-5.png)
96
 
 
 
 
 
 
 
 
 
 
4
  **Donate link:** https://www.brainstormforce.com/payment/
5
  **Requires at least:** 4.2 or later
6
  **Tested up to:** 4.7.2
7
+ **Stable tag:** 1.0.1
8
  **License:** GPLv2 or later
9
  **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
  <blockquote>
60
  ### Disclaimer - ###
61
 
62
+ This option works on most of the themes; but it might not work on few depending on it's layout structure.
63
+ Please open up an issue on GitHub or send us a pull request for adding compatibility with your theme.
64
  <p></p>
65
  </blockquote>
66
 
69
  [2]: https://github.com/brainstormforce/fullwidth-templates/
70
  [3]: https://www.brainstormforce.com/
71
 
 
72
  ## Installation ##
73
 
74
  1. Install Fullwidth Templates either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
93
  ### 5. Blank - No Header / Footer Template ###
94
  ![Blank - No Header / Footer Template](http://ps.w.org/fullwidth-templates-for-any-theme-&-page-builder/assets/screenshot-5.png)
95
 
96
+
97
+ ## Changelog ##
98
+
99
+ ### 1.0.1 ###
100
+ - New: Support for storefront theme.
101
+ - New: Support Custom Post types created by plugin Custom Post Type UI.
102
+
103
+ ### 1.0.0 ###
104
+ - Initial Release
assets/css/fullwidth-template.css CHANGED
@@ -5,7 +5,8 @@
5
  .fpt-template.fpt-template-evolve > #wrapper,
6
  .fpt-template.fpt-template-evolve .content > .row,
7
  .fpt-template #page,
8
- .fpt-template {
 
9
  max-width: 100% !important;
10
  width: 100% !important;
11
  padding: 0 !important;
@@ -62,4 +63,9 @@ body.page-template-template-page-builder-php:not(.custom-background-image):after
62
  .page-template-template-page-builder-no-sidebar .side-pull-left .main-content-inner {
63
  width: 100%;
64
  float: none;
 
 
 
 
 
65
  }
5
  .fpt-template.fpt-template-evolve > #wrapper,
6
  .fpt-template.fpt-template-evolve .content > .row,
7
  .fpt-template #page,
8
+ .fpt-template,
9
+ .fpt-template.fpt-template-storefront.page-template-template-page-builder #content .col-full {
10
  max-width: 100% !important;
11
  width: 100% !important;
12
  padding: 0 !important;
63
  .page-template-template-page-builder-no-sidebar .side-pull-left .main-content-inner {
64
  width: 100%;
65
  float: none;
66
+ }
67
+
68
+ /* Storefront Theme */
69
+ .fpt-template.fpt-template-storefront.no-wc-breadcrumb .site-header {
70
+ margin-bottom: 0;
71
  }
class-fullwidth-page-templates.php CHANGED
@@ -26,7 +26,7 @@ class Dynamic_Header_Footer {
26
  );
27
  } else {
28
  // Add a filter to the wp 4.7 version attributes metabox
29
- $this->post_type_template();
30
  }
31
 
32
  // Add a filter to the save post to inject out template into the page cache
@@ -86,14 +86,16 @@ class Dynamic_Header_Footer {
86
  require_once FPT_DIR . '/templates/default/template-helpers.php';
87
  }
88
 
89
- private function post_type_template() {
90
  $args = array(
91
- 'public' => true,
92
- '_builtin' => true
93
  );
94
 
95
  $post_types = get_post_types( $args, 'names', 'and' );
96
 
 
 
 
97
  if ( ! empty( $post_types ) ) {
98
 
99
  foreach ( $post_types as $post_type ) {
26
  );
27
  } else {
28
  // Add a filter to the wp 4.7 version attributes metabox
29
+ add_action( 'init', array( $this, 'post_type_template' ), 999 );
30
  }
31
 
32
  // Add a filter to the save post to inject out template into the page cache
86
  require_once FPT_DIR . '/templates/default/template-helpers.php';
87
  }
88
 
89
+ public function post_type_template() {
90
  $args = array(
91
+ 'public' => true
 
92
  );
93
 
94
  $post_types = get_post_types( $args, 'names', 'and' );
95
 
96
+ // Disable some of the known unwanted post types.
97
+ unset( $post_types['attachment'] );
98
+
99
  if ( ! empty( $post_types ) ) {
100
 
101
  foreach ( $post_types as $post_type ) {
fullwidth-page-template.php CHANGED
@@ -7,14 +7,14 @@
7
  * Author URI: https://www.brainnstormforce.com
8
  * Text Domain: fullwidth-page-template
9
  * Domain Path: /languages
10
- * Version: 1.0.0
11
  *
12
  * @package Fullwidth_Page_Templates
13
  */
14
 
15
  require_once 'class-fullwidth-page-templates.php';
16
 
17
- define( 'FPT_VER', '1.0.0' );
18
  define( 'FPT_DIR', plugin_dir_path( __FILE__ ) );
19
  define( 'FPT_URL', plugins_url( '/', __FILE__ ) );
20
  define( 'FPT_PATH', plugin_basename( __FILE__ ) );
7
  * Author URI: https://www.brainnstormforce.com
8
  * Text Domain: fullwidth-page-template
9
  * Domain Path: /languages
10
+ * Version: 1.0.1
11
  *
12
  * @package Fullwidth_Page_Templates
13
  */
14
 
15
  require_once 'class-fullwidth-page-templates.php';
16
 
17
+ define( 'FPT_VER', '1.0.1' );
18
  define( 'FPT_DIR', plugin_dir_path( __FILE__ ) );
19
  define( 'FPT_URL', plugins_url( '/', __FILE__ ) );
20
  define( 'FPT_PATH', plugin_basename( __FILE__ ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: full width, fullwidth, template, beaver builder, elementor, genesis, prime
4
  Donate link: https://www.brainstormforce.com/payment/
5
  Requires at least: 4.2 or later
6
  Tested up to: 4.7.2
7
- Stable tag: 1.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,8 +59,8 @@ Need help with something? Have an issue to report? [Get in touch][1] with us on
59
  <blockquote>
60
  = Disclaimer - =
61
 
62
- * This option works on most of the themes; but it might not work on few depending on it's layout structure.
63
- * Please open up an issue on [GitHub][1] or send us a pull request for adding compatibility with your theme.
64
  <p></p>
65
  </blockquote>
66
 
@@ -69,7 +69,6 @@ Project by [Brainstorm Force][3].
69
  [2]: https://github.com/brainstormforce/fullwidth-templates/
70
  [3]: https://www.brainstormforce.com/
71
 
72
-
73
  == Installation ==
74
 
75
  1. Install Fullwidth Templates either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
@@ -84,3 +83,12 @@ Check Screenshots for more details.
84
  3. No Sidebar Template
85
  4. Fullwidth Template
86
  5. Blank - No Header / Footer Template
 
 
 
 
 
 
 
 
 
4
  Donate link: https://www.brainstormforce.com/payment/
5
  Requires at least: 4.2 or later
6
  Tested up to: 4.7.2
7
+ Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
  <blockquote>
60
  = Disclaimer - =
61
 
62
+ This option works on most of the themes; but it might not work on few depending on it's layout structure.
63
+ Please open up an issue on GitHub or send us a pull request for adding compatibility with your theme.
64
  <p></p>
65
  </blockquote>
66
 
69
  [2]: https://github.com/brainstormforce/fullwidth-templates/
70
  [3]: https://www.brainstormforce.com/
71
 
 
72
  == Installation ==
73
 
74
  1. Install Fullwidth Templates either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
83
  3. No Sidebar Template
84
  4. Fullwidth Template
85
  5. Blank - No Header / Footer Template
86
+
87
+ == Changelog ==
88
+
89
+ = 1.0.1 =
90
+ - New: Support for storefront theme.
91
+ - New: Support Custom Post types created by plugin Custom Post Type UI.
92
+
93
+ = 1.0.0 =
94
+ - Initial Release