This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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/ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
jQuery('#lp_container').appendTo('.right-sidebar-wrapper'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('inboundnow_mailchimp_args','mc_enable_double_opt'); | |
function mc_enable_double_opt( $args ) { | |
$args['double_optin'] = true; | |
return $args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
// Trigger custom script on inbound now form completion | |
$(".wpl-track-me").on("inbound_form_complete", function() { | |
// do stuff | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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