In the widgets-menu is both left & right sidebar, so there I can choose where to put the widget. I can see in the code for the header, that the left sidebar is coded into there.
Here comes some code for the header:
I widgets-menyn finns b?de left och right sidebar, s? d?r kan jag v?lja. Ser i koden f?r headern, d?r v?nstra sidebar ligger under, att den ?r kodad in d?r. bifogar lite kod fr?n sidhuvudet:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php bloginfo('name'); wp_title(); ?></title>
<meta name="description" content="Use no more than 255 characters">
<meta name="keywords" content="12 unique search terms separated by a comma and space">
<meta name="copyright" content="Copyright YourCompany - 2008">
<meta name="author" content="Author: Your Name/Company">
<meta name="email" content="Email: [email protected]">
<meta name="Charset" content="UTF-8">
<meta name="Distribution" content="Global">
<meta name="Rating" content="General">
<meta name="Robots" content="INDEX,FOLLOW">
<meta name="Revisit-after" content="1 Day">
<meta name="expires" content="never">
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<div id="wrap">
<div id="header" >
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<p><strong><?php bloginfo('description'); ?></strong><br/></p>
</div>
<img id="frontphoto" src="<?php bloginfo('template_directory'); ?>/img/front.jpg" width="760" height="175" alt="" />
<div id="leftside">
<p>here I am! i header.php</p>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
<h2 class="hide">Main menu:</h2>
<ul class="page">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
<?php endif; ?>
<ul>
<li>and here 2!</li>
<li>and here 3!</li>
</ul>
</div>
I have erased code of no importancy, coded by me, due to lack of space here. Here’s the piece I think is the problem:
Jag har raderat ovidkommande, av mig tillagd kod h?r av utrymmessk?l. H?r ?r delen jag tror kr?nglar:
<div id="leftside">
<p>here I am! i header.php</p>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
<h2 class="hide">Main menu:</h2>
<ul class="page">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
<?php endif; ?>
I have tried to change the order of:
Jag har f?rs?kt byta plats p?:
<div id="leftside">
<p>here I am! i header.php</p>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
and
och
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
<h2 class="hide">Main menu:</h2>
<ul class="page">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
<?php endif; ?>
but either it’s not possible, or my programming skills is not enough.
My thought was to put the menu above the place where the widget goes.
men antingen g?r det ej, eller s? ?r mina programmeringstalanger otillr?ckliga. Tanken var att l?gga menyn ovanf?r den del d?r widgeten l?gger sig.
Very thankful for help!
V?ldigt tacksam f?r hj?lp!