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
| //https://www.wpallimport.com/documentation/code-snippets/#trigger-the-next-import-on-completion-of-an-import | |
| function after_xml_import($import_id, $import) | |
| { | |
| // Only run for import ID 5. | |
| if ($import_id == 5) { | |
| // Call the next import's trigger URL. | |
| wp_remote_get("yourtriggerURLhere"); |
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_filter('avia_widget_time', 'change_avia_date_format', 10, 2); | |
| function change_avia_date_format($date, $function) { | |
| return explode('-', $date)[0]; | |
| } |
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
| //https://codepen.io/designcourse/pen/qBqdoYe | |
| .image-house-shape{ | |
| .avia-image-overlay-wrap{ | |
| &::before{ //red shadow | |
| position: absolute; | |
| display: block; | |
| content: " "; | |
| 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
| <?php | |
| //get the referrer url | |
| wp_get_referer() | |
| //get the post_id from the referrer url | |
| url_to_postid(wp_get_referer()); |
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_action( 'after_setup_theme','remove_portfolio_post_type', 100 ); | |
| function remove_portfolio_post_type() { | |
| remove_action( 'init', 'portfolio_register'); | |
| } |
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_filter('kriesi_backlink','remove_backlink'); | |
| function remove_backlink(){ | |
| $kriesi_at_backlink = ''; | |
| return $kriesi_at_backlink; | |
| } |
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_filter( 'avf_google_heading_font', 'avia_add_heading_font'); | |
| function avia_add_heading_font($fonts) { | |
| $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700'; | |
| $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic'; | |
| return $fonts; | |
| } | |
| add_filter( 'avf_google_content_font', 'avia_add_content_font'); | |
| function avia_add_content_font($fonts) { |
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_action('wp_head', 'custom_code_for_wp_head'); | |
| function custom_code_for_wp_head(){ | |
| global $post; | |
| $post_type = get_post_type($post->ID); | |
| // Only for pages with featured image added and not for single posts also excluding woocommerce pages | |
| if( has_post_thumbnail($post->ID) && $post_type != 'product' && $post_type != 'post' ) { ?> | |
| <style type="text/css"> | |
| .inner-header-bg, .title_container { | |
| background-image: url("<?php echo the_post_thumbnail_url( 'full' ); ?>"); | |
| } |
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
| @media (max-width: 1250px) { /* Change the width as you need */ | |
| .responsive #top #avia-menu.av-main-nav .menu-item { | |
| display: none !important; | |
| } | |
| .responsive #top .#avia-menu.av-main-nav .menu-item-avia-special { | |
| display: block !important; | |
| } | |
| } |