Hi @dino1958
I checked your page source and something seems to be very wrong there making the slider appear in your site’s head tag (where it should never be).
Which publishing method were you using: https://smartslider3.helpscoutdocs.com/article/150-publish-on-wordpress ? If it was the PHP publishing, it’s possible that the slider’s code was placed to the wrong place. Please make sure that the
<?php echo do_shortcode('[smartslider3 slider=2]'); ?>
code is inside your theme’s body
tag.
i put this in the header, what is wrong ?
it have work probely
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title(); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php
echo do_shortcode('[smartslider3 slider=2]');
?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page">
<div id="header" role="banner">
<div id="headerimg">
<h1>"><?php bloginfo('name'); ?></h1>
<div class="description"><?php bloginfo('description'); ?></div>
</div>
[code/]
Hi @dino1958
Currently you are messing up your page’s structure because you can’t put divs to the head tag. You should put the slider’s code after the body to avoid breaking your HTML stucture:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>
<head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<title><?php wp_title(); ?></title>
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
echo do_shortcode(‘[smartslider3 slider=2]’);
?>
<div id=”page”>
<div id=”header” role=”banner”>
<div id=”headerimg”>
<h1>“><?php bloginfo(‘name’); ?></h1>
<div class=”description”><?php bloginfo(‘description’); ?></div>
</div>