This file contains hidden or 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
//fb and tw for author | |
function my_new_contactmethods( $contactmethods ) { | |
// Add Twitter | |
$contactmethods['twitter'] = 'Twitter'; | |
//add Facebook | |
$contactmethods['facebook'] = 'Facebook'; | |
return $contactmethods; |
This file contains hidden or 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="parallax"></div |
This file contains hidden or 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="promo_area"> | |
<?php | |
global $post; | |
$args = array( 'posts_per_page' => 6, 'post_type'=> 'product', 'order' => 'DESC', 'product_cat' => 'promo', ); | |
$myposts = get_posts( $args ); | |
foreach( $myposts as $post ) : setup_postdata($post); ?> | |
<div class="col-md-4 col-sm-6 col-xs-12"> | |
<div class="promo_single"> | |
<div class="grid"> | |
<figure class="promo_offers"> |
This file contains hidden or 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="portfolio-section"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div id="mixit_up_masonery_area" class="mixit_up_masonery_area"> | |
<div class="wrapper solve"> | |
<div class="ac_mixitup"> | |
<div class="portfolio"> | |
<div class="portfolio_filter"> | |
<ul> |
This file contains hidden or 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 CPTs to author archives */ | |
function custom_post_author_archive($query) { | |
if ($query->is_author) | |
$query->set( 'post_type', array('custom_type', 'post') ); | |
remove_action( 'pre_get_posts', 'custom_post_author_archive' ); | |
} | |
add_action('pre_get_posts', 'custom_post_author_archive'); |
This file contains hidden or 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 empty paragraphs created by wpautop() | |
* @author Ryan Hamilton | |
* @link https://gist.github.com/Fantikerz/5557617 | |
*/ | |
function remove_empty_p( $content ) { | |
$content = force_balance_tags( $content ); | |
$content = preg_replace( '#<p>\s*+(<br\s*/*>)?\s*</p>#i', '', $content ); | |
$content = preg_replace( '~\s?<p>(\s| )+</p>\s?~', '', $content ); | |
return $content; |
This file contains hidden or 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="gallery-images"> | |
<div class="col-md-6 col-sm-6 col-xs-6"> | |
<div class="gallery_single active"> | |
<a class="fancybox" rel="group" href="img/gallery1.jpg" title="Image Caption"> | |
<img src="img/gallery1.jpg" alt="gallery image" /> | |
</a> | |
</div> | |
</div> | |
<div class="col-md-2 col-sm-6 col-xs-6"> |
This file contains hidden or 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
<section id="promotion_area" class="promotion_area"> | |
<div class="container"> | |
<div class="row"> | |
<div class="pormos"> | |
<div class="col-md-3 col-sm-6"> | |
<div class="single_promo portfolio"> | |
<img src="img/1.png" alt=""/> | |
<p>John Doe</p> | |
<span>Asst. Professor, Cooking</span> |
This file contains hidden or 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
function revcon_change_post_label() { | |
global $menu; | |
global $submenu; | |
$menu[5][0] = 'News'; | |
$submenu['edit.php'][5][0] = 'News'; | |
$submenu['edit.php'][10][0] = 'Add News'; | |
$submenu['edit.php'][16][0] = 'News Tags'; | |
} | |
function revcon_change_post_object() { | |
global $wp_post_types; |
This file contains hidden or 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
<!-- content start --> | |
<div class="zigzag2"> | |
<div class="container"> | |
<div class="row justify-content-start"> | |
<div class="col-lg-6"> | |
</div> | |
</div> | |
</div> | |
</div> |