Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: WP dizainas nerodo html tagų
Parašė botanik· 2014 Rugs. 4 09:09:27
#1
Sveiki. Wp dizainas neskaito
html tagų postuose, o kai posta atidarai (skaityti plačiau) tai tada jau skaito. Sako žmonės dėl to, jog neįrašyta į
css stiliai. bet kokia problema ištikrųjų, nežinia. Kaip man ištaisyti šią problemą?:) Neveikia nei br kodas nei boldas nei center. Mano stiliai:
/*
Theme Name: Clean Type
Theme URI: http://www.freewpthemes.net/
Description: A two-column, fixed-width design suitable for personal and small company website.
Version: 1.0
Author: Free WordPress Themes
Author URI: http://www.freewpthemes.net/
Tags: red, fixed width, two columns, widgets
*/
* {
margin: 0;
padding: 0;
}
body {
margin-top: 40px;
background: #FFFFFF;
text-align: justify;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #757E82;
}
h1, h2, h3 {
color: #AA2808;
}
h1 {
}
h2 {
}
h3 {
}
p, blockquote, ul, ol {
margin-bottom: 20px;
line-height: 2em;
}
p {
}
blockquote {
}
ul, ol, li {
margin: 0px;
padding: 0px;
list-style: none;
}
a {
text-decoration: underline;
color: #87acc4;
}
a:hover {
text-decoration: none;
color: #87acc4;
}
/* Wrapper */
#wrapper {
}
/* Header */
#header {
width: 892px;
height: 91px;
margin: 0 auto;
}
/* Logo */
#logo {
float: left;
}
#logo h1 {
margin: 0;
padding: 0;
font: normal 36px Georgia, "Times New Roman", Times, serif;
}
#logo h2 {
margin: -2px 0 0 0;
padding: 0;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 10px;
font-weight: bold;
color: #444444;
}
#logo h2 a {
color: #9AA9B1;
}
#logo a {
text-decoration: none;
color: #3C84B3;
}
/* Menu */
#menu {
float: right;
width: 592px;
height: 200px;
padding-top: 0px;
background: url(images/header.jpg) no-repeat left top;
}
#menu ul {
margin: 0;
padding: 0px 0 0 20px;
list-style: none;
line-height: normal;
margin-left: 30px;
}
#menu li {
display: inline;
text-align: center;
}
#menu a {
display: block;
float: left;
height: 36px;
padding: 18px 20px 0px 20px;
text-decoration: none;
text-align: center;
text-transform: uppercase;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #464E53;
}
#menu a:hover, #menu .active a {
background: #87acc4;
color: #FFFFFF;
}
/* Search */
#search {
height: 45px;
padding: 0px 0px 30px 0px;
}
#search form {
margin: 0;
padding: 12px 0px 0 0;
}
#text {
font-size: 13px;
}
#search fieldset {
margin: 0;
padding: 0;
border: none;
}
#search input {
float: left;
font: 12px Arial, Helvetica, sans-serif;
}
#search-text {
width: 120px;
height: 18px;
padding: 3px 0 0 5px;
border: 1px solid #CED0D1;
color: #000000;
}
#search-submit {
height: 23px;
margin-left: 10px;
padding: 0px 2px 0px 2px;
border: none;
background: #000000;
color: #FFFFFF;
}
/* Page */
#page {
width: 892px;
margin: 0 auto;
}
#page-bgtop {
padding: 0px 30px;
}
/* Content */
#content {
float: right;
width: 564px;
padding-top: 30px;
}
.post {
margin: 0px 0px 30px 0px;
}
.post .title {
margin: 0px;
padding: 0px 0px 5px 0px;
color: #232F01;
}
.post .title a {
padding: 4px 35px 4px 15px;
background: #87acc4;
text-decoration: none;
font-weight: normal;
color: #FFFFFF;
}
.post .entry {
padding-top: 20px;
}
.post img {
float: left;
padding: 15px 0px;
}
.post .meta {
text-align: right;
padding-top: 20px;
border-bottom: 1px solid #E5E5E5;
font-weight: bold;
color: #202020;
}
.post .byline {
float: right;
margin-top: -30px;
font-size: 12px;
color: #5E5E5E;
}
/* Sidebar */
#sidebar {
float: left;
width: 208px;
padding-top: 30px;
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}
#sidebar li {
margin-bottom: 1px;
}
#sidebar li ul {
margin: 0px;
padding: 0px 0px 40px 0px;
}
#sidebar li li {
margin: 0;
padding: 9px 0px;
border: none;
background: url(images/img07.jpg) repeat-x left bottom;
}
#sidebar h2 {
margin: 0px;
padding: 0px;
border-bottom: 2px solid #EBEBEB;
font-size: 160%;
font-weight: normal;
color: #454E55;
}
#sidebar h3 {
font-size: 77%;
color: #454E55;
}
#sidebar p {
margin: 0;
line-height: normal;
color: #D4C792;
}
#sidebar a {
border: none;
text-decoration: none;
}
#sidebar a:hover {
text-decoration: underline;
}
/* Submenu */
#submenu {
}
/* News */
#news {
}
#news a {
font-size: 85%;
}
/* Footer */
#footer {
width: 892px;
height: 50px;
margin: 0 auto;
padding: 20px 0 20px 0;
border-top: 1px solid #E5E5E5;
color: #757E82;
}
#footer p {
margin: 0;
text-align: center;
font-size: 77%;
}
#footer a {
text-decoration: underline;
color: #757E82;
}
#footer a:hover {
text-decoration: none;
}
#comment {
width: 550px;
height: 100px;
}
.alignright {
float: right;
}
.alignleft {
float: left;
}
#respond {
margin: 0;
padding-top: 50px;
}
.navigation {
padding-top: 20px;
}
.pagetitle {
padding-bottom: 20px;
font-size: 24px;
color: #525252;
}
hr {
display: none;
}
Parašė Žmogus· 2014 Rugs. 4 14:09:33
#2
Css, ne prie ko man rodos, o dizaino .php failuose reikia žiūrėti.
Parašė botanik· 2014 Rugs. 4 21:09:13
#3
Gerai, o kur tiksliau? :)
Parašė Žmogus· 2014 Rugs. 4 22:09:37
#4
post.php arba index.php
Parašė botanik· 2014 Rugs. 5 12:09:58
#5
<?php get_header(); ?>
<div id="content">
<div class="post" id="post-<?php the_ID(); ?>"> <h2 class="title"><a rel="bookmark">Įvykiai</a></h2>
<div class="entry">
<?php the_excerpt(); ?>
</div>
</div>
</div>
<!-- end #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
index.php
Parašė botanik· 2014 Rugs. 5 13:09:28
#6
P.s. tagų nerodo ir vidiniuose psl. Net neatvaizduoja tarkim nuotrauku galerijos..
Parašė Žmogus· 2014 Rugs. 5 14:09:41
#7
arba naudoji the_excerpt() (ką reikėtų pakeisti į the_content())
Parašė botanik· 2014 Rugs. 5 14:09:00
#8
O kur aš turėčiau rasti šios fjos aprašymą?
Aš žalias wp :)
Functions.php atrodo pas mane taip:
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
?>
Redagavo botanik· 2014 Rugs. 5 14:09:42
Parašė Žmogus· 2014 Rugs. 5 16:09:01
#9
<div class="entry">
<?php the_excerpt(); ?>
</div>
</div>
Paryškinta eilutę keiti į <?php the_content(); ?>
Redagavo Žmogus· 2014 Rugs. 5 16:09:16