View jquery-append-to-example.js
jQuery(document).ready(function($) { | |
jQuery('#lp_container').appendTo('.right-sidebar-wrapper'); | |
}); |
View landing-page-config-example.php
<?php | |
/** | |
* WordPress Landing Page Config File | |
* Template Name: Demo Template | |
* @package WordPress Landing Pages | |
* @author Inbound Now | |
* | |
* This is a demo template for developers and designers to use as a reference for building landing page templates | |
* for Wordpress Landing Pages Plugin http://wordpress.org/plugins/landing-pages/ | |
* |
View hiring-odesk-developer-example.txt
Hi, | |
We need an HTML landing page converted to a WordPress Landing Pages Plugin template. | |
Application Requirements: | |
- Theming & coding experience with WordPress. | |
- Experience with PHP, CSS, jQuery, HMTL. | |
- Understanding of WordPress Landing Pages plugin and how to create custom landing page templates. | |
Job Requirements: |
View enable-mailchimp-double-opt-in.php
<?php | |
add_filter('inboundnow_mailchimp_args','mc_enable_double_opt'); | |
function mc_enable_double_opt( $args ) { | |
$args['double_optin'] = true; | |
return $args; | |
} |
View remove-inbound-marketing-admin-bar.php
<?php | |
function remove_inbound_admin_bar() { | |
global $wp_admin_bar; | |
if ( is_user_logged_in() && !current_user_can( 'manage_options' )) { | |
$wp_admin_bar->remove_menu('inbound-admin-bar'); | |
} | |
} | |
add_action( 'wp_before_admin_bar_render', 'remove_inbound_admin_bar' ); |
View genesis-wordpress-landing-page-fix.php
<?php // Remove this <?php tag before inserting to functions | |
add_action( 'after_setup_theme', 'fix_bad_genesis_filter'); | |
function fix_bad_genesis_filter() { | |
// fix for genesis and catalyst framework | |
$priority = ( function_exists( 'genesis' ) ) || ( function_exists( 'catalyst_activate' ) ) ? 6 : 50; | |
add_filter('wp_title','lp_ab_testing_alter_title_area', $priority, 3 ); | |
} |
View kill_form_specific_for_on_page_tracking.php
<?php | |
// Add to your themes function.php file without the opening <?php tag | |
add_action('wp_head', 'kill_form_tracking_for_specific_pages') | |
if (!function_exists('kill_form_tracking_for_specific_pages')) { | |
function kill_form_tracking_for_specific_pages(){ | |
// targeting page ID 106. Replace with your specific page ID | |
if (is_page(106)) { | |
echo '<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
jQuery("form").each(function(){ |
View genesis-fix.php
<?php | |
add_action( 'template_redirect', 'child_conditional_actions' ); | |
function child_conditional_actions() { | |
if( 'landing-page' == get_post_type() ) { | |
remove_filter( 'wp_title', 'genesis_doctitle_wrap', 20 ); | |
} | |
} |
View custom-js-function-on-inbound-form-completion.js
jQuery(document).ready(function($) { | |
// Trigger custom script on inbound now form completion | |
$(".wpl-track-me").on("inbound_form_complete", function() { | |
// do stuff | |
}); | |
}); |
View turn-off-landing-page-script-elsewhere-on-site.php
/* Fair warning this will break page tracking */ | |
add_action( ‘wp_print_scripts’, ‘turn_off_lp_script’, 120 ); | |
function turn_off_lp_script(){ | |
global $post; | |
if (isset($post) && $post->post_type != 'landing-page') { | |
wp_dequeue_script( ‘jquery-cookie’ ); | |
wp_deregister_script( ‘jquery-total-storage’ ); | |
} | |
} |
OlderNewer