Home › Forums › Themes Support › Claue › Warning: count(): Parameter must be an array or an object that implements Counta
- This topic has 3 replies, 2 voices, and was last updated 6 years ago by Harry.
-
AuthorPosts
-
-
November 20, 2018 at 6:56 pm #26891
Warning: count(): Parameter must be an array or an object that implements Countable in
Please help
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 20, 2018 at 8:56 pm #26898
Hi,
Thank you for choosing our theme and sorry for inconvenience.
This issue with WordPress on PHP 7.2
Please download attach file, extract and replace in yoursite_root/wp-includes/post-template.php
Regards
Attachments:
You must be logged in to view attached files.Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 21, 2018 at 11:22 am #26914
Hi,
Please follow this topic https://rudrastyh.com/woocommerce/my-account-menu.html
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 21, 2018 at 5:23 pm #26930
Hi,
Please add below code to claue-child > functions.php
if ( ! function_exists( 'jas_claue_wc_my_account' ) ) { function jas_claue_wc_my_account() { $output = ''; if ( cs_get_option( 'header-my-account-icon' ) ) { $output .= '<div class="jas-my-account hidden-xs ts__05 pr">'; $output .= '<a class="cb chp db" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '"><i class="pe-7s-user"></i></a>'; $output .= '<ul class="pa tc">'; if ( is_user_logged_in() ) { $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Dashboard', 'claue' ) . '</a></li>'; $output .= '<li><a class="db cg chp" href="' . esc_url( home_url( '/orders-tracking/' ) ) . '">' . esc_html__( 'Order Tracking', 'claue' ) . '</a></li>'; $output .= '<li><a class="db cg chp" href="' . esc_url( wp_logout_url() ) . '">' . esc_html__( 'Logout', 'claue' ) . '</a></li>'; } else { $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Login / Register', 'claue' ) . '</a></li>'; } $output .= '</ul>'; $output .= '</div>'; } return apply_filters( 'jas_claue_wc_my_account', $output ); } }
and use below code and insert new menu for your site
$output .= '<li><a class="db cg chp" href="' . esc_url( home_url( '/orders-tracking/' ) ) . '">' . esc_html__( 'Order Tracking', 'claue' ) . '</a></li>';
Change Order Tracking as your new menu and your link
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.