开发者 |
daveshine
deckerweb |
---|---|
更新时间 | 2019年2月22日 06:02 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 5.1 |
版权: | GPL-2.0+ |
版权网址: | 版权信息 |
FINALLY: Add a Widgetized Homepage to Your Prose Child Theme Finally have a homepage template for Prose that's widgetized! Plus, it works with Prose 1.5+ auto update system, that means, you don't lose your home template/ widget stuff when performing these sweet auto updates! In general, a great helper tool for the Prose Child Themes for Genesis! In other words, THE add-on plugin you've waited for if you're a die hard Prose fan :)Please note: This plugin requires the Genesis Theme Framework AND the "Prose" Child Theme - both are premium products by StudioPress/ Copyblogger Media LLC via studiopress.com. Video of Plugin's Settings Walkthrough: [youtube http://www.youtube.com/watch?v=ltcw5fgNFnY] original video link by plugin developer David Decker General Features
WPLANG
constant).genesis-prose-extras.pot
) for translators is also always included :)genesis-prose-extras
folder to the /wp-content/plugins/
directory -- or just upload the ZIP package via 'Plugins > Add New > Upload' in your WP Admin/wp-content/languages/genesis-prose-extras/
(just create this folder) - This enables you to use fully custom translations that won't be overridden on plugin updates. Also, complete custom English wording is possible with that, just use a language file like genesis-prose-extras-en_US.mo/.po
to achieve that (for creating one see the tools on "Other Notes").
Uninstallation of Plugin:
Maybe the default ones are enough, maybe not. These 3 additional layout options are more like variations of existing layouts. So, in the end you have even more flexibility with no overhead! This could be great for content oriented blogs, marketeers websites and so much more...
Yes, they are! All is working like it should with minimal additions on CSS style rules (only what's really needed).
One should be enough for a lot of use cases. However, having 3 widget areas enables you to use one top column and 2 columns below which makes up for a more suiteable homepage layout. How cool's that? :)
Yes, of course they are! If your child theme is already responsive and you use the top area plus the 2 columnized areas they just adapt to your viewport nicely. Any additional CSS rules/ media queries you could add via your "Custom Code" section under Genesis menu. Note, if your version of Prose child theme isn't responsive yet these CSS media queries won't have any effect and also do no harm :-).
Of course, it's possible! Just add the following constant to your child theme's functions.php
file or to a functionality plugin:
/** Genesis Prose Extras: Remove Widgets Shortcode Support */ define( 'GPEX_NO_WIDGETS_SHORTCODE', true );
Some webmasters could need this for security reasons regarding their stuff members or for whatever other reasons... :).
That's really easy, just add "post type support" via a plugin, code snippet plugin or your child theme's functions.php
:
/** Genesis Prose Extras: Add post type support for (single) Custom CSS: */ add_post_type_support( 'download', 'gpex-inpost-css' ); add_post_type_support( 'product', 'gpex-inpost-css' );
--> This example code adds the meta box for post type download
(like in Easy Digital Downloads, EDD) and for post type product
(like in WooCommerce and/ or Jigoshop).
Yes, that's possible! Just use this example code below and change the capability to your use case: ` add_filter( 'gpex_filter_inpost_custom_css_cap', 'gpex_inpost_custom_css_cap' ) /**
Yes, of course! With one line of code, like this:
/** Genesis Prose Extras - disable plugin feature: Better Custom PHP file */ add_filter( 'gpex_filter_better_custom_php', '__return_false' );
Yes, of course! With one line of code, like this:
/** Genesis Prose Extras: Remove Export/ Import Info meta box */ define( 'GPEX_NO_EXPORT_IMPORT_INFO', TRUE );
I've just included some filters for that - if ever needed (i.e. for clients, branding purposes etc.), you can use these filters: gpex_filter_home_top_widget_title - default value: "Prose Home Top" gwat_filter_home_top_widget_description - default value: "For a widgetized homepage in Prose." The same principles apply for 'Home Left' and 'Home Right' etc.. Here's an example code for changing one of these filters: ` add_filter( 'gpex_filter_home_top_widget_title', 'custom_home_top_widget_title' ); /**
**Final note:** I DON'T recommend to add customization code snippets to your child theme's
functions.php` file! Please use a functionality plugin or an MU-plugin instead!* This way you are then more independent from child theme changes etc. If you don't know how to create such a plugin yourself just use one of my recommended 'Code Snippets' plugins. Read & bookmark these Sites:
functions.php
file: Resource One - Resource Two (both by Thomas Griffin Media)