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
// ========================================================================= | |
// REMOVE JUNK FROM WORDPRESS HEAD | |
// ========================================================================= | |
// REMOVE WORDPRESS HEADER META: | |
remove_action('wp_head', 'rsd_link'); // remove really simple discovery link | |
remove_action('wp_head', 'wp_generator'); // remove wordpress version meta tag | |
remove_action('wp_head', 'feed_links', 2); // remove rss feed links (make sure you add them in yourself if youre using feedblitz or an rss service) | |
remove_action('wp_head', 'feed_links_extra', 3); // removes all extra rss feed links | |
remove_action('wp_head', 'index_rel_link'); // remove link to index page | |
remove_action('wp_head', 'wlwmanifest_link'); // remove wlwmanifest.xml (needed to support windows live writer) |
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 | |
/** | |
* Front to the WordPress application. This file doesn’t do anything, but loads | |
* wp-blog-header.php which does and tells WordPress to load the theme. | |
* | |
* @package WordPress | |
*/ | |
/** | |
* Tells WordPress to load the WordPress theme and output it. |
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 | |
/** | |
* Template Name: landing Page | |
* | |
* | |
*/ | |
get_header('lp');?> | |
<div id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> |
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
// change mobile header theme color | |
//plaese remember to replace "your-color-here" with your HEX value | |
function change_header_color(){ | |
echo '<meta name="theme-color" content="your-color-here" />'; | |
} | |
add_action('wp_head', 'change_header_color'); |
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 site_news_posts(){ | |
$query_args = array( | |
'category_name' => 'category_name',//chooose category | |
'posts_per_page' => 4,//number of posts to show | |
); | |
$query = new WP_Query($query_args); | |
if ($query->have_posts()) { | |
echo '<div class="row">'; | |
while ($query->have_posts()) { |
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
<div class="well" itemscope itemtype="http://schema.org/LocalBusiness"> | |
<img src="" alt="" class="thumbnail" style="float:left; width:180px; height:180px; margin-right:1em;" itemprop="logo"> | |
<h3 itemprop="name">Business Name</h3> | |
<div> | |
<span class="glyphicon glyphicon-earphone text-muted"></span> | |
<a href="tel:(123) 456-7890" itemprop="telephone">(123) 456-7890</a> | |
</div> | |
<div> | |
<span class="glyphicon glyphicon-envelope text-muted"></span> | |
<a href="mailto:[email protected]" itemprop="email">[email protected]</a> |
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
<div class="well" itemscope itemtype="http://schema.org/Product"> | |
<img src="img/product.png" class="thumbnail" style="float:left;width:180px;height:180px;margin-right:1em;" itemprop="image"> | |
<h3 itemprop="name">Awesome Thing</h3> | |
<h4><span itemprop="model">Extreme Edition</span> <small>(<span itemprop="sku">IB-0001</span>)</small></h4> | |
<meta itemprop="productID" content="AW-EE-0001"/> | |
<p>From <a href="organization.html" itemprop="manufacturer">Business Name Ltd</a>.</p> | |
<p> | |
Available in <span itemprop="color">Black</span>, <span itemprop="color">White</span> or <span itemprop="color">Silver</span>. | |
<span itemprop="width">10 cm</span> x <span itemprop="height">8 cm</span>. | |
</p> |
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
<div class="well" itemscope itemtype="http://schema.org/Product"> | |
<img src="img/product.png" class="thumbnail" style="float:left;width:180px;height:180px;margin-right:1em;" itemprop="image"> | |
<h3 itemprop="name">Awesome Thing</h3> | |
<h4></h4><span itemprop="model">Extreme Edition</span> (<span itemprop="sku">IB-0001</span>)</small></h4> | |
<meta itemprop="productID" content="AW-EE-0001"/> | |
<p>From <a href="organization.html" itemprop="manufacturer">Business Name Ltd</a>.</p> | |
<p> | |
Available in <span itemprop="color">Black</span>, <span itemprop="color">White</span> or <span itemprop="color">Silver</span>. | |
<span itemprop="width">10 cm</span> x <span itemprop="height">8 cm</span>. | |
</p> |
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
/* | |
* | |
* Add google reCaptcha script to the header | |
*/ | |
function add_google_capt_script(){ | |
ob_start() ;?> | |
<script src='https://www.google.com/recaptcha/api.js' async></script> | |
<?php echo ob_get_clean(); |
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
<div class="row inner-form-wrap"> | |
<div class="form-group col-md-6 col-sm-12"> | |
<label for="fullname">Full Name</label> | |
[text* fullname id:fullname class:form-control placeholder "Full Name"] | |
</div> | |
<div class="form-group col-md-6 col-sm-12"> | |
<label for="phone">Phone</label> | |
[text* phone id:phone class:form-control placeholder "Phone"] | |
</div> | |
<div class="form-group col-sm-12"> |
OlderNewer