yavadood

اسکرول انداختن بی جهت سایت

13 پست در این موضوع

ارسال شده در (ویرایش شده)

با سلام خدمت همه دوستان،

جدیدا سایتم رو آپگرید کردم همه چیز خوبه ولی نمیدونم چرا پائین سایت به طرف چپ اسکرول میندازه . نمیدونم ایراد از کجاست. خواهشا دوستان کمکی بکنن

خیلی ممنون

یا علی

ویرایش شده در توسط yavadood

Share this post


Link to post
Share on other sites
آموزش ووکامرس قالب جوملا قالب وردپرس قالب رایگان وردپرس قالب رایگان جوملا هاست نامحدود هاست جوملا هاست لاراول هاست وردپرس هاست ارزان هاست ربات تلگرام خرید دامنه آموزش ساخت ربات تلگرام با php آموزش html و css آموزش لاراول آموزش cPanel آموزش php آموزش سئو وردپرس آموزش امنیت وردپرس آموزش وردپرس آموزش فرم ساز RSform آموزش سئو جوملا آموزش فروشگاه ساز Hikashop آموزش فروشگاه ساز ویرچومارت آموزش طراحی سایت آگهی تبلیغاتی آموزش امنیت جوملا آموزش طراحی سایت فروش فایل آموزش طراحی قالب ریسپانسیو با Helix آموزش جوملا 3 آموزش ساخت ربات دکمه ی شیشه ای آموزش ساخت ربات همکاری در فروش آموزش ساخت ربات جذب ممبر آموزش ساخت ربات ضد اسپم آموزش ساخت ربات پیوست فایل سورس ربات مدیر گروه | ربات مدیر گروه همسریابی

درود

این کد رو به انتهای فایل template.css قالبتون اضافه کنید :

body{
overflow: -moz-scrollbars-vertical;
overflow-x: hidden;
overflow-y: scroll;
}

ببخشید پست من و مهندس فلاح همزمان شد

Share this post


Link to post
Share on other sites

سلام

از هردو دوست عزیز کمال تشکر رو دارم فقط عزیز من این کد رو اضافه میکنم اسکرول بار پائین میره ولی یک اسکرول بار سمت چپ سایت اضافه میشه. اینو چیکار کنم؟

خیلی خیلی ممنون

یا علی

Share this post


Link to post
Share on other sites

احتمالا کد رو جای اشتباه قرار دادید الان دقیقا بگید کجا گذاشتینش ؟

Share this post


Link to post
Share on other sites

عزیز داخل پوشه قالبم

layouts/template.php

داخل template.php که گذاشتم کار نمیکرد یا شاید نمیدونم کجا باید بریزم:

