Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Last active September 6, 2017 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhubbard/5462594 to your computer and use it in GitHub Desktop.
Save bhubbard/5462594 to your computer and use it in GitHub Desktop.
A Wordpress template file for idxbroker dynamic wrapper.
<?php
/**
* Template Name: IDX Wrapper
*
*/
// Disable Admin Bar for this template Page
add_filter( 'show_admin_bar', '__return_false' );
wp_dequeue_style( 'admin-bar' );
wp_dequeue_script( 'admin-bar' );
// Jetpack Styles & Scripts
wp_deregister_style('AtD_style'); // After the Deadline
wp_deregister_style('jetpack-carousel'); // Carousel
wp_deregister_style('grunion.css'); // Grunion contact form
wp_deregister_style('the-neverending-homepage'); // Infinite Scroll
wp_deregister_style('infinity-twentyten'); // Infinite Scroll - Twentyten Theme
wp_deregister_style('infinity-twentyeleven'); // Infinite Scroll - Twentyeleven Theme
wp_deregister_style('infinity-twentytwelve'); // Infinite Scroll - Twentytwelve Theme
wp_deregister_style('noticons'); // Notes
wp_deregister_style('post-by-email'); // Post by Email
wp_deregister_style('publicize'); // Publicize
wp_deregister_style('sharedaddy'); // Sharedaddy
wp_deregister_style('sharing'); // Sharedaddy Sharing
wp_deregister_style('stats_reports_css'); // Stats
wp_deregister_style('jetpack-widgets'); // Widgets
// Disable Yoast Rel Link
add_filter( 'wpseo_next_rel_link', '__return_false' );
// Disable Yoast & Wordpress Canonical Link
add_filter( 'wpseo_canonical', '__return_false' );
remove_action( 'wp_head', 'rel_canonical' ); // Hide Canonical
remove_action( 'wp_head', 'noindex', 1 ); // Remove Wordpress NoIndex (We want all IDX Broker Pages Indexed)
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Hide the category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // Hide the links to the general feeds: Post and Comment Feed
remove_action( 'wp_head', 'rsd_link' ); // Hide the link to the Really Simple Discovery service endpoint, EditURI link
remove_action( 'wp_head', 'wlwmanifest_link' ); // Hide the link to the Windows Live Writer manifest file.
remove_action( 'wp_head', 'index_rel_link' ); // Hide index link
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // Hide prev link
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // Hide start link
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); // Hide Rel Links
remove_action( 'wp_head', 'wp_generator' ); // Hide the XHTML generator that is generated on the wp_head hook, WP version
get_header(); ?>
<div class="container">
<div class="row-fluid">
<div class="span8">
<div id="idxbroker-search-wrapper" class="idxbroker-search-wrapper">
<div id="idxStart"></div>
<div id="idxStop"></div>
</div>
</div><!-- end span8 -->
<div class="span4">
<?php get_sidebar(); ?>
</div><!-- end span4 -->
</div><!-- end row -->
</div><!-- end container -->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment