Sticky post not showing excerpt text.

  • bjeffries

    #4197

    My sticky post at the top of my home page doesn’t show any excerpt text. I tried to delete the content and put it back in and that didn’t do anything. Any suggestions on getting that text to show up?

    Thanks.

    bjeffries

    #27566

    Here is the URL: motodude.com

    Mod

    Kenneth John Odle

    #27567

    You’ve disabled right clicks on your site, so it’s pretty much impossible for me to take a look at it.

    bjeffries

    #27568

    Sorry, I guess some of the images on the site are “rare” so they wanted me to do something to make it difficult for people to save them.

    Go ahead and try it now.

    bjeffries

    #27569

    Does anyone know why the text doesn’t show up?

    Mod

    Kenneth John Odle

    #27570

    How did you create the excerpt? Is it just the default, or did you use the “more” tag? I don’t see anything in the css that could cause this.

    You have created a child theme improperly, btw. That may have something to do with it if you have altered any core theme files.

    bjeffries

    #27571

    Yes, I don’t quit understand how to properly create a child theme. The is the only thing I did when it comes to modifying the loop.

    Basically moved this code from its original place and put it at the top and added the if statement. Im no PHP guru so don’t judge haha.

    <?php if (is_single() || is_page()) : ?>

    <?php elseif (!(is_page() || is_single())): ?>
    <?php /* The post thumbnail */
    if (has_post_thumbnail(get_the_ID())) { ?>
    <div class="excerpt-thumb">
    <a>" rel="bookmark" title="<?php printf(esc_attr__('Permalink to %s', 'graphene'), the_title_attribute('echo=0')); ?>">
    <?php the_post_thumbnail(apply_filters('graphene_excerpt_thumbnail_size', 'thumbnail')); ?>
    </a>
    </div>
    <?php
    } else {
    echo graphene_get_post_image(get_the_ID(), apply_filters('graphene_excerpt_thumbnail_size', 'thumbnail'), 'excerpt');
    }
    ?>
    <?php endif; ?>

    The rest is unaltered other than a similar statement to remove the footer and the links page and I think that is all.

    Sorry I cannot figure out how to put code in a post.

    Mod

    Kenneth John Odle

    #27572

    You might want to move that file out of your child theme folder and see if that takes care of the problem.

    remove the footer and the links page

    You can hide the footer with css (#footer {display:none;}). I’m not sure what links page you are referring to, but you can do something similar if it is a page element.

    I don’t quit understand how to properly create a child theme.

    See this post:

    https://forum.graphene-theme.com/graphene-support/new-font#post-20823

    Sorry I cannot figure out how to put code in a post.

    Put it between backticks (on the ~ key in the upper left hand corner) or between <code> and </code>. I’ve fixed it for you above. Or use pastebin.com

    Backtick: http://bit.ly/backtick

    bjeffries

    #27573

    If I use footer display none then it completely removes the footer, I just don’t want the footer to be displayed in excerpts.

    Here is the code to relocate my thumbnail:

    <?php if (is_single() || is_page()) : ?>
    <?php elseif (!(is_page() || is_single())): ?>
    <?php /* The post thumbnail */<br />
    if (has_post_thumbnail(get_the_ID())) { ?>
    <div class="excerpt-thumb">
    <a>" rel="bookmark" title="<?php printf(esc_attr__('Permalink to %s', 'graphene'), the_title_attribute('echo=0')); ?>">
    <?php the_post_thumbnail(apply_filters('graphene_excerpt_thumbnail_size', 'thumbnail')); ?>
    </a>
    </div>
    <?php<br />
    } else {
    echo graphene_get_post_image(get_the_ID(), apply_filters('graphene_excerpt_thumbnail_size', 'thumbnail'), 'excerpt');<br />
    } ?><br />
    <?php endif; ?>

    Here is the code to create the new div:

    <?php if (is_single() || is_page()) : ?>
    <?php elseif (!(is_single() || is_page())) : ?>
    <div class="excerpt-post">
    <?php endif; ?>

    Here is the code to remove the wp_link_pages():

    <?php if (is_single() || is_page()) : ?>
    <?php wp_link_pages( array( 'before' => '<div class="link-pages"><p><strong>' . __( 'Pages:','graphene' ) . '</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
    <?php elseif (!(is_page() || is_single())): ?>
    <?php endif ; ?>

    The code to remove the footer:

    <?php if (is_single() || is_page()) : ?>
    <div class="entry-footer clearfix">
    .....footer code.....
    </div>
    <?php elseif (!(is_page() || is_single())): ?></p>
    <?php endif; ?>

    Then lastly, close my new div:

    <?php if (is_single() || is_page()) : ?>
    <?php elseif (!(is_single() || is_page())) : ?>
    </div>
    <?php endif; ?>

    <p>That is all I modified for the loop. So if I remove the loop from my child-theme I will lose the way I have it setup. I like the way it is setup right now because it takes up lest space on the page, therefore people dont have to scroll so far to reach the bottom.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!