Follow

How to get the Sign-Up widget working on Wordpress

By default Wordpress doesn't allow Javascript code pasted directly to a page or post, but we can add it by creating a Custom Page template.

 

1.- Inside your Dashboard  go to  Appeareance -> Editor 

 

2.- In the right corner select the theme you are going to use:

 

3.- Search for the Page Template ( Page.php ) and open it:

 

 

4.- Open a text editor such as Notepad, create a new file call it "conducttr_widget_page.php" and paste the code in it.

 

5.- After the line get_header() paste the next lines of code and save the file:

 

<?php
/*
Template Name: Conducttr Widget Page
*/
?>

<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://conducttr-a.akamaihd.net/ext/js/chosen.jquery.min.js"></script>
<script type="text/javascript" src="https://conducttr-a.akamaihd.net/ext/js/conducttr-widget-2.6.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="https://conducttr-a.akamaihd.net/ext/css/chosen.css" type="text/css">


<script type="text/javascript">
//selector for the widget container
var widgetElement = "#conducttr-widget-solo-signup";
</script>

 

6.- Upload the file to your web host to the next path:

 

http://www.mydomain.com/wp-content/themes/ThemeYouAreUsing/

 

7.- Inside the wordpress Dashboard create a new page, select the Text tab  and paste the HTML code of your Conducttr Sign-up widget.

 

8.- In the the left column Page Attributes in the field Template select Conducttr Widget Template and Save the page.

 

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Jonny Virgo Virgo

    Does this allow me to customise the widgets more easily? Is there a way to customise the appearance of widgets in conducttr or do I need to change code? Let me know when you can. Thanks

  • Avatar
    Eduardo Iglesias

    Hi Jonny,

    This method just allows you to use the Conducttr Widget with Wordpress but doesn't modify the theme you are using,

    If you want to change style the widget you don't need to change the code or regenerate it in Conducttr, just add the style to your theme's style css file.