This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| show_admin_bar( false ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> | |
| <title>untitled</title> | |
| <link rel="stylesheet" href="" /> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Register custom post types on the 'init' hook. */ | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 0.1.0 | |
| * @access public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //In template change <?php the_content(); ?> to: | |
| <?php the_excerpt(); ?> | |
| //_________________________________________________________ | |
| // In functions.php: | |
| // Add read more link to posts after excerpt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Alter the widget title markup | |
| add_filter('dynamic_sidebar_params', 'wrap_widget_titles', 20); | |
| /** | |
| * Wrap the widget titles - including any existing before/after title markup | |
| * inside an extra div we can target with div.widget_title_wrapper. | |
| * | |
| * If we needed to do this selectively we could test against $widget['name'] | |
| * or $widget['id']. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| height: 500px; /* Some kind of height is necessary here. */ | |
| line-height: 500px; /* This value should equal the height */ | |
| text-align: center; /* This horizontally centers the element */ | |
| background-color: #66D9EF; | |
| } | |
| .centered { | |
| display: inline-block; | |
| *display: inline; zoom: 1; /* IE7 inline-block hack */ |