Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter lucid_design

    (@lucid_design)

    Peter, great idea. I had modified that code significantly and working backward from the original solved the problem.

    Many thanks for your time and thoughts….

    Thread Starter lucid_design

    (@lucid_design)

    I don’t see that code in the original single.php, so yes, I did add that code.

    Thread Starter lucid_design

    (@lucid_design)

    Thread Starter lucid_design

    (@lucid_design)

    Here’s the code from the index.php file:

    <div class=”metabox”>
    <span class=”catlink”><?php _e(‘Related:’); ?> <?php the_category(‘, ‘) ?></span> <span class=”commentlink”><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></span> <span class=”editcomment”><?php edit_post_link(‘Edit’, ”, ”); ?></span><?php if (get_the_tags()) : ?><span class=”taglink”><?php _e(‘Tags:’); ?><?php the_tags(‘ ‘, ‘, ‘, ”); ?></span><?php endif; ?>

    Here’s the index page link: https://albereo.com/melanie

    Here is the code from the single.php file:

    <div class=”metabox”>
    <span class=”catlink”><?php _e(‘Related:’); ?> <?php the_category(‘, ‘) ?></span> <span class=”commentlink”><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></span> <span class=”editcomment”><?php edit_post_link(‘Edit’, ”, ”); ?></span><?php if (get_the_tags()) : ?><span class=”taglink”><?php _e(‘Tags:’); ?><?php the_tags(‘ ‘, ‘, ‘, ”); ?></span><?php endif; ?>

    Here is a single page url: https://albereo.com/melanie

    The line “Comments are closed.” appears here at the lower left under the post.

    Yet my interest is in removing the “No Comments” line that appears higher in the meta content just below the post.

    Anyone have a cure or another good idea to play with?

    Thread Starter lucid_design

    (@lucid_design)

    I want to keep comments enabled in the Discussion Settings and enable/disable comments on a per post basis.

    I know that if I have comments enabled for a post and no one has commented, the line “No Comments” will appear. That’s OK.

    As I look at my comments.php code, the words “Comments are closed” should appear, but is not. Here is a section of that code:

    <?php else : // this is displayed if there are no comments so far ?>

    <?php if (‘open’ == $post->comment_status) : ?>
    <!– If comments are open, but there are no comments. –>

    <?php else : // comments are closed ?>

    <!– If comments are closed. –>

    <p class=”nocomments”>Comments are closed.</p>

    <?php endif; ?>

    <?php endif; ?>

    I’m going to take a good look at the index.php and single.php files.

    Thread Starter lucid_design

    (@lucid_design)

    Yes, I have tried that and the words still appear.

    I’m using Black n White theme.

    Thread Starter lucid_design

    (@lucid_design)

    Thank you, worked perfectly.

    Thread Starter lucid_design

    (@lucid_design)

    That cleared up the issue.
    Many thanks alchymyth.

    Thread Starter lucid_design

    (@lucid_design)

    That was the solution for the navmenu links.

    There’s a second issue that I thought this would clear up but didn’t. The :link and :visited colors are the same throughout my css style. Yet, the category and tag links that accompany each post is showing different :link and :visited colors. (The :link is yellow and the :visited is ivory; both should be ivory).

    Here is my css code again with all the link preferences:

    h1 a{

    color: #FFB915;

    text-decoration: underline;}

    h1 a:visited{

    color: #FFB915;

    text-decoration: underline;}

    h1 a:hover{

    text-decoration: none;

    color: #FFB915;}
    a:link{

    text-decoration: underline;

    color: #FFB915;}
    a:visited{

    text-decoration: underline;

    color: #FFB915;}

    a:hover{

    text-decoration: none;

    color: #FFB915;}

    p{

    padding: 10px 0 0 0;}

    #wrapper{

    float: center;

    margin: 0 auto 0 auto;

    width: 990px;

    text-align: left;}

    #header{

    float: center;

    width: 990px;

    height: 90px;

    color: #FFB915;

    background: url(images/header_logo_web.jpg); }

    #htitle{

    float: left;

    margin: 17px 10px 0 0;}

    #desc{

    float: left;

    color: #000000;

    margin: 25px 10px 0 0;}

    #navmenu{

    float: right;

    margin: 0px 10px 0;}

    #navmenu a:link {

    text-decoration: underline;

    color: FFB915;}

    #navmenu a:visited {

    text-decoration: underline;

    color: FFB915;}

    #navmenu a:hover {
    text-decoration: none;

    color: FFB915;}

    #navmenu ul{

    list-style-type: none;

    list-style-image: none;}

    #navmenu ul li{

    display: inline;

    padding: 0 0 0 10px;}

    #navmenu ul li a:link {

    text-decoration: underline;

    color: FFB915;}

    #navmenu ul li a:visited {

    text-decoration: underline;

    color: FFB915;}

    #navmenu ul li a:hover {
    text-decoration: none;

    color: FFB915;}

    #container{

    float: center;

    width: 990px;

    margin: 0 0px 0 0;

    background: #000000;

    }

    #postcon{

    margin: 10px 0;}

    .post{

    padding: 10px 20px;}

    .post a{

    color: #E9D5A0

    text-decoration: underline;
    }
    .post a:visited{

    color: #E9D5A0;

    text-decoration: underline;}

    .post a:hover{

    color: #E9D5A0;

    text-decoration: none;}

    .post h2{

    font-family: Bell, Times, Times New Roman;

    font-size: 20px;

    color: #FFB915;

    line-height: 28px;}

    .post h2 a{

    color: #FFB915;}

    .entry{

    line-height: 18px;}

    .postmetadata{

    float: center;

    border-top: 0px solid #7F0303;

    padding: 0px 40px 40px 0px;

    color: #000000;}

    .metabox{

    float: center;

    width: 80%;

    line-height: 20px;

    margin: 15px 0;

    padding: 5px 0px 5px 5px;

    background: #000000;

    }

    .navigation{

    clear: left;

    padding: 10px 10px;

    background: url(images/top-nav-bar.jpg);

    color: #340707;

    width: 970px;

    height: 15px;}

    .commentlink{

    padding: 2px 0 2px 20px;

    background: 000000;

    margin-left: 10px;}

    .editcomment{

    padding: 2px 0 2px 20px;

    background: 000000;

    margin-left: 10px;}

    .catlink{

    padding: 2px 0 2px 20px;

    background: 000000;
    }

    .taglink{

    display: block;

    padding: 2px 0 2px 20px;

    background: 000000;}

    /*Tags

    —————————————————–*/

    .tags,

    #tag_cloud {

    margin: 0 0 15px;}

    .tags {

    text-align: left;}

    .tags a,

    #tag_cloud a {

    color: #AAA;

    margin: 0 2px;}

    .cle{

    clear: both;}

    /*Footer

    —————————————————–*/

    #footer{

    clear: both;

    float: center;

    text-align: center;

    width: 990px;

    line-height: 20px;

    margin: 15px 0;

    padding: 0 0 0 0px;}

    #footermenu{

    float: center;

    margin: 0px 0 0 0;}

    #footermenu a:link {

    text-decoration: underline;

    color: 340707;}

    #footermenu a:visited {

    text-decoration: underline;

    color: 340707;}

    #footermenu

    a:hover {
    text-decoration: none;

    color: 340707;}

    #footermenu ul{

    list-style-type: none;

    list-style-image: none;}

    #footermenu ul li{

    display: inline;

    padding: 0 0 0 20px;}

    #footermenu ul li a:link {

    text-decoration: underline;

    color: 340707;}

    #footermenu ul li a:visited {

    text-decoration: underline;

    color: 340707;}

    #footermenu ul li a:hover {

    text-decoration: none;

    color: 340707;}

    Thread Starter lucid_design

    (@lucid_design)

    That worked. Thanks esmi for your quick response.

    Thread Starter lucid_design

    (@lucid_design)

    That’s it! It works.

    Thank you stvwlf. I really appreciate your attention on this.

    Thread Starter lucid_design

    (@lucid_design)

    I made the suggestions you gave. Comments are still not showing.

    The line

    <!– index.php –>

    is appearing in the source code.

    Thread Starter lucid_design

    (@lucid_design)

    Thanks for your reply. I placed that line of code where you suggested it, with no success. Then I moved it around. Still no display of comments. Will it help to look at the code of this page?

    https://luisakolker.com/blog/

    Thread Starter lucid_design

    (@lucid_design)

    Thanks, but I’m having trouble.

    stvwlf: I don’t seem to be finding the right code from the single.php. would you help me locate that? The file is here:

    ‘<?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php previous_post_link(‘« %link’) ?></div>
    <div class=”alignright”><?php next_post_link(‘%link »’) ?></div>
    </div>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2><?php the_title(); ?></h2>

    <div class=”entry”>
    <?php the_content(‘<p class=”serif”>’ . __(‘Read the rest of this entry »’, ‘minimalism’) . ‘</p>’); ?>

    <?php wp_link_pages(array(‘before’ => ‘<p>‘ . __(‘Pages:’, ‘minimalism’) . ‘ ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
    <?php the_tags( ‘<p>’ . __(‘Tags:’, ‘minimalism’) . ‘ ‘, ‘, ‘, ‘</p>’); ?>

    <p class=”postmetadata alt”>
    <small>
    <?php /* This is commented, because it requires a little adjusting sometimes.
    You’ll need to download this plugin, and follow the instructions:
    https://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    /* $entry_datetime = abs(strtotime($post->post_date) – (60*120)); $time_since = sprintf(__(‘%s ago’, ‘minimalism’), time_since($entry_datetime)); */ ?>
    <?php printf(__(‘This entry was posted %1$s on %2$s at %3$s and is filed under %4$s.’, ‘minimalism’), $time_since, get_the_time(__(‘l, F jS, Y’, ‘minimalism’)), get_the_time(), get_the_category_list(‘, ‘)); ?>
    <?php printf(__(“You can follow any responses to this entry through the RSS 2.0 feed.”, “kubrick”), get_post_comments_feed_link()); ?>

    <?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Both Comments and Pings are open ?>
    <?php printf(__(‘You can leave a response, or trackback from your own site.’, ‘minimalism’), trackback_url(false)); ?>

    <?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Only Pings are Open ?>
    <?php printf(__(‘Responses are currently closed, but you can trackback from your own site.’, ‘minimalism’), trackback_url(false)); ?>

    <?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Comments are open, Pings are not ?>
    <?php _e(‘You can skip to the end and leave a response. Pinging is currently not allowed.’, ‘minimalism’); ?>

    <?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    <?php _e(‘Both comments and pings are currently closed.’, ‘minimalism’); ?>

    <?php } edit_post_link(__(‘Edit this entry’, ‘minimalism’),”,’.’); ?>

    </small>
    </p>

    </div>
    </div>

    <?php comments_template(); ?>

    <?php endwhile; else: ?>

    <p><?php _e(‘Sorry, no posts matched your criteria.’, ‘minimalism’); ?></p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>’

    And the index.php file is:

    ‘<?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”<?php printf(__(‘Permanent Link to %s’, ‘minimalism’), the_title_attribute(‘echo=0’)); ?>”><?php the_title(); ?></h2>
    <small><?php the_time(__(‘F jS, Y’, ‘minimalism’)) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(__(‘Read the rest of this entry »’, ‘minimalism’)); ?>
    </div>

    <p class=”postmetadata”><?php the_tags(__(‘Tags:’, ‘minimalism’) . ‘ ‘, ‘, ‘, ‘
    ‘); ?> <?php printf(__(‘Posted in %s’, ‘minimalism’), get_the_category_list(‘, ‘)); ?> | <?php edit_post_link(__(‘Edit’, ‘minimalism’), ”, ‘ | ‘); ?> <?php comments_popup_link(__(‘No Comments »’, ‘minimalism’), __(‘1 Comment »’, ‘minimalism’), __(‘% Comments »’, ‘minimalism’), ”, __(‘Comments Closed’, ‘minimalism’) ); ?></p>
    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(__(‘« Older Entries’, ‘minimalism’)) ?></div>
    <div class=”alignright”><?php previous_posts_link(__(‘Newer Entries »’, ‘minimalism’)) ?></div>
    </div>

    <?php else : ?>

    <h2 class=”center”><?php _e(‘Not Found’, ‘minimalism’); ?></h2>
    <p class=”center”><?php _e(‘Sorry, but you are looking for something that isn’t here.’, ‘minimalism’); ?></p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>’

    Sorry, I don’t know what ‘inside the WP loop’ means.

    Thanks for your help.

    Thread Starter lucid_design

    (@lucid_design)

    I’ve got IE 6.0 on a laptop that I’ve been checking the site it. That’s where I still see the 100% body text. Apparently in higher versions of IE, it’s displaying properly. It also displays well in all of my Mac browsers.

    Anybody with earlier versions of IE seeing this body text problem?

    Concerning the fix to the missing header image problem, I changed these lines of the style.css file from this:

    ‘#header {
    background: #url(‘images/kubrickheader.jpg’) no-repeat bottom center;
    margin: 0;
    padding: 0;
    height: 175px;
    }

    #headerimg {
    margin: 0;
    height: 175px;
    padding: 0 0 0 45px;

    }’

    to this:

    ‘#header {
    background: url(‘images/kubrickheader.jpg’) no-repeat;
    margin: 0;
    padding: 0;
    height: 200px;
    }

    #headerimg {
    margin: 0;
    height: 200px;
    padding: 0 0 0 45px;
    }’

Viewing 15 replies - 1 through 15 (of 25 total)