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
.clearfix { *zoom: 1; } | |
.clearfix:before, .clearfix:after { display: table; content: ""; line-height: 0; } | |
.clearfix:after { clear: both; } |
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 | |
/** | |
* Add property custom meta fields | |
*/ | |
function add_property_custom_fields( $new_fields ) { | |
$new_fields['tab'] = array( | |
'label' => 'Custom Tab', // tab name | |
'icon' => 'dashicons-admin-generic' // tab icon class (of dashicon). See all dashicons here: https://developer.wordpress.org/resource/dashicons | |
); |
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
// General | |
Console.log('Hey! This is Fahid.'); |
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 | |
##### General ##### | |
define('WP_POST_REVISIONS', 3); // Values: true|false|number (Default: true) | |
/* (De)activates the revision function for posts. A number greater than 0 defines the number of revisions for one post. */ |
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 | |
if ( ! function_exists( 'prefix_pingback_header' ) ) { | |
/** | |
* Add a pingback url auto-discovery header for singularly identifiable articles. | |
*/ | |
function prefix_pingback_header() { | |
if ( is_singular() && pings_open() ) { | |
printf( '<link rel="pingback" href="%s">' . "\n", get_bloginfo( 'pingback_url' ) ); | |
} |
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
This theme comes with a detailed documentation that can be found in the theme package. | |
You can setup this theme same like demos site by following that documentation. | |
-------- | |
For general WordPress issues you can search your issue in Google. As there are thousands of helping articles and forum threads out there to help WordPress users. | |
-------- |
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 | |
if ( ! function_exists( 'is_woocommerce_activated' ) ) { | |
/** | |
* Check whether WooCommerce plugin is activated or not | |
* @return bool | |
*/ | |
function is_woocommerce_activated() { | |
if ( class_exists( 'WooCommerce' ) ) { | |
return true; |
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 | |
if ( ! function_exists( 'prefix_after_import' ) ) { | |
/** | |
* Set up the news and front page plus menu locations | |
* @param $selected_import | |
*/ | |
function prefix_after_import( $selected_import ) { | |
if ( 'Demo Import' === $selected_import['import_file_name'] ) { |
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="page-wrap"> | |
Content! | |
</div> | |
<footer class="site-footer"> | |
I'm the Sticky Footer. | |
</footer> |