Pomeranje sajta posle refresh-a

1

Pomeranje sajta posle refresh-a

offline
  • Dušan
  • Pridružio: 18 Jun 2012
  • Poruke: 986

Imam problem sa mojim sajtom http://czvnews.iz.rs/
Kada ste na pocetnoj strani i udjete u neku drugu kategoriju recimo "Prenos" stranica ce da se spusti na dole
Kako mogu to da izbacim i da se stranica normalno ucitava Ziveli



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 13 Sep 2012
  • Poruke: 2138

Probaj sa brisanjem sledećeg dela:



Obavezno pre nego što to uradiš napravi backup, jer može da se desi da posle toga tema ne radi (ne bi trebalo ali može, zavisi od teme) , tako da možeš da je vratiš u prethodno stanje



offline
  • Dušan
  • Pridružio: 18 Jun 2012
  • Poruke: 986

Nisam nasao taj kod GUZ - Glavom U Zid
Neznam u kom kodu se to nalazi Bebee Dol

offline
  • Pridružio: 13 Sep 2012
  • Poruke: 2138

Verovatno u head delu...

offline
  • Dušan
  • Pridružio: 18 Jun 2012
  • Poruke: 986

Nije u header kodu
Citat:<?php
// html code of the header placed in top.php
global $SMTheme, $return;
$SMTheme->get_layout();
if(!isset($_POST['smt_layout'])){
get_template_part('top');
} else {
$return['title']=$SMTheme->show_title(false);
}

if ( isset($_POST['smt_layout'])&&$_POST['smt_layout']!=$SMTheme->layout ) {
$return['div']='#content .container';
ob_start();
}

if (!isset($_POST['smt_layout'])||$_POST['smt_layout']!=$SMTheme->layout) {
get_sidebar();
?> <div id="main_content"> <?php

}

if ( isset($_POST['smt_layout'])&&$_POST['smt_layout']==$SMTheme->layout ) {
$return['div']='#main_content';
ob_start();
}

offline
  • Pridružio: 13 Sep 2012
  • Poruke: 2138

Vidi u body?

offline
  • Dušan
  • Pridružio: 18 Jun 2012
  • Poruke: 986

Napisano: 20 Mar 2013 17:45

Nisam nasao body uopste o.o
http://smthemes.com/footballnet/ to je ta tema Smile

Dopuna: 20 Mar 2013 19:57

Gde moze da se nalazi taj kod?

offline
  • Pridružio: 17 Jun 2012
  • Poruke: 727

@Dusan.cz

Pogledaj scriptu i vidi sta ti pise u kodu:
Citat:// html code of the header placed in top.php

HTML kod zaglavlja nalazi se u top.php

offline
  • Dušan
  • Pridružio: 18 Jun 2012
  • Poruke: 986

Evo top.php koda
Citat:<?php global $SMTheme;
if (preg_match('/mobi/i', $_SERVER['HTTP_USER_AGENT'])) echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">'."\r\n";
else echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">'."\r\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
$SMTheme->show_title();

?>

<?php

if(
(is_archive()&&is_day()&&$SMTheme->get( 'seo', 'day' ))||
(is_archive()&&is_month()&&$SMTheme->get( 'seo', 'month' ))||
(is_archive()&&is_year()&&$SMTheme->get( 'seo', 'year' ))||
(is_category()&&$SMTheme->get( 'seo', 'category' ))||
(is_tag()&&$SMTheme->get( 'seo', 'tag' ))||
(is_author()&&$SMTheme->get( 'seo', 'author' ))||
(is_search()&&$SMTheme->get( 'seo', 'search' ))
) {
?><meta name="robots" content="noindex" /><?php
}

?>

<?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?>

<?php wp_head(); ?>

<style type="text/css">
<?php echo $SMTheme->get( 'integration','css' )?>
</style>
<?php
echo $SMTheme->get( 'integration','headcode' );
?>
<script type="text/javascript">
jQuery(document).ready(function() {

<?php
$SMTheme->block_slider_config();
?>
jQuery(".menus .children").addClass('sub-menu');

<?php
$SMTheme->block_menu_config("menus");
?>
jQuery('textarea#comment').each(function(){
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>');
});
jQuery('.feedback input').each(function(){
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']');
});
jQuery('.feedback textarea').each(function(){
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']');
});
});
</script>
</head>
<body <?php
$class=$SMTheme->block_slider_css();
$class.=' '.$SMTheme->sidebars_type;
body_class( $class );
?> layout='<?php echo $SMTheme->layout; ?>'>
<div id='scrollUp'><img src='<?php echo get_template_directory_uri().'/images/smt/arrow-up.png';?>' alt='Up' title='Scroll window up' /></div>
<div id='all'>
<div id='header'>
<div class='container clearfix'>


<div id='secondarymenu-container'>
<div id="logo">
<?php $SMTheme->block_logo();?>
</div>

<div class="menusearch" title="">
<?php get_search_form(); ?>
</div>

<div id='menu-box'>
<div id='secondarymenu'>
<?php wp_nav_menu('depth=0&theme_location=sec-menu&container_class=menu-topmenu-container&menu_class=menus menu-topmenu&fallback_cb=block_sec_menu'); ?>
</div>
</div>

</div>


<?php smt_mobile_menu('sec-menu'); ?>
<?php smt_mobile_menu('main-menu'); ?>

<div id='mainmenu-container'>
<div id='mainmenu'>
<?php $nav_menu_params=array(
'depth'=>0,
'theme_location'=>'main-menu',
'menu_class'=>'menus menu-primary',
'fallback_cb'=>'block_main_menu'
);
wp_nav_menu($nav_menu_params); ?>
</div>
</div>
<?php
if ((is_front_page()&&$SMTheme->get( 'slider', 'homepage'))||(!is_front_page()&&$SMTheme->get( 'slider', 'innerpage'))) {?>
<div class='slider-container'>
<div class='slider-bgr'></div>
<?php $SMTheme->block_slider(); ?>
</div><?php
}?>




</div>
</div>

<div id='content-top' class='container'></div>
<div id='content'>
<div class='container clearfix'>

offline
  • PHP programer
  • Pridružio: 26 Okt 2007
  • Poruke: 1064
  • Gde živiš: u Apache

Uloguj se na server gde ti je tvoj sajt,

uđi u wp content/themes/footbaallnet/js

prvo napravi bekap fajla smthemes.js

zatim otvori fajl smthemes.js, obriši sledeću funkciju , sve do kraja fajla, kao na slici i nestaće automatski skrol. Wink

Ko je trenutno na forumu
 

Ukupno su 851 korisnika na forumu :: 49 registrovanih, 6 sakrivenih i 796 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: 357magnum, 8u47, _Petar, airsuba, amaterSRB, Apok, babaroga, bankulen, bojcistv, Brana01, cenejac111, cinoeye, darkangel, dekan.m, Denaya, Dimitrise93, djboj, Djokkinen, doklevise, Dovla, GORDI, Grah0, Istman, Kubovac, kunktator, laganini123, MB120mm, mercedesamg, Mercury, Metanoja, Milos ZA, Mixelotti, mnn2, novator, opt1, ozzy, pein, Polemarchoi, Rogonos, royst33, ruma, Sančo, slonic_tonic, Srky Boy, Srle993, Tores, tubular, vlajkox, wolf431