<?php
/**
* @package   yoo_sync
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

// get template configuration
include($this['path']->path('layouts:template.config.php'));

?>
<!DOCTYPE HTML>
<html lang="<?php echo $this['config']->get('language'); ?>" dir="<?php echo $this['config']->get('direction'); ?>">

<head>
<?php echo $this['template']->render('head'); ?>
</head>

<body id="page" class="page <?php echo $this['config']->get('body_classes'); ?>" data-config='<?php echo $this['config']->get('body_config','{}'); ?>'>
<div id="page-bg">

	<?php if ($this['modules']->count('absolute')) : ?>
	<div id="absolute">
		<?php echo $this['modules']->render('absolute'); ?>
	</div>
	<?php endif; ?>

	<div class="wrapper grid-block">

		<header id="header" class="grid-block">

			<?php if ($this['modules']->count('logo')) : ?>	
			<a id="logo" href="<?php echo $this['config']->get('site_url'); ?>"><?php echo $this['modules']->render('logo'); ?></a>
			<?php endif; ?>

			<?php if ($this['modules']->count('toolbar-l + toolbar-r') || $this['config']->get('date')) : ?>
			<div id="toolbar" class="bfc-o">

				<?php if ($this['modules']->count('toolbar-l')) : ?>
				<div class="float-left"><?php echo $this['modules']->render('toolbar-l'); ?></div>
				<?php endif; ?>

				<?php if ($this['modules']->count('toolbar-r') || $this['config']->get('date')) : ?>
				<div class="float-right">

					<?php echo $this['modules']->render('toolbar-r'); ?>

					<?php if ($this['config']->get('date')) : ?>
					<time datetime="<?php echo $this['config']->get('datetime'); ?>"><?php echo $this['config']->get('actual_date'); ?></time>
					<?php endif; ?>

				</div>
				<?php endif; ?>

			</div>
			<?php endif; ?>

			<?php if ($this['modules']->count('headerbar')) : ?>	
			<div id="headerbar" class="bfc-o">

				<?php if($this['modules']->count('headerbar')) : ?>
				<?php echo $this['modules']->render('headerbar'); ?>
				<?php endif; ?>

			</div>
			<?php endif; ?>

			<?php  if ($this['modules']->count('menu + search')) : ?>
			<div id="menubar" class="grid-block">

				<?php  if ($this['modules']->count('menu')) : ?>
				<nav id="menu"><?php echo $this['modules']->render('menu'); ?></nav>
				<?php endif; ?>

				<?php if ($this['modules']->count('search')) : ?>
				<div id="search"><?php echo $this['modules']->render('search'); ?></div>
				<?php endif; ?>

			</div>
			<?php endif; ?>

			<?php if ($this['modules']->count('banner')) : ?>
			<div id="banner"><?php echo $this['modules']->render('banner'); ?></div>
			<?php endif;  ?>

		</header>

		<?php if ($this['modules']->count('top-a')) : ?>
		<section id="top-a" class="grid-block"><?php echo $this['modules']->render('top-a', array('layout'=>$this['config']->get('top-a'))); ?></section>
		<?php endif; ?>

		<?php if ($this['modules']->count('top-b')) : ?>
		<section id="top-b" class="grid-block"><?php echo $this['modules']->render('top-b', array('layout'=>$this['config']->get('top-b'))); ?></section>
		<?php endif; ?>

		<?php if ($this['modules']->count('innertop + innerbottom + sidebar-a + sidebar-b') || $this['config']->get('system_output')) : ?>
		<div id="main" class="grid-block">

			<div id="maininner" class="grid-box">

				<?php if ($this['modules']->count('innertop')) : ?>
				<section id="innertop" class="grid-block"><?php echo $this['modules']->render('innertop', array('layout'=>$this['config']->get('innertop'))); ?></section>
				<?php endif; ?>

				<?php if ($this['config']->get('system_output')) : ?>
				<section id="content" class="grid-block">

					<?php if ($this['modules']->count('breadcrumbs')) : ?>
						<section id="breadcrumbs"><?php echo $this['modules']->render('breadcrumbs'); ?></section>
					<?php endif; ?>

					<?php echo $this['template']->render('content'); ?>

				</section>
				<?php endif; ?>

				<?php if ($this['modules']->count('innerbottom')) : ?>
				<section id="innerbottom" class="grid-block"><?php echo $this['modules']->render('innerbottom', array('layout'=>$this['config']->get('innerbottom'))); ?></section>
				<?php endif; ?>

			</div>
			<!-- maininner end -->

			<?php if ($this['modules']->count('sidebar-a')) : ?>
			<aside id="sidebar-a" class="grid-box"><?php echo $this['modules']->render('sidebar-a', array('layout'=>'stack')); ?></aside>
			<?php endif; ?>

			<?php if ($this['modules']->count('sidebar-b')) : ?>
			<aside id="sidebar-b" class="grid-box"><?php echo $this['modules']->render('sidebar-b', array('layout'=>'stack')); ?></aside>
			<?php endif; ?>

		</div>
		<?php endif; ?>
		<!-- main end -->

		<?php if ($this['modules']->count('bottom-a')) : ?>
		<section id="bottom-a" class="grid-block"><?php echo $this['modules']->render('bottom-a', array('layout'=>$this['config']->get('bottom-a'))); ?></section>
		<?php endif; ?>

		<?php if ($this['modules']->count('bottom-b')) : ?>
		<section id="bottom-b" class="grid-block"><?php echo $this['modules']->render('bottom-b', array('layout'=>$this['config']->get('bottom-b'))); ?></section>
		<?php endif; ?>

		<?php if ($this['modules']->count('footer + debug') || $this['config']->get('warp_branding') || $this['config']->get('totop_scroller')) : ?>
		<footer id="footer" class="grid-block">

			<?php if ($this['config']->get('totop_scroller')) : ?>
			<a id="totop-scroller" href="#page"></a>
			<?php endif; ?>

			<?php
				echo $this['modules']->render('footer');
				$this->output('warp_branding');
				echo $this['modules']->render('debug');
			?>

		</footer>
		<?php endif; ?>

	</div>

</div>

<?php echo $this->render('footer'); ?>
<script>jQuery(window).bind("load", function(){jQuery('#top-a > div > .module').removeAttr('style');jQuery(window).resize();jQuery('#top-a > div > .module').attr('style','min-height:1px;');});</script>
</body>
</html>

این کد template.php هست نمیدونم کجا باید بریزم اما با فایر باگ آزمایش داخل base.css قرار دادم که اون اتفاق افتاد یعنی سمت چپ اسکرول انداخت

اگه میشه بگید کجا باید این کد رو قرار بدم؟

خیلی ممنونم

یا علی

Share this post


Link to post
Share on other sites

قالبتون از فریم ورک warp*استفاده میکنه .

کدی که من براتون قرار دادم رو کامل انتهای yoo-sync/CSS/base.css

اضافه کنید . من الان با فایرباگ چک کردم درست شد

Share this post


Link to post
Share on other sites

عزیز اون کاری که گفتین رو انجام دادم، عزیز چک کن ببین الآن سمت چپ اسکرول انداخته.

Share this post


Link to post
Share on other sites

ارسال شده در (ویرایش شده)

این کد رو تنها بذارید دوباره تست بزنید :


body{   overflow-x: hidden;  }

ویرایش شده در توسط amir_seddighi

Share this post


Link to post
Share on other sites

مشکل حل شد. اشکال از یکی از ماژول ها بود که درستش کردم و دیگه اسکرول نمیندازه

ممنون از همه دوستان

یا علی

Share this post


Link to post
Share on other sites

برای ارسال نظر یک حساب کاربری ایجاد کنید یا وارد حساب خود شوید

برای اینکه بتوانید نظر ارسال کنید نیاز دارید که کاربر سایت شوید

ایجاد یک حساب کاربری

برای حساب کاربری جدید در انجمن ما ثبت نام کنید. عضویت خیلی ساده است !


ثبت نام یک حساب کاربری جدید

ورود به حساب کاربری

دارای حساب کاربری هستید؟ از اینجا وارد شوید


ورود به حساب کاربری