-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
76 lines (54 loc) · 3.29 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
=== JDM Custom CTA ===
Contributors: jdm-labs
Donate link: http://jdmdigital.co
Tags: call to action, cta
Requires at least: 3.0.1
Tested up to: 4.4.2
<<<<<<< HEAD
Stable tag: 0.9
=======
Stable tag: 0.5
>>>>>>> origin/master
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
This simple, unbranded plugin adds Call-to-Action (CTA) fields to the editor and allows theme developers to display it using simple functions.
== Description ==
There are many cases when theme developers may want the ability to add a call-to-action (or CTA) button to their theme that's easily editable from the WordPress backend. Originally created for a client, this reusable plugin does just that.
This plugin does **NOT** enqueue any resources or make any significant change to the speed of the site.
It simply adds this handy functionality using a custom post meta box and give theme developers a new function they can use in their themes.
== Installation ==
1. Download the plugin from [JDM Labs](http://labs.jdmdigital.co/wp-content/uploads/sites/4/2016/02/jdm-custom-cta.zip) or [GitHub](https://github.com/jdmdigital/jdm-custom-cta) (wordpress.org coming soon)
1. Install the plugin [using GitHub Updater](http://labs.jdmdigital.co/plugins/github-updates/)
1. Activate the plugin
1. Go to one of your Pages or "Add New Page"
1. Look for the new post meta box titled Call to Action (CTA) under the WYSIWYG editor
1. Enter the URL where you want the CTA to link to, starting with http://
1. Enter the text you want the button to say, for example: “Click Here for Awesome Stuff”
1. Publish or Update the page
**NOTE**: That just sets the post meta for us to use our handy functions. You still have to add the actual functions to show the information in your theme. See a full example on [the plugin site](http://labs.jdmdigital.co/code/jdm-custom-cta/ "JDM Labs") for details on how to display your new Call-to-Action button in your themes.
== Frequently Asked Questions ==
= Why isn't my CTA links showing up? =
You need to make sure you add the PHP code to your theme in the location you want it. See a full example on [the plugin site](http://labs.jdmdigital.co/code/jdm-custom-cta/ "JDM Labs") for details on how to display your new Call-to-Action button in your themes.
= How do I remove the CTA button? =
Easy. Just delete the link in the page editor and click "Update." If there is no link for the CTA to link to, the `have_cta()` function will return false. That's true even if the CTA button text is still there.
= Why does my CTA button always say "Click Here" =
Oh, that's the default. If you don't set a value in the CTA Button Text, it'll default to "Click Here." We know that's a terrible Call-to-Action. That's why it's the default--to encourage you to set it to something relevant.
== Screenshots ==
1. View of the new page meta box with options for the CTA URL and button text.
== Upgrade Notice ==
= 0.5 =
This version comes with GitHub automatic updates enabled.
= 0.1 =
This version fixes a security related bug. Please update this immediately.
== Changelog ==
= 0.9 =
* ALPHA testing complete.
* Small edits to source code and readme file(s)
= 0.5 =
* Enabled GitHub Updater
* Small edits to source code and readme file(s)
= 0.2 =
* Reusable plugin created.
* Version updated.
= 0.1 =
* Initial Release.