Make sure you’ve uploaded your opt-in details into EBB Opt-ins.
“A shortcode lets you do nifty things with very little effort. Think of a shortcode as a shortcut to add features to your website that would normally require lots of complicated computer code and technical ability.” – https://wordpress.com/support/shortcodes/
Using shortcodes, you can place an EBB Opt-in anywhere you’d like it to appear: you’re not restricted to displaying opt-ins at the bottom of posts only!
To add an opt-in using shortcodes:
- Log in to your WordPress dashboard.
- Open the editing screen for the post/page you’d like to add the opt-in to.
- In the place where you’d like the opt-in to appear, insert your opt-in shortcode.
- Save your post.
You should now be able to view your post/page and see your opt-in in the place where you inserted the shortcode.
How to build your shortcode:
Start with the basic EBB opt-in shortcode:
This will display either the opt-in selected for this particular post (set via the EBB Opt-ins settings) for posts, or the global default opt-in for posts without a specific opt-in selected, pages, or widget areas.
To select a different opt-in, add the “optin” attribute to the shortcode: where XX is the ID of your opt-in.
To find the ID number of the opt-in you’d like to display, open the edit screen for that opt-in. In the address bar, look for the part of the URL that says “?post=XX” – see video below for example; this number is your opt-in’s ID.
To change how the opt-in displays, use one of the following attributes:
- display-title: Should the opt-in’s title be displayed? “yes” to show title; “no” to hide title. Ex:
- display-image: Should the opt-in’s featured image be displayed? “yes” to show featured image; “no” to hide featured image. Ex:
- display-description: Should the opt-in’s description be displayed? “yes” to show description; “no” to hide description. Ex:
- display-fineprint: Should the opt-in’s fine print be displayed? “yes” to show fine print; “no” to hide fine print. Ex:
Any of the attributes can be mixed and matched to customize your opt-in in the same way you would when using the default EBB opt-in display for your posts.Back to documentation