PATH:
home
/
thebhoeo
/
public_html
/
pashtoo
/
wp-content
/
themes
/
woodmart-child
<?php /** * Enqueue script and styles for child theme */ function woodmart_child_enqueue_styles() { wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'woodmart-style' ), woodmart_get_theme_info( 'Version' ) ); } add_action( 'wp_enqueue_scripts', 'woodmart_child_enqueue_styles', 10010 ); add_filter( 'manage_media_columns', 'sk_media_columns_filesize' ); /** * Filter the Media list table columns to add a File Size column. * * @param array $posts_columns Existing array of columns displayed in the Media list table. * @return array Amended array of columns to be displayed in the Media list table. */ function sk_media_columns_filesize( $posts_columns ) { $posts_columns['filesize'] = __( 'File Size', 'my-theme-text-domain' ); return $posts_columns; } add_action( 'manage_media_custom_column', 'sk_media_custom_column_filesize', 10, 2 ); /** * Display File Size custom column in the Media list table. * * @param string $column_name Name of the custom column. * @param int $post_id Current Attachment ID. */ function sk_media_custom_column_filesize( $column_name, $post_id ) { if ( 'filesize' !== $column_name ) { return; } $bytes = filesize( get_attached_file( $post_id ) ); echo size_format( $bytes, 2 ); } add_action( 'admin_print_styles-upload.php', 'sk_filesize_column_filesize' ); /** * Adjust File Size column on Media Library page in WP admin */ function sk_filesize_column_filesize() { echo '<style> .fixed .column-filesize { width: 10%; } </style>'; } // add_filter( 'the_title', 'wpse_75691_trim_words' ); // function wpse_75691_trim_words( $title ) { // // limit to ten words // return wp_trim_words( $title, 9, '' ); // } add_action('admin_head', 'my_custom_fonts'); function my_custom_fonts() { echo '<style> .bsf-update-nag, .vc_license-activation-notice, .aDBc-please-activate-msg, #redirect-panel .banner-wrap{ display:none !important; } .imported-full .import-base, .import-versions, .import-pages, .import-elements { cursor: default !important; } .imported-full .import-base .page-preview, .import-versions .page-preview, .import-pages .page-preview, .import-elements .page-preview, .imported-full .import-base .button, .import-versions .button, .import-pages .button, .import-elements .button { opacity: 1 !important; } .imported-full .import-base input, .imported-full .import-base select, .import-versions input, .import-versions select, .import-pages input, .import-pages select, .import-elements input, .import-elements select { pointer-events: auto !important; opacity: 1 !important; } .woodmart-msg.updated, .thwcfd-notice, .updated.woocommerce-message, .update-message.notice.notice-warning, .wpcf7-redirect-pro-admin-notice.updated.notice.is-dismissible, #easy-updates-manager-dashnotice, .wp-mail-smtp-notice.notice-warning { display:none !important; } </style>'; } add_filter( 'woocommerce_order_button_text', 'woo_custom_order_button_text' ); function woo_custom_order_button_text() { return __( 'Pay Now', 'woocommerce' ); } // To change add to cart text on single product page add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); function woocommerce_custom_single_add_to_cart_text() { return __( 'Enroll Now', 'woocommerce' ); } // To change add to cart text on product archives(Collection) page add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' ); function woocommerce_custom_product_add_to_cart_text() { return __( 'Enroll Now', 'woocommerce' ); } // Remove feed URLs from the header function disable_feed_links() { remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'feed_links_extra', 3); } add_action('init', 'disable_feed_links'); // Redirect feed requests to the original page function redirect_feed_requests_to_original_page($query) { if ($query->is_feed) { global $wp; $current_url = home_url(add_query_arg(array(), $wp->request)); $original_url = preg_replace('/\/feed(\/.*|$)/', '', $current_url); wp_redirect($original_url, 301); exit; } } add_action('parse_query', 'redirect_feed_requests_to_original_page'); function diwp_create_shortcode_side_bar() { ?> <a class="sidebox-btn" href="<?php the_field('button_link'); ?>"> <div id="sidebar-sec" class="sidebar-box" style="background-color:<?php the_field('background_color'); ?>;"> <div class="blog-inner-col"> <div class="sidebar-content-sec"><?php the_field('blog_sidebar_content'); ?></div> <div class="sidebar-image"><img src="<?php the_field('background_image'); ?>"></div> <div class="center-btn"> <?php the_field('button_name'); ?> </div> </div> </div> </a> <?php } add_shortcode( 'sidebar-sec', 'diwp_create_shortcode_side_bar' ); ?>
[-] style.css
[edit]
[+]
wp-html-mail
[-] single.php
[edit]
[-] functions.php
[edit]
[-] header.php
[edit]
[+]
..
[-] content.php
[edit]
[-] screenshot.png
[edit]
[-] child-style.min.css
[edit]