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
<?php | |
---------------------------------------------------------- | |
For style css | |
/* | |
Theme Name: Payra TV | |
Theme URI: http://www.payratv.com | |
Author: Humayun Kabir | |
Author URI: http://www.hkfolio.com/ | |
Description: This theme created for payratv. |
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
http://docs.woothemes.com/documentation/plugins/woocommerce/ All documentation is here | |
<?php | |
http://docs.woothemes.com/document/editing-product-data-tabs/ | |
=================================================================================== | |
http://code.tutsplus.com/articles/an-introduction-to-theming-woocommerce-for-wordpress--wp-31577 | |
Disabling the Default Stylesheet and Starting From Scratch | |
//code to your themes functions.php | |
define('WOOCOMMERCE_USE_CSS', false); |
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
http://www.wpbeginner.com/wp-tutorials/how-to-show-your-mailchimp-subscriber-count-in-wordpress/ | |
<?php | |
/* | |
Plugin Name: MailChimp Subscriber Count | |
Plugin URI: http://www.wpbeginner.com | |
Description: Retrieves MailChimp subscriber count and displays it as a text | |
Version: 1.0 | |
Author: WPBeginner | |
Author URI: http://www.wpbeginner.com |
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
?> | |
<form class="navbar-form" role="search" action="<?php echo site_url('/'); ?>" method="get" > | |
<div class="input-group"> | |
<input type="text" class="form-control" placeholder="Search" name="s" id="search" value="<?php the_search_query(); ?>"> | |
<div class="input-group-btn"> | |
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button> | |
</div> | |
</div> | |
</form> |
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
Bootstrap Dropdown with Hover | |
.dropdown:hover .dropdown-menu { | |
display: block; | |
margin-top: 0; // remove the gap so it doesn't close | |
} | |
================================================================== | |
OR | |
.sidebar-nav { |
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
http://www.wpexplorer.com/wordpress-tinymce-tweaks/ | |
//tinymce-domain.php | |
<?php | |
// Hooks your functions into the correct filters | |
function desparate_add_mce_button() { | |
// check user permissions | |
if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) ) { | |
return; | |
} | |
// check if WYSIWYG is enabled |
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
// Carousel Active Class | |
jQuery(document).ready(function ($) { | |
$(".carousel-inner .item:first-child").addClass("active"); | |
}); |
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 id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<ol class="carousel-indicators"> | |
<?php | |
$args = array( | |
'post_type' => 'slides1', | |
'orderby' => 'menu_order title', | |
'order' => 'ASC', | |
); | |
$query = new WP_Query( $args ); |
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
http://wordpress.stackexchange.com/questions/192451/dynamic-bootstrap-tabs-with-post-title-doesnt-display-the-content?lq=1 | |
<div id="tab"> | |
<ul class="nav nav-tabs" role="tablist"> | |
<?php $loop = new WP_Query( array( 'post_type' => 'candidates', 'posts_per_page' => -1 ) ); ?> | |
<?php | |
$counter = 0; | |
while ( $loop->have_posts() ) : $loop->the_post(); | |
$counter++; | |
?> | |
<li role="presentation" class="post-<?php the_ID(); ?> <?=($counter == 1) ? 'active' : ''?>"><a href="#post-<?php the_ID(); ?>" aria-controls="home" role="tab" data-toggle="tab"><?php the_title();?></a></li> |