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', 'ec_child_department_menu_vertical_scroll', 10 ); | |
| function ec_child_department_menu_vertical_scroll() { ?> | |
| <script> | |
| document.addEventListener("DOMContentLoaded", function () { | |
| const ul = document.getElementById("menu-all-departments-menu-1"); | |
| if (!ul) return; | |
| const visibleCount = 10; |
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
| .page-template-template-homepage-v2 .header-v1 .departments-menu button { | |
| color: #fff; | |
| border-color: #0063d1; | |
| background-color: #0063d1; | |
| } |
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 | |
| use TUTOR\Ajax; | |
| $value_remember =false; | |
| $wp_lostpassword_url = apply_filters( 'tutor_lostpassword_url', wp_lostpassword_url() ); | |
| $wp_lostpassword_label = esc_html__( 'Forgot Password?', 'geeks' ); | |
| $login_url = tutor_utils()->get_option('enable_tutor_native_login', null, true, true) ? '' : wp_login_url(tutor()->current_url); | |
| ?> | |
| <div class="tutor-login-modal tutor-modal"> |
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
| .site-header .departments-menu:hover ul#menu-departments-menu { | |
| display: block; | |
| top: 55%; | |
| } | |
| ul#menu-departments-menu { | |
| display: none; | |
| } |
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( 'init', 'ec_child_cart_shipping_calculator_link', 10 ); | |
| function ec_child_cart_shipping_calculator_link() { | |
| add_action( 'woocommerce_before_cart', 'custom_shipping_calculator_link', 8 ); | |
| add_action( 'woocommerce_before_shipping_calculator', 'custom_shipping_calculator_link_redirect', 8 ); | |
| } | |
| function custom_shipping_calculator_link() { | |
| ?> | |
| <a href="#shipping-calculator-form-redirect" class="custom-shipping-calculator-link" style="display: none; color: #ce2020; text-decoration: underline;justify-content: center;" aria-expanded="false" aria-controls="shipping-calculator-form" role="button">Click here to calculate shipping fees</a> | |
| <?php |
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:767px) { | |
| .owl-item>.product .product-loop-body .product-rating, | |
| .products>.product .product-loop-body .product-rating { | |
| margin-bottom: 5px; | |
| } | |
| .owl-item>.product .add-to-cart-wrap, | |
| .products>.product .add-to-cart-wrap { | |
| margin-top: 5px; | |
| } |
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
| {"version":"0.4","title":"contact page","type":"page","content":[{"id":"5da1c2d7","settings":{"stretch_section":"section-stretched","layout":"full_width"},"elements":[{"id":"75253aee","settings":{"_column_size":100,"_inline_size":null},"elements":[{"id":"6f2f0211","settings":{"address":"London Eye, London, United Kingdom"},"elements":[],"isInner":false,"widgetType":"google_maps","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"6cc2d3d3","settings":{"structure":"20"},"elements":[{"id":"62eadcbd","settings":{"_column_size":50,"_inline_size":72.193},"elements":[{"id":"5aef8dd0","settings":{"editor":"<h2 class=\"contact-page-title\">Leave us a Message<\/h2>\nMaecenas dolor elit, semper a sem sed, pulvinar molestie lacus. Aliquam dignissim, elit non mattis ultrices,\nneque odio ultricies tellus, eu porttitor nisl ipsum eu massa."},"elements":[],"isInner":false,"widgetType":"text-editor","elType":"widget"},{"id":"2fb3a655","settings":{"shortcode":"[contact-form-7 id |
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
| {"version":"0.4","title":"FAQ page","type":"page","content":[{"id":"6039109","settings":[],"elements":[{"id":"30d2b886","settings":{"_column_size":100,"_inline_size":null},"elements":[{"id":"726592bf","settings":{"title":"Shipping Information","title_color":"#1A1616","_padding":{"unit":"px","top":"0","right":"0","bottom":"10","left":"0","isLinked":false},"_border_border":"solid","_border_width":{"unit":"px","top":"0","right":"0","bottom":"1","left":"0","isLinked":false},"_border_radius":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":false}},"elements":[],"isInner":false,"widgetType":"heading","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"7dac6605","settings":{"structure":"20"},"elements":[{"id":"10efa5f9","settings":{"_column_size":50,"_inline_size":null},"elements":[{"id":"652d3136","settings":{"editor":"<h3 class=\"faq-title\" style=\"text-align: left;\">What Shipping Methods Are Available?<\/h3>\n<div class=\"text-content\">\n\nLor |
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
| {"version":"0.4","title":"about-page","type":"page","content":[{"id":"2d06ab93","settings":{"structure":"30","css_classes":"about-features"},"elements":[{"id":"6ca96b12","settings":{"_column_size":33,"_inline_size":null},"elements":[{"id":"45cc0aea","settings":{"image":{"url":"http:\/\/localhost\/~abbas\/electro\/wp-content\/uploads\/2016\/03\/3column1.jpg","id":2531}},"elements":[],"isInner":false,"widgetType":"image","elType":"widget"},{"id":"2a0085ec","settings":{"editor":"<h2 class=\"align-top\">What we really do?<\/h2>\nDonec libero dolor, tincidunt id laoreet vitae,\nullamcorper eu tortor. Maecenas pellentesque,\ndui vitae iaculis mattis, tortor nisi faucibus magna,\nvitae ultrices lacus purus vitae metus."},"elements":[],"isInner":false,"widgetType":"text-editor","elType":"widget"}],"isInner":false,"elType":"column"},{"id":"600e10fb","settings":{"_column_size":33,"_inline_size":null},"elements":[{"id":"62d81d9b","settings":{"image":{"url":"http:\/\/localhost\/~abbas\/electro\/wp-content\/uploads\/2016\ |
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( 'woocommerce_sale_badge_text', 'custom_sale_percentage_badge', 10, 2 ); | |
| function custom_sale_percentage_badge( $sale_text, $product ) { | |
| if ( $product->is_type( 'simple' ) ) { | |
| $regular = (float) $product->get_regular_price(); | |
| $sale = (float) $product->get_sale_price(); | |
| if ( $regular > 0 && $sale > 0 ) { | |
| $percentage = round( ( ( $regular - $sale ) / $regular ) * 100 ); |
NewerOlder