W
by Jimmy Peña
1 (0 reviews)
WP Genesis Box
Display the Genesis framework affiliate marketing box on your website using shortcodes or PHP.
Tested up to WP 4.1 (Current: 6.9)
vtrunk
Current Version vtrunk
Updated 11 years ago
Last Update on 20 Jan, 2015
Synced 12 hours ago
Last Synced on
Rank
#36,216
+4835 this week
Active Installs
10+
-28.6%
KW Avg Position
N/A
—
No change
Downloads
4.4K
+1 today
Support Resolved
0%
—
No change
Rating
20%
Review 1 out of 5
1
(0 reviews)
Next Milestone 20
10+
20+
9,766
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 4 more installs to reach 20+
Rank Changes
Current
#36,216
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
1.0
0 reviews
Overall
20%
5
0
(0%)
4
0
(0%)
3
0
(0%)
2
0
(0%)
1
0
(0%)
Tracked Keywords
Showing 0 of 0| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| No keyword data available yet. | ||||
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- trunk
- Last Updated
- Jan 20, 2015
- Requires WP
- 4.0+
- Tested Up To
- 4.1
- PHP Version
- N/A
- Author
- Jimmy Peña
Support & Rating
- Rating
- ★ ☆ ☆ ☆ ☆ 1
- Reviews
- 0
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
WP Adminify – White Label WordPress, Admin Menu Editor, Login Customizer
7K+ installs
#2,738
Master Addons For Elementor - White Label, Free Widgets, Hover Effects, Conditions, & Animations
40K+ installs
#930
Popup Builder - Create highly converting, mobile friendly marketing popups.
200K+ installs
#259
Ads.txt Manager
100K+ installs
#354
YARPP – Yet Another Related Posts Plugin
100K+ installs
#379
Frequently Asked Questions
Common questions about WP Genesis Box
After going to Settings » WP Genesis Box and inserting your affiliate link, use a shortcode to call the plugin from any page or post like this:
[wp-genesis-box]
You can also use the following function in your PHP code (functions.php, or a plugin):
echo genesis_aff_box();
You can also use this:
[wp-genesis-box]
You can also use the following function in your PHP code (functions.php, or a plugin):
echo genesis_aff_box();
You can also use this:
You must define the URL to be displayed. If you do not set the URL in the plugin's settings page, or when you call the shortcode/function, the plugin won't do anything.
You may also use shortcodes within the shortcode, ex:
[wp-genesis-box][my_shortcode][/wp-genesis-box]
And you can specify your own text to be displayed, if you do not want the default text, ex:
[wp-genesis-box image="genesis_framework_logo10"]Click here to purchase the Genesis framework[/wp-genesis-box]
or
if (function_exists('genesis_aff_box') {
genesis_aff_box(array('show' => true, 'image' => 'genesis_framework_logo10'), 'Click here to buy the Genesis Framework');
}
Examples
You want to display the Genesis Box at the end of your blog posts, as many affiliates do. Here is one possible snippet:
add_filter('the_content', 'include_genesis_box');
function include_genesis_box($content) {
if (is_single()) { // it's a single post
// append Genesis box after content
if (function_exists('genesis_aff_box') {
$content .= genesis_aff_box(); // assume affiliate URL is on plugin settings page
}
}
return $content;
}
Always wrap plugin function calls with a function_exists check so that your site doesn't go down if the plugin isn't active.
For Genesis framework users, use the genesis_after_post_content hook:
add_action('genesis_after_post_content', 'include_genesis_box');
function include_genesis_box() {
if (is_single()) {
if (function_exists('genesis_aff_box') {
echo genesis_aff_box(); // or: genesis_aff_box(array('show' => true), 'Click here to buy the Genesis Framework');
}
}
}
This will echo the Genesis box after the post content on each post. Or you can simply check the "Auto insert Genesis box" checkbox on the plugin settings page and not have to use the shortcode or call the function.
I want to use the plugin in a widget. How?
Add this line of code to your functions.php:
add_filter('widget_text', 'do_shortcode');
Or install a plugin to do it for you: http://blogs.wcnickerson.ca/wordpress/plugins/widgetshortcodes/
Now, add the built-in text widget that comes with WordPress, and insert the shortcode into the text widget. See above for how to use the shortcode.
See http://digwp.com/2010/03/shortcodes-in-widgets/ for a detailed example.
Important: If using a widget in the sidebar, make sure you choose one of the smaller images so that it will fit.
I don't want the buttons on my post editor toolbar. How do I remove them?
Add this to your functions.php:
remove_action('admin_print_footer_scripts', 'add_wpgb_quicktag');
I inserted the shortcode but don't see anything on the page.
Clear your browser cache and also clear your cache plugin (if any). If you still don't see anything, check your webpage source for the following:
<!-- WP Genesis Box: plugin is disabled. Check Settings page. -->
This means you didn't pass a necessary setting to the plugin, so it disabled itself. You need to pass at least the affiliate URL, either by entering it on the settings page or passing it to the plugin in the shortcode or PHP function. You should also check that the "enabled" checkbox on the plugin settings page is checked. If that box is unchecked, the plugin will be disabled even if you pass the affiliate URL.
I cleared my browser cache and my caching plugin but the output still looks wrong.
Are you using a plugin that minifies CSS? If so, try excluding the plugin CSS file from minification.
I cleared my cache and still don't see what I want.
The CSS files include a ?ver query parameter. This parameter is incremented with every upgrade in order to bust caches. Make sure none of your plugins or functions are stripping this query parameter. Also, if you are using a CDN, flush it or send an invalidation request for the plugin CSS files so that the edge servers request a new copy of it.
I don't want the admin CSS. How do I remove it?
Add this to your functions.php:
remove_action('admin_head', 'insert_wpgb_admin_css');
I don't want to use the plugin CSS.
Add this to your functions.php:
add_action('wp_enqueue_scripts', 'remove_wpgb_style');
function remove_wpgb_style() {
wp_deregister_style('wp_genesis_box_style');
}
I want to use my own text instead of the text output by the plugin.
If you are using the shortcode, do this:
[wp-genesis-box]Your content here[/wp-genesis-box]
The text output by the plugin will be overriden by whatever you type inbetween the shortcode tags.
If you are using the PHP function, do this:
genesis_aff_box(array('show' => true), 'Click <a href="my link">here</a> to buy the Genesis Framework');
The second argument of the function is the content you want to use. You can use HTML tags and shortcodes in this string.
I don't see the plugin toolbar button(s).
This plugin adds one or more toolbar buttons to the HTML editor. You will not see them on the Visual editor.
The label on the toolbar button is "Genesis Box".
I am using the shortcode but the parameters aren't working.
On the plugin settings page, go to the "Parameters" tab. There is a list of possible parameters there along with the default values. Make sure you are spelling the parameters correctly.
The Parameters tab also contains sample shortcode and PHP code.
You may also use shortcodes within the shortcode, ex:
[wp-genesis-box][my_shortcode][/wp-genesis-box]
And you can specify your own text to be displayed, if you do not want the default text, ex:
[wp-genesis-box image="genesis_framework_logo10"]Click here to purchase the Genesis framework[/wp-genesis-box]
or
if (function_exists('genesis_aff_box') {
genesis_aff_box(array('show' => true, 'image' => 'genesis_framework_logo10'), 'Click here to buy the Genesis Framework');
}
Examples
You want to display the Genesis Box at the end of your blog posts, as many affiliates do. Here is one possible snippet:
add_filter('the_content', 'include_genesis_box');
function include_genesis_box($content) {
if (is_single()) { // it's a single post
// append Genesis box after content
if (function_exists('genesis_aff_box') {
$content .= genesis_aff_box(); // assume affiliate URL is on plugin settings page
}
}
return $content;
}
Always wrap plugin function calls with a function_exists check so that your site doesn't go down if the plugin isn't active.
For Genesis framework users, use the genesis_after_post_content hook:
add_action('genesis_after_post_content', 'include_genesis_box');
function include_genesis_box() {
if (is_single()) {
if (function_exists('genesis_aff_box') {
echo genesis_aff_box(); // or: genesis_aff_box(array('show' => true), 'Click here to buy the Genesis Framework');
}
}
}
This will echo the Genesis box after the post content on each post. Or you can simply check the "Auto insert Genesis box" checkbox on the plugin settings page and not have to use the shortcode or call the function.
I want to use the plugin in a widget. How?
Add this line of code to your functions.php:
add_filter('widget_text', 'do_shortcode');
Or install a plugin to do it for you: http://blogs.wcnickerson.ca/wordpress/plugins/widgetshortcodes/
Now, add the built-in text widget that comes with WordPress, and insert the shortcode into the text widget. See above for how to use the shortcode.
See http://digwp.com/2010/03/shortcodes-in-widgets/ for a detailed example.
Important: If using a widget in the sidebar, make sure you choose one of the smaller images so that it will fit.
I don't want the buttons on my post editor toolbar. How do I remove them?
Add this to your functions.php:
remove_action('admin_print_footer_scripts', 'add_wpgb_quicktag');
I inserted the shortcode but don't see anything on the page.
Clear your browser cache and also clear your cache plugin (if any). If you still don't see anything, check your webpage source for the following:
<!-- WP Genesis Box: plugin is disabled. Check Settings page. -->
This means you didn't pass a necessary setting to the plugin, so it disabled itself. You need to pass at least the affiliate URL, either by entering it on the settings page or passing it to the plugin in the shortcode or PHP function. You should also check that the "enabled" checkbox on the plugin settings page is checked. If that box is unchecked, the plugin will be disabled even if you pass the affiliate URL.
I cleared my browser cache and my caching plugin but the output still looks wrong.
Are you using a plugin that minifies CSS? If so, try excluding the plugin CSS file from minification.
I cleared my cache and still don't see what I want.
The CSS files include a ?ver query parameter. This parameter is incremented with every upgrade in order to bust caches. Make sure none of your plugins or functions are stripping this query parameter. Also, if you are using a CDN, flush it or send an invalidation request for the plugin CSS files so that the edge servers request a new copy of it.
I don't want the admin CSS. How do I remove it?
Add this to your functions.php:
remove_action('admin_head', 'insert_wpgb_admin_css');
I don't want to use the plugin CSS.
Add this to your functions.php:
add_action('wp_enqueue_scripts', 'remove_wpgb_style');
function remove_wpgb_style() {
wp_deregister_style('wp_genesis_box_style');
}
I want to use my own text instead of the text output by the plugin.
If you are using the shortcode, do this:
[wp-genesis-box]Your content here[/wp-genesis-box]
The text output by the plugin will be overriden by whatever you type inbetween the shortcode tags.
If you are using the PHP function, do this:
genesis_aff_box(array('show' => true), 'Click <a href="my link">here</a> to buy the Genesis Framework');
The second argument of the function is the content you want to use. You can use HTML tags and shortcodes in this string.
I don't see the plugin toolbar button(s).
This plugin adds one or more toolbar buttons to the HTML editor. You will not see them on the Visual editor.
The label on the toolbar button is "Genesis Box".
I am using the shortcode but the parameters aren't working.
On the plugin settings page, go to the "Parameters" tab. There is a list of possible parameters there along with the default values. Make sure you are spelling the parameters correctly.
The Parameters tab also contains sample shortcode and PHP code.