This topic has 6 replies, 2 voices, and was last updated 8 years, 3 months ago ago by 8theme
Dear Sir or Madam,
I installed XStore theme after that i installed required plugins but backend and frontend both are so slow after installation i didn’t installed third party plugins could you please check what is the problem or cause of slow loading
Thank you
Ermia
Hello,
Thank you for contacting us.
We just investigated your web-site and see that it may be caused by some kind of resources of optimization from the server. Try to add the following code to the functions.php of the child theme to fix logo image performance glitch for frontend
function etheme_get_logo_data() {
$return = array(
'logo' => array(),
'fixed_logo' => array()
);
$logo_fixed = etheme_get_option('logo_fixed');
if(!is_array($logo_fixed)) {
$logo_fixed = array('url' => $logo_fixed);
}
$logoimg = etheme_get_option('logo');
if(empty($logo_fixed['url'])) {
$logo_fixed = $logoimg;
}
$page = etheme_get_page_id();
$custom_logo = etheme_get_custom_field('custom_logo', $page['id'] );
if($custom_logo != '') {
$logoimg['url'] = $custom_logo;
}
$return['logo']['src'] = (!empty($logoimg['url'])) ? $logoimg['url'] : ETHEME_BASE_URI.'theme/assets/images/logo.png';
$return['fixed_logo']['src'] = (!empty($logo_fixed['url'])) ? $logo_fixed['url'] : ETHEME_BASE_URI.'theme/assets/images/logo-fixed.png';
$return['logo']['size'] = 100;//@getimagesize($return['logo']['src']);
$return['fixed_logo']['size'] = 20;//@getimagesize($return['fixed_logo']['src']);
return $return;
}
Regards
Thank you, now its fast
You are welcome! If you like our theme your good comment and 5 stars rating would be much appreciated. You can do it in your Downloads area https://themeforest.net/downloads
Feel free to contact us if you need any other help.
Thanks!
Regards
sure i will, i will another problem some header contents are in order and footer is not in order as well. i just saw it when i installed child theme
Just add your widgets to rights places in Appearance -> Widgets.
Tagged: optimization, slow, speed, templates, woocommerce, wordpress, xstore
You must be logged in to reply to this topic.Log in/Sign up