swedishzeus
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: changing the photo-resize-functionHi!
Thanx 4 Your help!
Now that works, I just misunderstood it at first, I thought that it was a resize function that made the pics to a standard width, but now I understand that it is limiting the max size, it makes large pics smaller, but not small pics larger, to the size set in media settings.
A big thank You for Your hep!
/JohanForum: Fixing WordPress
In reply to: Problem: widgets blocks navigation-menuWell, after some hours of sleep, here was the answer!
Thanks Gisha James! That solved it!(And made me understand the code a little bit better)
And, now it’s time to mark this thread as solved, I hope I’ll find out how to do that…
Forum: Fixing WordPress
In reply to: Problem: widgets blocks navigation-menuGisha James:
It does not seems as i can decide, in the admin menu(which seems strange to me, I am used to other CMS before), where to put the navigation menu, to me it looks like its hardcoded into where it is, i refer to the code in my post above.Forum: Fixing WordPress
In reply to: Problem: widgets blocks navigation-menuIn 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!