1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

please help to fix a problem in theme

Discussion in 'WordPress' started by Salman Qamar, Apr 30, 2011.

  1. #1
    if u see at my homepage ( http://readerspedia.com/ ) every post is correctly alligned.
    means than on left there is post thumbnail while on right of this, there is post description.
    u can see in following image
    [​IMG]

    but if u click any category (e.g http://readerspedia.com/category/telecom )u will notice that on left sight ther is post thumnail, but description is bellow it. I need it to be same as on home page.
    u can see in following image.
    [​IMG]

    i am using theme"Zionn". in the demo of this theme there is no error as i am facing.
    I am waiting for ur help.
     
    Salman Qamar, Apr 30, 2011 IP
  2. Miroslav Chodak

    Miroslav Chodak Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    95
    #2
    I didn't look into your CSS, but I noticed differences between your home page code and your category page code:

    First, your category template is not using the oneblog_titlearea class around your H1 post titles. Second, while your home page template is using post_thumbnail class for your thumbnail, your category template is using a different class (thumbnail_holder).

    My best guess, without checking your CSS, is that the problem is caused by different CSS used for thumbnail_holder and for post_thumbnail. The solution is to either use only post_thumbnail for both templates, or to harmonize the CSS for the two classes. If I'm right, your problem should go away after you implement one of the suggested solutions.

    Btw, your code doesn't validate (http://validator.w3c.org). While this is likely not the cause of your problem, you might want to look into dealing with the validation errors.
     
    Miroslav Chodak, Apr 30, 2011 IP
  3. Salman Qamar

    Salman Qamar Active Member

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Actually i have made this change, my older post's thmbnail was in post_thumbnail while in this new theme it was in thumbnail_holder so i replaced thumbnail_holder by post_thumbnail in all the pages and css in files of theme.
     
    Salman Qamar, Apr 30, 2011 IP
  4. Salman Qamar

    Salman Qamar Active Member

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    I also dont know how to recover from the validation errors and what is causing them?. i have posted css of my theme in below.
     
    Salman Qamar, Apr 30, 2011 IP
  5. Salman Qamar

    Salman Qamar Active Member

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    style.css
    /*
    Theme Name: Zionn
    Theme URI: http://zenverse.net/zionn-wordpress-theme/
    Description: A free premium Wordpress theme by <a href="http://zenverse.net/">ZenVerse</a>. Need more features? Have a look at our <a href="http://themes.zenverse.net/">premium (paid) themes</a>.
    Version: 1.2
    Author: Zen
    Author URI: http://zenverse.net/
    Tags: blue, white, fixed width, widgets, theme options, two column
    */
    
    body {
    padding:0px;
    margin:0 auto;
    font-size:11px;
    font-family:Lucida Sans Unicode, Arial, Helvetica, sans-serif;
    background-color:#2e2d2d;
    color:#333333;
    }
    
    img { border:0px }
    a, a:visited, a:link { color:#444444; text-decoration:none }
    a:hover { color:#333333 }
    form { display:inline }
    h1,h2,h3,h4,h5,h6,div { margin:0px;padding:0px; }
    
    #page {
    width:1000px;
    border-top:0px;
    margin:0 auto;
    }
    
    .preload { height:1px;width:1px;overflow:hidden;position:absolute;top:0px;left:0px;visibility:hidden; }
    .clear { clear:both }
    .right { float:right }
    .left { float:left }
    
    /* header */
    .onethousand_wrap {
    width:1000px;
    margin:0 auto;
    }
    
    #pagenav {
    height:30px;
    background-image:url(images/pagenav_bg.gif);
    position:relative;
    }
    
    #pagenav ul {
    list-style:none;
    margin:0px;padding:0px;
    margin-left:-10px;
    padding-top:6px;
    float:left;
    }
    
    #pagenav ul li {
    display:inline;
    margin-left:10px;
    color:#fff;
    padding-left:15px;
    }
    
    #pagenav ul li a,#pagenav ul li a:link,#pagenav ul li a:visited { color:#fff; }
    
    #topsearch {
    width:201px;
    height:24px;
    background-image:url(images/searchtop.gif);
    background-repeat:no-repeat;
    position:absolute;
    top:2px;
    right:4px;
    }
    
    .topsearch_input { 
    float:left;
    padding-left:4px;
    width:160px;
    height:20px;
    border:0px solid red;
    background-color:transparent;
    font-family:Lucida Sans Unicode, Arial;
    font-size:12px;
    color:#fff
    }
    .topsearch_submit { float:left; border:0px solid red; background-color:transparent;  }
    
    
    #header {
    background-image:url(images/logobg.gif);
    background-repeat:repeat-x;
    height:105px;
    position:relative;
    background-color:#333333
    }
    
    .adsense-header {
    position:absolute;top:15px;right:10px;
    }
    
    .textlogo {
    padding-left:20px;
    padding-top:20px;
    }
    
    .textlogo h1,.textlogo h2 {
    font-weight:normal;
    font-size:28px;
    color:#eeeeee
    }
    
    .textlogo h1 a,.textlogo h1 a:link,.textlogo h1 a:visited { color:#eeeeee }
    .textlogo h2 { font-size:13px; }
    
    #navbar {
    background-image:url(images/navbar_bg.gif);
    background-repeat:repeat-x;
    height:32px;
    }
    
    #navbar ul {
    white-space: nowrap;
    list-style:none;
    margin:0px;padding:0px;
    padding-top:9px;
    padding-left:10px;
    padding-bottom:10px;
    }
    
    #navbar ul li {
    display:inline;
    text-transform:uppercase;
    color:#333333;
    margin-right:10px;
    font-size:11px;
    font-family:tahoma;
    font-weight:bold;
    
    }
    
    #navbar ul li a,#navbar ul li a:link,#navbar ul li a:visited { color:#333333 ; padding:4px; }
    #navbar ul li a:hover,#navbar ul .current-cat a,#navbar ul li.current-cat a,#navbar ul li.current-cat a:link,#navbar ul li.current-cat a:visited { background-color:#555555 ; color:#fff }
    
    /*featured*/
    #featured {
    background-image:url(images/featured_bg.gif);
    height:290px;
    width:641px;
    margin-bottom:20px;
    position:relative;
    padding-top:15px;
    padding-bottom:20px;
    overflow:hidden;
    background-color:#fff
    }
    
    .featured_one_folder {
    margin-bottom:30px;
    }
    
    .featuredimg {
    border:1px solid #cccccc;
    background:white;
    padding:3px;
    margin-left:-5px;
    }
    
    .heightwidth_fix {
    padding:3px;
    width:550px;
    text-align:left;
    height:87px;
    border:0px solid red;
    overflow:hidden;
    line-height:17px;
    margin-left:-5px;
    }
    
    .heightwidth_fix h1 {
    font-family:calibri,arial;
    font-size:20px;
    color:#323232;
    font-weight:normal;
    margin:0px;
    padding:0px;
    margin-top:2px;
    margin-bottom:8px;
    }
    
    .heightwidth_fix h1 a,.heightwidth_fix h1 a:link,.heightwidth_fix h1 a:visited {color:#323232;}
    .heightwidth_fix h1 a:hover { text-decoration:underline }
    .heightwidth_fix div p { margin:0px;padding:0px }
    
    
    
    /* content */
    #leftandright {
    width:973px;/*990*/
    margin:0 auto;
    margin-top:15px;
    padding:17px;
    padding-right:0px;
    background:#fff
    }
    
    /*left content*/
    #leftcontent {
    width:643px;
    float:left;
    }
    
    .oneblog {
    background-color:#fff;
    background-image:url(images/oneblog_bg.jpg);
    background-repeat:no-repeat;
    width:623px;/*643*/
    padding:10px;
    position:relative;
    margin-bottom:20px;
    }
    
    .oneblog_btm,.oneblog_top {
    background-color:#f2f2f2;
    background-image:url(images/oneblog_btm.gif);
    background-repeat:no-repeat;
    width:643px;
    height:4px;
    font-size:1px;
    margin-bottom:20px;
    }
    
    .oneblog_top { background-image:url(images/oneblog_top.gif); margin-bottom:0px;}
    
    .oneblog_titlearea {
    position:relative;
    }
    
    .oneblog_titlearea h1 {
    width:570px;
    }
    
    .oneblog_commentcount {
    background: url(images/commentcountbg.gif) no-repeat;
    width: 41px;
    height: 23px;/*30*/
    position:absolute;
    top:0px;
    right:5px;
    text-align:center;
    padding-top:7px;
    }
    
    .oneblog_commentcount a,.oneblog_commentcount a:link,.oneblog_commentcount a:visited {
    padding:6px
    }
    
    .oneblog_commentcount a:hover { text-decoration:underline }
    
    .oneblog .thumbnail,.thumbnail {
    padding:3px;
    background-color:#fff;
    border:1px solid #cccccc;
    width:125px;
    height:125px;
    }
    
    .post_thumbnail {
    width:133px;
    height:133px;
    float:left;
    margin-bottom:10px;
    position:relative;
    }
    
    .oneblog h1,.oneblog h1 a,.oneblog h1 a:link,.oneblog h1 a:visited,.h2,.archives_ul li h2{
    color:#5555555;
    font-weight:normal;
    font-size:21px;
    margin-bottom:10px;
    font-family:calibri;
    }
    
    .oneblog h1 a:hover {
    color:#333333;
    text-decoration:underline
    }
    
    .excerpt {
    margin-left:15px;
    float:left;
    width:460px;
    border:0px solid red;
    line-height:18px;
    margin-bottom:10px;
    }
    
    .excerpt p {
    color:#313131
    }
    
    
    .excerpt_details {
    padding:4px;
    background-image:url(images/excerpt_details.jpg);
    background-repeat:repeat-x;
    background-color:#ffffff;
    margin-top:2px;
    margin-bottom:5px;
    color:#5a5b5b;
    border-left:1px solid #dedede;
    }
    
    .excerpt_details img { vertical-align:middle }
    
    
    .excerpt_details a,.excerpt_details a:link,.excerpt_details a:visited {
    border-bottom:1px dotted #aaaaaa;
    color:#5a5b5b
    }
    
    .extrawidth {
    width:590px;
    margin-left:4px;
    }
    
    .the_category {
    background-color:#efefef;
    border:1px solid #dddddd;
    padding:10px;
    font-weight:bold;font-family:tahoma;font-size:11px;
    color:#222222;margin-bottom:20px;
    }
    
    /*single.php*/
    .single_post {
    background-color:#f3f3f3;
    background-color:#f4f4f4;
    background-image:url(images/oneblog.gif);
    background-repeat:repeat-y;
    border:0px dotted #d9d9d9;
    width:603px;/*643*/
    padding:20px;
    padding-top:12px;
    }
    
    .thetitle h1,.extra_content h3 {
    color:#5555555;
    font-weight:normal;
    font-size:22px;
    margin-bottom:10px;
    font-family:calibri;
    }
    
    .post_image {
    background-image:url(images/postimage_bg.jpg);
    background-repeat:repeat-x;
    margin-left:-20px;
    margin-right:-20px;
    padding-top:15px;
    padding-bottom:15px;
    text-align:center;
    margin-bottom:10px;
    }
    
    .post_image img {
    padding:3px;
    background-color:#fff;
    border:1px solid #cccccc;
    }
    
    .post_details {
    background-image:url(images/post_detail_border_btm.jpg);
    background-repeat:repeat-x;
    margin-bottom:10px;
    background-position:bottom left;
    padding-bottom:10px;
    padding-left:3px;
    padding-right:3px;
    border:0px solid red;
    margin-bottom:25px;
    font-size:11px;
    }
    
    .post_details a,.post_details a:link,.post_details a:visited {
    border-bottom:1px dotted #cccccc;
    color:#666666
    }
    
    .the_content {
    line-height:19px;
    font-size:11px;
    color:#414141
    }
    
    .the_content a,.the_content a:link,.the_content a:visited {
    color:#5555555;
    font-weight:bold;
    font-family:tahoma;
    border-bottom:1px solid #888888
    }
    
    .the_content a:hover {
    color:#f16600;
    border-bottom:1px solid #f16600
    }
    
    .the_content h1,.the_content h2,.the_content h3,.the_content h4,.the_content h5,.the_content h6 {
    font-weight:normal;
    }
    
    .the_content h3,.the_content h2,.the_content h1 {
    font-size:23px;
    font-weight:normal;
    border-bottom:1px solid #bbbbbb;
    color:#2da83c8;
    padding-top:10px;
    padding-bottom:3px;
    }
    
    .the_content h4 {
    color:#1f6296;
    font-size:18px;
    padding-top:10px;
    margin-bottom:0px;
    }
    
    .the_content h5 {
    color:#ce0000;
    font-size:15px;
    margin-bottom:0px;
    }
    
    .the_content img {
    background:white;
    border:1px solid #dddddd;
    padding:3px;
    }
    
    .the_content img { 
    max-width: 600px; 
    width: expression(this.width > 600 ? 600: true);
    }
    
    .the_content .wp-smiley {
    padding:0px;
    border:0px;
    }
    
    .the_content blockquote {
    background:#fff;
    margin:0px;
    padding:5px;
    padding-left:20px;
    margin-bottom:20px;
    margin-top:20px;
    border:1px solid #dddddd;
    }
    
    #multipage-links {
    margin-top:20px;
    }
    
    #multipage-links a,#multipage-links a:link,#multipage-links a:visited {
    padding:4px;
    background:#dddddd;
    border:1px solid #cccccc;
    }
    
    .after_post_details {
    margin-top:30px;
    margin-bottom:20px;
    padding:10px;
    border-top:1px dotted #bbbbbb;
    border-bottom:1px dotted #bbbbbb;
    line-height:20px;
    }
    
    .after_post_details a.commentcount {
    color:#235e15
    }
    
    .after_post_details .adminedit a {
    color:#2c8ac6
    }
    
    .adsense-afterpost {
    text-align:center
    }
    
    .blogsep {
    background-image:url(images/blogsep.gif);
    background-repeat:repeat-x;
    height:17px;
    margin-top:20px;
    margin-bottom:15px;
    margin-left:-20px;
    margin-right:-20px;
    }
    
    .extra_content {
    
    }
    
    .relatedblock {
    width:130px;
    float:left;
    margin-left:50px;
    }
    
    .relatedblock img {
    margin-bottom:3px;
    margin-top:5px;
    margin-left:0px;
    padding:3px;
    background-color:#fff;
    border:1px solid #d1d1d1;
    width:125px;
    height:125px;
    }
    
    .relatedblock .details {
    text-align:center;
    margin-bottom:5px;
    text-decoration:underline
    }
    
    .socialbmark {text-align:center;}
    .socialbmark img {margin-right:10px;}
    
    /*comments area*/
    .replyjump {
    font-size:13px;
    float:right;
    background-color:#555555;
    border:1px solid #cccccc;
    padding:5px;
    margin:-10px;
    }
    
    .replyjump a,.replyjump a:link,.replyjump a:visited { color:#fff }
    .replyjump a:hover { border-bottom:1px solid #cccccc }
    
    .below-post {
    }
    
    /*sidebar*/
    #rightsidebar {
    float:right;
    border:0px solid red;
    width:291px;
    background:#f3f3f3;
    padding:10px;
    margin-top:-17px;
    border-left:1px solid #e2e2e2;
    border-bottom:1px solid #e2e2e2;
    }
    
    #side_subscribe {
    margin:0 auto;
    width:267px;
    height:59px;/*100*/
    background-image:url(images/side_subs_bg_top.jpg);
    background-repeat:no-repeat;
    position:relative;
    padding-top:41px;
    }
    
    #side_subscribe img { margin-left:4px; margin-right:4px; }
    
    #side_subscribe_btm {
    margin:0 auto;
    background-image:url(images/side_subs_btm.jpg);
    width:267px;
    height:8px;
    font-size:1px;
    background-repeat:no-repeat;
    }
    
    #side_subscribe_extra {
    margin:0 auto;
    width:267px;
    background-image:url(images/side_subs_bg.jpg);
    background-repeat:repeat-y;
    }
    
    #side_subscribe_extra p { margin:0px;padding:0px}
    
    .side_sep {
    background-image:url(images/side_sep.gif);
    background-repeat:repeat-x;
    height:8px;
    margin-top:20px;
    margin-bottom:20px;
    }
    
    #side_sponsors { margin-top:-6px; margin-bottom:-10px; }
    #side_sponsors img {
    float:left;
    margin:5px;
    margin-bottom:14px;
    padding-left:6px;
    
    }
    
    /*widgets*/
    .widgetblock {
    margin-bottom:20px;
    padding:5px;
    }
    
    .widgettitle,.tabber .tabbertab h2 {
    /*
    background-color:#777777;
    border-bottom:1px solid #3c7ca4;
    font-family:tahoma;
    font-weight:bold;
    font-size:11px;
    color:#fff;
    */
    background:#eeeeee;
    height:18px;
    padding-left:10px;
    padding-top:4px;
    padding-bottom:3px;
    margin:-5px;
    margin-bottom:5px;
    color:#444444;
    font-size:15px;
    font-weight:normal;
    font-family:calibri,verdana;
    text-transform:uppercase;
    border-bottom:1px solid #cccccc;
    }
    
    .widgetblock ul {
    margin:0px;padding:0px;
    margin-left:14px;
    list-style:none;
    list-style-image:url(images/li1.gif)
    }
    
    .widgetblock ul li {
    border-bottom:1px solid #dbdbdb;
    padding:4px;
    padding-left:0px;
    }
    
    .widgetblock ul li a,.widgetblock ul li a:link,.widgetblock ul li a:visited {
    
    }
    
    .widgetblock ul li a:hover { color:#204d73 }
    
    .smaller_widget_wrap {}
    .smaller_widget_left {float:left;width:140px;}
    .smaller_widget_right { float:right;width:140px; }
    
    #recentcomments .recentcomments a {
    }
    
    #recentcomments .recentcomments a.url {
    border-bottom:1px solid #bbbbbb
    }
    
    #recentcomments .recentcomments a:hover {
    color:#000;
    background-color:#fff
    }
    
    .textwidget a,.textwidget a:link,.textwidget a:visited {
    color:#444444;
    border-bottom:1px solid #bbbbbb
    }
    
    .textwidget b,.textwidget strong {
    font-family:tahoma
    }
    
    /*footer*/
    #footer {
    background-image:url(images/footer.gif);
    background-repeat:repeat-x;
    background-color:#686868;
    margin-bottom:0px;
    padding-top:5px;
    width:990px;
    margin:0 auto;
    }
    
    .footblock {
    width:292px;
    float:left;
    border:0px solid red;
    padding:13px;
    padding-top:5px;
    padding-left:20px;
    padding-right:14px;
    margin-right:2px;
    }
    
    .footblock h3 {
    font-size:22px;
    font-weight:normal;
    color:#f9f9f9;
    margin-top:5px;
    margin-bottom:5px;
    font-family:calibri;
    }
    
    .footsep {
    float:left;
    margin-top:13px;
    margin-bottom:13px;
    width:1px;
    height:199px;
    background-color:#888888
    }
    
    .footsearch {
    background-image:url(images/footsearch.jpg);
    background-repeat:no-repeat;
    width:274px;
    height:43px;
    margin-bottom:20px;
    margin-left:-3px;
    }
    
    .footsearch_input {
    border:0px solid red;
    background-color:transparent;
    height:27px;
    width:220px;
    font-size:19px;
    font-family:Calibri, "Lucida Grande", Arial, Helvetica, sans-serif;
    float:left;
    margin-top:2px;
    margin-left:5px;
    padding:0px;
    padding-top:10px;
    color:#fff
    }
    
    .footsearch_submit {
    margin-top:2px;
    margin-left:2px;
    float:left;
    border:0px solid red;
    background-color:transparent;
    }
    
    /*popular posts*/
    .footblock ul { list-style:none; margin:0px; padding:0px; }
    .footblock ul li { padding:4px; color:#dedede }
    
    .footblock ul li a,.footblock ul li a:link,.footblock ul li a:visited { color:#dedede }
    .footblock ul li a:hover { color:#eeeeee }
    
    .popular_table {
    height:15px;display:inline;margin-right:5px;
    float:left;
    }
    
    .popular_td {
    height:15px;
    background-image:url(images/popular1.gif);
    background-repeat:repeat-x;
    color:#fff;
    padding-left:4px;
    padding-bottom:2px;
    padding-right:4px;
    }
    
    .popular_td a,.popular_td a:visited,.popular_td a:link { color:#fff !important; }
    .popular_td a:hover { color:#fff;text-decoration:none }
    
    .popular_l {
    height:15px;width:5px;
    background-image:url(images/popular_l.gif);
    background-repeat:no-repeat;
    }
    
    .popular_r {
    height:15px;width:5px;
    background-image:url(images/popular_r.gif);
    background-repeat:no-repeat;
    }
    
    /*flickr*/
    #flickr {
    margin:0px;
    }
    
    .flickrimg img {
    margin-right:10px;
    margin-bottom:10px;
    padding:3px;
    background:#555555;
    border:1px solid #999999
    }
    
    /*misc.*/
    .go-left{float: left;clear: left;}
    .go-right{	float: right;	clear: right;}
    .go-center{	margin: 0 auto;	text-align: center;}
    .bold{ font-weight: bold;}
    .italic{ font-style: italic;}
    .block{	display: block;}
    .align-right{	text-align: right;}
    .align-left{ text-align: left;}
    
    .wp-pagenavi,.below-post {
    background-color:#f3f3f3;
    padding:10px;
    border:1px solid #eeeeee
    }
    
    /*twitter*/
    #twitter_update_list li {
    border-bottom:1px solid #888888;
    padding:4px;
    color:#dddddd;
    }
    
    #twitter_update_list li a,#twitter_update_list li a:link,#twitter_update_list li a:visited {
    color:#cccccc;
    background:#666666;
    font-family:tahoma;
    margin-left:6px;
    }
    
    #twitter_update_list li span a {
    background:transparent !important;
    color:#dddddd !important;
    text-decoration:underline;
    margin-left:0px !important;
    }
    
    .foot_follow {
    font-size:13px;
    background-color:#555555;
    border:1px solid #777777;
    padding:5px;
    color:#eeeeee;
    }
    
    .foot_follow a,.foot_follow a:link,.foot_follow a:visited {color:#eeeeee}
    
    .copyright {
    width:970px;
    margin:0 auto;
    height:25px;
    background-color:#9d9d9d;
    margin-bottom:20px;
    padding-top:8px;
    padding-left:10px;
    padding-right:10px;
    }
    
    #footcopy {
    background-image:url(images/footer_copy.gif);
    height:28px;
    color:#888888;
    text-align:center;
    padding-top:15px;
    }
    #footcopy a,#footcopy a:link,#footcopy a:visited {color:#888888;}
    
    /*archives*/
    .archives_ul li {
    border-bottom:1px solid #cccccc;
    padding:5px;
    }
    
    .archives_ul li .thumbnail { margin-right:10px; }
    .archives_ul li h2 { color:#333333 }
    
    .alignleft {
    	float: left;
    }
    
    .alignright {
    	float: right;
    }
    Code (markup):
    category.php
    <?php get_header(); ?>
    
    <div id="leftandright">
    <div id="leftcontent">
    
    <div class="the_category">
    Viewing Category &raquo; <?php single_cat_title(); ?>
    </div><!--/oneblog-->
    
    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <?php
    $zionn_postthumbnail_disable = get_option('zionn_postthumbnail_disable');
    
    if ($zionn_postthumbnail_disable != 'true') {
    
    /* post thumbnail */
    $rs_image_key = 'post_thumbnail';
    $thereisimage = get_post_meta($post->ID, $rs_image_key, true);
    if(!$thereisimage) {
    $zionn_postthumbnail_default = get_option('zionn_postthumbnail_default');
      if ($zionn_postthumbnail_default) { $thereisimage = $zionn_postthumbnail_default; } else {
      $thereisimage = get_bloginfo('template_directory').'/images/blank.jpg';
      }
    }
    $zionn_thumbnail_code = '<div class="thumbnail_holder"><a title="'.htmlspecialchars($post->post_title).'" href="'.get_permalink($post->ID).'"><img class="thumbnail" src="'.$thereisimage.'" alt="Post Thumbnail of '.htmlspecialchars($post->post_title).'" /></a></div>';
    
    $extrawidth = '';
    } else {
    $zionn_thumbnail_code = '';
    $extrawidth = ' extrawidth';
    }
    ?>
    
    
    <div class="oneblog">
    
    <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    
    <?php echo $zionn_thumbnail_code; ?>
    
    <div class="excerpt<?php echo $extrawidth; ?>">
    
    <div class="excerpt_details">
    <span class="left"><img src="<?php bloginfo('template_directory'); ?>/images/folder.gif" alt="" /> &nbsp;<?php the_category(','); ?></span>
    <span class="right"><img src="<?php bloginfo('template_directory'); ?>/images/calendar.gif" alt="" /> <?php the_time('j F Y'); ?></span>
    <div class="clear"></div>
    </div>
    
    <?php the_excerpt(); ?>
    
    </div><!--/excerpt-->
    <div class="clear"></div>
    
    </div><!--/oneblog-->
    
    
    <?php
    
    endwhile;
    
    include('wp-pagenavi.php');
    if (function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
    
    <?php
    else :
    ?>
    
    
    <div class="oneblog_top"></div>
    <div class="single_post">
    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that isn't here.</p>
    </div><!--/single_post-->
    <div class="oneblog_btm"></div>
    
    <?php
    endif;
    ?>
    
    </div><!--/leftcontent-->
    
    
    <?php get_sidebar(); ?>
    <div class="clear"></div>
    </div><!--/leftandright-->
    <?php get_footer(); ?>
    Code (markup):
    index.php
    <?php get_header(); ?>
    
    <div id="leftandright">
    <div id="leftcontent">
    
    <?php
    $zionn_postimage_disable = get_option('zionn_postimage_disable');
    $zionn_featured_disable = get_option('zionn_featured_disable');
    $zionn_featured_cat = get_option('zionn_featured_cat');
    
    if ($zionn_featured_disable != 'true' && $zionn_postimage_disable != 'true' && $zionn_featured_cat) {
    $zionn_featured_limit = get_option('zionn_featured_limit');
    if (!is_numeric($zionn_featured_limit) || $zionn_featured_limit=='' ) { $zionn_featured_limit = 6; }
    ?>
    <div id="featured">
    <div style="width:620px;margin-left:7px;overflow:hidden">
    <?php
    $my_query = new WP_Query('showposts=-1&orderby=date&order=DESC&cat='.$zionn_featured_cat);
    $wp_query->in_the_loop = true;
    $featured_loopid = 1;
    while ($my_query->have_posts()) { $my_query->the_post();
    
    $rs_image_key = 'image';
    $thereisimage = get_post_meta($post->ID, $rs_image_key, true);
    if($thereisimage) {
    ?>
    <div class="featured_one_folder" id="zv_img<?php echo $featured_loopid; ?>"<?php if ($featured_loopid>1) { echo ' style="visibility:hidden;"'; } ?>>
    <center><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img alt="<?php the_title(); ?>" class="featuredimg" src="<?php echo $thereisimage; ?>" /></a>
    <div class="heightwidth_fix">
      <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
      <div class="featuredtext"><?php the_excerpt(); ?></div>
    </div></center>
    </div>
    
    <?php
    $featured_loopid++;
    if ( $featured_loopid > $zionn_featured_limit) { break; }
    }
    }
    ?>
    </div>
    </div><!--/featured-->
    <?php
    } //end featured
    ?>
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <?php
    $zionn_postthumbnail_disable = get_option('zionn_postthumbnail_disable');
    
    if ($zionn_postthumbnail_disable != 'true') {
    
    /* post thumbnail */
    $rs_image_key = 'post_thumbnail';
    $thereisimage = get_post_meta($post->ID, $rs_image_key, true);
    if(!$thereisimage) {
    $zionn_postthumbnail_default = get_option('zionn_postthumbnail_default');
      if ($zionn_postthumbnail_default) { $thereisimage = $zionn_postthumbnail_default; } else {
      $thereisimage = get_bloginfo('template_directory').'/images/blank.jpg';
      }
    }
    $zionn_thumbnail_code = '<div class="post_thumbnail"><a title="'.htmlspecialchars($post->post_title).'" href="'.get_permalink($post->ID).'"><img class="thumbnail" src="'.$thereisimage.'" alt="Post Thumbnail of '.htmlspecialchars($post->post_title).'" /></a></div>';
    
    $extrawidth = '';
    } else {
    $zionn_thumbnail_code = '';
    $extrawidth = ' extrawidth';
    }
    ?>
    
    
    <div class="oneblog">
    
    <div class="oneblog_titlearea">
    <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    <div class="oneblog_commentcount"><?php comments_popup_link('0', '1', '%'); ?></div>
    </div>
    
    <?php echo $zionn_thumbnail_code; ?>
    
    <div class="excerpt<?php echo $extrawidth; ?>">
    
    <div class="excerpt_details">
    <span class="left"><img src="<?php bloginfo('template_directory'); ?>/images/folder.gif" alt="" /> &nbsp;<?php the_category(','); ?></span>
    <span class="right"><img src="<?php bloginfo('template_directory'); ?>/images/calendar.gif" alt="" /> <?php the_time('j F Y'); ?></span>
    <div class="clear"></div>
    </div>
    
    <?php the_excerpt(); ?>
    
    </div><!--/excerpt-->
    <div class="clear"></div>
    
    </div><!--/oneblog-->
    
    
    <?php
    
    endwhile;
    
    include('wp-pagenavi.php');
    if (function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
    
    <?php
    else :
    ?>
    
    
    <div class="oneblog_top"></div>
    <div class="single_post">
    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that isn't here.</p>
    </div><!--/single_post-->
    <div class="oneblog_btm"></div>
    
    <?php
    endif;
    ?>
    
    </div><!--/leftcontent-->
    
    
    <?php get_sidebar(); ?>
    <div class="clear"></div>
    </div><!--/leftandright-->
    <?php get_footer(); ?>
    Code (markup):
     
    Salman Qamar, Apr 30, 2011 IP
  6. Miroslav Chodak

    Miroslav Chodak Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    95
    #6
    Unfortunately, I don't have time to look into your CSS, templates and plugins in detail. However, if you wish your category to have the same design as your home page, one simple way to achieve it is to delete (or rename, if you want to use it later) the category.php template.
     
    Miroslav Chodak, Apr 30, 2011 IP
  7. Salman Qamar

    Salman Qamar Active Member

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #7
    I have no words to say you thanks. Really thanks. error fixed.
     
    Salman Qamar, Apr 30, 2011 IP
  8. Miroslav Chodak

    Miroslav Chodak Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    95
    #8
    Great! Glad to have helped!
     
    Miroslav Chodak, Apr 30, 2011 IP