رفتن به مطلب

مشکل عجیب نمایش سایت در موبایل و کامیپوتر


پست های پیشنهاد شده

سلام خدمت همه عزیزان

 

بنده قالب newstore را نصب کردم

و تعدادی محصول هم ارسال کردم

مشکل عجیب که دارم اینه سایت روی کامپیوتر بدون مشکل اجرا میشه یعنی زمانی که وارد پنل وردپرس میشم بدون مشکل میاد ولی وقتی از پنل خارج میشم خطا نمایش میزنه!!!!

piuo.ir

 

 

ویرایش شده توسط abbasliv
لینک به ارسال

سلام خدمت دوستان گرامی

قضیه این مورد چیه با ورود به پنل میشه سایت را دید اما بدون لاگین شدن سایت نمیشه چیزی دید و خطا میده

 

لطفآ اگر کسی درباره این مشکل راه حلی داره بی زحمت بگه

piuo.jpg

لینک به ارسال

در کدهای صفحه اصلی، احتمالا به اشتباه یک شرط (if) تعیین شده و نمایش فقط برای کاربران لاگین شده تنظیم شده. 

لینک به ارسال
در 19 ساعت قبل، b.soshiant گفته است :

در کدهای صفحه اصلی، احتمالا به اشتباه یک شرط (if) تعیین شده و نمایش فقط برای کاربران لاگین شده تنظیم شده. 

<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package NewSrore
 */

?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="https://gmpg.org/xfn/11">

	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
	wp_body_open();
}
?>
<div id="page" class="site">
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'newstore' ); ?></a>

	<?php 
		$header_type = get_theme_mod( 'newstore_header_type', 'two');
		$header_type = ($header_type == 'one' || $header_type == 'two')?$header_type:'two';
		get_template_part( 'template-parts/header', esc_attr($header_type));
	?>

	<div id="content" class="site-content">

 

پوشه هدر رو چک کردم دستکاری هم کردم اتفاقی نیافتاد

لینک به ارسال

همچنین این کد رو یکبار جای کد قبلی بذارید ببینید درست میشه

(قبلش بکاپ بگیرید)

<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package NewSrore
 */

?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="https://gmpg.org/xfn/11">

	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

<div id="page" class="site">
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'newstore' ); ?></a>

	<?php 
		$header_type = get_theme_mod( 'newstore_header_type', 'two');
		$header_type = ($header_type == 'one' || $header_type == 'two')?$header_type:'two';
		get_template_part( 'template-parts/header', esc_attr($header_type));
	?>

	<div id="content" class="site-content">

 

لینک به ارسال
  • 1 ماه بعد...

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...