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="card"> | |
| <h4> | |
| <a href="<?php the_permalink(); ?>"> | |
| <?php the_title(); ?> | |
| </a> | |
| </h4> | |
| <div class="meta"> | |
| <?php the_date(); ?> | |
| </div> | |
| <?php the_excerpt(); ?> |
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
| // Archive Pagination | |
| /************************************/ | |
| .navigation.pagination { | |
| a.page-numbers { | |
| border: 1px solid rgba(0, 0, 0, 0.3); | |
| color: black; | |
| padding: 10px; | |
| text-decoration: none; | |
| &:hover { | |
| background: black; |
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 | |
| // Archive | |
| /************************************/ | |
| defined( 'ABSPATH' ) || exit; | |
| get_header(); | |
| ?> |
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 HREFLANG ATTRIBUTE TO HEAD SECTION | |
| // ============================================================= | |
| function add_hreflang_attr_to_head(){ | |
| $blog_id = get_current_blog_id(); | |
| // ENGLISH |
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 | |
| // ========================================================================= | |
| // CONVERSION TRACKING THANK YOU PAGE | |
| // ========================================================================= | |
| function add_conversion_tracking_thank_you_page() { | |
| echo ' | |
| <!-- Event snippet for https://**********.com/ conversion page --> | |
| <script> | |
| gtag("event", "conversion", { |
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 GOOGLE ANALYTICS GLOBAL TAG TO WP_HEAD | |
| // ========================================================================= | |
| function add_global_tag_for_ads() { | |
| echo ' | |
| <!-- Global site tag (gtag.js) - Google Ads: ************ --> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=AW************script> | |
| <script> |
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 | |
| // ========================================================================= | |
| // DISPLAY PRODUCT PRICE WITH VAT | |
| // ========================================================================= | |
| function display_product_price_with_vat(){ | |
| global $product; | |
| $brutto_ar = wc_get_price_to_display( $product ); | |
| $netto_ar = $brutto_ar/127*100; | |
| $netto_ar_rounded = round($netto_ar); | |
| $netto_ar_plus_afa = $netto_ar_rounded .' Ft + 27% áfa'; |
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 | |
| // ========================================================================= | |
| // CHECK IF THERE IS MULTIPLE CATEGORY IN THE CART | |
| // ========================================================================= | |
| function custom_msg_to_specific_cats(){ | |
| $flower_in_cart = false; | |
| $gift_in_cart = false; | |
| // Flower - Loop through all products in the Cart |
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 | |
| // ========================================================================= | |
| // UNSET SPECIFIC SHIPPING METHOD BASED ON CATEGORY IN THE CART | |
| // ========================================================================= | |
| function unset_shipping_based_on_category( $rates) { | |
| $gift_in_cart = false; | |
| // Gift | |
| foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { | |
| if ( has_term( 'nem-virag', 'product_cat', $cart_item['product_id'] ) ) { |