Genesis Title Toggle - Version 1.4

Version Description

  • Updated to work with all StudioPress themes with post formats
Download this release

Release Info

Developer billerickson
Plugin Icon 128x128 Genesis Title Toggle
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

Files changed (2) hide show
  1. genesis-title-toggle.php +5 -1
  2. readme.txt +5 -4
genesis-title-toggle.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Genesis Title Toggle
4
  Plugin URI: http://www.billerickson.net/
5
  Description: Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
6
- Version: 1.3
7
  Author: Bill Erickson
8
  Author URI: http://www.billerickson.net
9
  License: GPLv2
@@ -33,6 +33,10 @@ class BE_Title_Toggle {
33
 
34
  // Removes Page Title
35
  add_action( 'genesis_before', array( $this, 'title_toggle' ) );
 
 
 
 
36
  }
37
 
38
  /**
3
  Plugin Name: Genesis Title Toggle
4
  Plugin URI: http://www.billerickson.net/
5
  Description: Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
6
+ Version: 1.4
7
  Author: Bill Erickson
8
  Author URI: http://www.billerickson.net
9
  License: GPLv2
33
 
34
  // Removes Page Title
35
  add_action( 'genesis_before', array( $this, 'title_toggle' ) );
36
+
37
+ // If using post formats, have to hook in later for some themes
38
+ if( current_theme_supports( 'post-formats' ) )
39
+ add_action( 'genesis_before_post', array( $this, 'title_toggle' ), 20 );
40
  }
41
 
42
  /**
readme.txt CHANGED
@@ -3,15 +3,13 @@ Contributors: billerickson
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EDYM76U6BTE5L
4
  Tags: genesis, genesiswp, title,
5
  Requires at least: 3.0
6
- Tested up to: 3.4.1
7
- Stable tag: 1.3
8
 
9
  Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
10
 
11
  == Description ==
12
 
13
- This plugin requires the [Genesis theme framework](http://www.billerickson.net/go/genesis).
14
-
15
  This plugin lets you easily remove the page title from specific pages. Don't want "Home" at the top of your homepage? Activate, then edit the homepage and check "Hide".
16
 
17
  You can also set sitewide defaults. If you don't want page titles on any pages, go to Genesis > Theme Settings > Title Toggle and check the appropriate box. Once a post type has the default set to remove, when editing a page you can selectively turn on that page's title.
@@ -42,6 +40,9 @@ Finally, if you're comfortable with code you can use the `be_title_toggle_post_t
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 1.3 =
46
  * Updated the metabox library to latest version
47
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EDYM76U6BTE5L
4
  Tags: genesis, genesiswp, title,
5
  Requires at least: 3.0
6
+ Tested up to: 3.5
7
+ Stable tag: 1.4
8
 
9
  Turn on/off page titles on a per page basis, and set sitewide defaults from Theme Settings. Must be using the Genesis theme.
10
 
11
  == Description ==
12
 
 
 
13
  This plugin lets you easily remove the page title from specific pages. Don't want "Home" at the top of your homepage? Activate, then edit the homepage and check "Hide".
14
 
15
  You can also set sitewide defaults. If you don't want page titles on any pages, go to Genesis > Theme Settings > Title Toggle and check the appropriate box. Once a post type has the default set to remove, when editing a page you can selectively turn on that page's title.
40
 
41
  == Changelog ==
42
 
43
+ = 1.4 =
44
+ * Updated to work with all StudioPress themes with post formats
45
+
46
  = 1.3 =
47
  * Updated the metabox library to latest version
48