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="blog-list-area"> | |
<div class="container"> | |
<?php | |
$custom_terms = get_terms( | |
'portfolio_cat', | |
array( | |
'orderby' => 'name', | |
'order' => 'DESC', | |
'hide_empty' => 1, |
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
/** | |
* Proper way to enqueue scripts and styles | |
*/ | |
function wpdocs_theme_name_scripts() { | |
wp_enqueue_style( 'style-name', get_stylesheet_uri() ); | |
wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' ); |
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
/****************Customizing Woocommerce Checkout Page with CSS***************/ | |
.woocommerce form .form-row { | |
width: 100% !important; | |
} | |
.woocommerce-checkout #payment div.payment_box input.input-text, .woocommerce-checkout #payment div.payment_box textarea { | |
width: 100% !important; | |
padding: 8px; | |
} | |
.woocommerce #payment .form-row select, .woocommerce-page #payment .form-row select { | |
width: 100%; |
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
Are you looking for a way to remove all of the extra <p> and <br /> from your forms? Contact form 7 is a great tool but sometimes it adds a little extra HTML that you might want to get rid off within your pages and posts. We have created a quick code snippet that you can use to remove <p> and <br /> from Contact Form 7. | |
Instructions: | |
All you have to do is add this code to your wp-config.php file: | |
define('WPCF7_AUTOP', 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
The code | |
<?php | |
function box_repeater_items_funct() { | |
vc_map( | |
array( | |
"name" => __("Box Repeater", "my-text-domain"), // Element name | |
"base" => "box_repeater", // Element shortcode | |
"class" => "box-repeater", |
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
// Google Font Function | |
/** | |
//Using a single key and value: | |
<add_query_arg( 'key', 'value', 'http://example.com' ); | |
//Using an associative array: | |
add_query_arg( array( | |
'key1' => 'value1', | |
'key2' => 'value2', | |
), 'http://example.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
Files Name: elementor-disable-all-wp-widgets.php | |
<?php | |
/** | |
* Disable elementor registered widget. | |
* | |
* This will disable all WordPress native widgets | |
* | |
* @param \Elementor\Widgets_Manager $widgets_manager Instance of elementor widgets manager | |
* |
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
/** | |
* Post to news | |
Changes the default WordPress post name to News and replace the Dashicon. | |
* | |
* @since 1.0.0 | |
* @access public | |
*/ | |
class Posts_To_News { |