Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • How to position div in the center?
    <div id=”afp-container”>

    I have the same problem, this is my code:

    <?php
    /**
     * The Header for our theme.
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width">
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div class="pushy pushy-left">
    	<?php get_sidebar(); ?>
    </div>
    
        <div class="site-overlay"></div>
    <div id="page" class="hfeed site  ">
    
    	<header id="masthead" class="site-header clearfix" role="banner">
    		<div class="container"> <div class="row">
    			<div class="col-md-4 col-xs-12">
    				<div class="site-branding">
    
    	<?php if (get_theme_mod(FT_scope::tool()->optionsName . '_logo', '') != '') { ?>
    				<h1 class="site-title logo"><a class="mylogo" rel="home" href="<?php bloginfo('siteurl');?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><img relWidth="<?php echo intval(get_theme_mod(FT_scope::tool()->optionsName . '_maxWidth', 0)); ?>" relHeight="<?php echo intval(get_theme_mod(FT_scope::tool()->optionsName . '_maxHeight', 0)); ?>" id="ft_logo" src="<?php echo get_theme_mod(FT_scope::tool()->optionsName . '_logo', ''); ?>" alt="" /></a></h1>
    	<?php } else { ?>
    				<h1 class="site-title logo"><a id="blogname" rel="home" href="<?php bloginfo('siteurl');?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    	<?php } ?>
    
    				</div>
    		</div>
    
    			<div class="col-md-8 col-xs-12">
    			<div class="mobilenavi"></div>	
    
    			 <nav id="site-navigation" class="main-navigation" role="navigation">
    					<?php wp_nav_menu( array( 'theme_location' => 'primary','container_class' => 'topmenu','menu_id'=>'topmenu' ) ); ?>
    			 </nav><!-- #site-navigation -->
    			</div>
    		</div></div>
    	</header><!-- #masthead -->
    
    	<div class="container">
    	<div id="content" class="site-content row">
    
    	<!-- DboxLite Slider -->
    	<div class="col-md-12 clearfix">
    		<?php if( function_exists( "get_dbox_slider_recent" ) ){ get_dbox_slider_recent(); } ?>
    	</div>
    	<!-- DboxLite Slider -->

    Page jumps when slider rotates, if you are scrolled down to the bottom of the site when the slider rotate the page jumps up from the bottom. Does anyone know what may be causing this?

Viewing 2 replies - 1 through 2 (of 2 total)