Jump to content
  • 0

Нужна помощь wordpress


BTN
 Share

Question

7 answers to this question

Recommended Posts

  • 0

- узнал тему по внешнему виду

- нашёл в гугле её название

- скачал и установил себе

- открыл в блокноте и проверил с 22 по 32 строки

...

А если честно - исходник на pastebin.com своего header.php выложите

Link to comment
Share on other sites

  • 0

Вот header.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php //////function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?>

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />

<!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" type="text/css" media="screen, projection"><![endif]-->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<?php if(get_theme_option('featured_posts') != '' && is_home()) {

?>

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2.5-core-yc.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2-more.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.transitions.js" type="text/javascript"></script>

<?php } ?>

<!--[if IE 6]>

<script src="<?php bloginfo('template_url'); ?>/js/pngfix.js"></script>

<![endif]-->

<link rel="alternate" type="application/rss+xml" title="RSS-лента <?php bloginfo('name'); ?>" href="<?php bloginfo('rss2_url'); ?>" />

<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 src="<?php bloginfo('template_directory'); ?>/menu/mootools-1.2.5-core-yc.js" type="text/javascript"></script>

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic.css" type="text/css" media="screen" charset="utf-8" />

<!--[if lt IE 7]>

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" />

<![endif]-->

<!-- Load the MenuMatic Class -->

<script src="<?php bloginfo('template_directory'); ?>/menu/MenuMatic_0.68.3.js" type="text/javascript" charset="utf-8"></script>

<?php echo get_theme_option("head") . "\n"; wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<script type="text/javascript">

window.addEvent('domready', function() {

var myMenu = new MenuMatic();

});

</script>

<div id="wrapper">

<div id="container" class="container">

<div class="span-24">

<div class="span-22">

<div id="pagemenucontainer">

<?php

if(function_exists('wp_nav_menu')) {

wp_nav_menu( 'depth=1&theme_location=menu_1&menu_id=pagemenu&container=&fallback_cb=menu_1_default');

} else {

menu_1_default();

}

function menu_1_default()

{

?>

<ul id="pagemenu">

<li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Главная</a></li>

<?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>

</ul>

<?php

}

?>

</div>

</div>

<div class="span-2 last">

<div class="feedtwitter">

<a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" style="margin:0 4px 0 0;" /></a>

<?php if(get_theme_option('twitter') != '') { ?><a href="<?php echo get_theme_option('twitter'); ?>" title="<?php echo get_theme_option('twittertext'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/twitter.png" style="margin:0 4px 0 0; " title="<?php echo get_theme_option('twittertext'); ?>" /></a><?php } ?>

</div>

</div>

</div>

<div id="header" class="span-24">

<div class="span-12">

<?php

$get_logo_image = get_theme_option('logo');

if($get_logo_image != '') {

?>

<a href="<?php bloginfo('url'); ?>"><img src="<?php echo $get_logo_image; ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" class="logoimg" /></a>

<?php

} else {

?>

<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

<h2><?php bloginfo('description'); ?></h2>

<?php

}

?>

</div>

<div class="span-12 last" style="padding-top: 32px; text-align:right;">

<?php echo get_theme_option('ad_header'); ?>

</div>

</div>

<div class="span-24">

<div id="navcontainer">

<?php

if(function_exists('wp_nav_menu')) {

wp_nav_menu( 'theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default');

} else {

menu_2_default();

}

function menu_2_default()

{

?>

<ul id="nav">

<li <?php if(is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('url'); ?>">Главная</a></li>

<?php wp_list_categories('depth=3&exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li='); ?>

</ul>

<?php

}

?>

</div>

</div>

Link to comment
Share on other sites

  • 0

Скажите опжалуйста установил шапку на сайт ( сайт писал в 1-v посте )

В style.css ( строка 39 )

сделал так ( под размер шапки ) #header {

width: 1024px;

height: 280px;

padding: 10px 0;

}

В screen.css

строка 94 сделал так .container {width:1024px;margin:0 auto;}

строка 121 сделал так .span-24, div.span-24 {width:1024px;margin:0;}

А как выровнять sidebar правый и левый и центральную колонку ?

Рабочий шаблон здесь http://webtheme.ru/test/wordpress/?themedemo=Libera

Edited by BTN
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy