Unfortunately due to other commitments, we are no longer able to provide support for these themes.

All our themes are now free and can be downloaded by anyone to use/modify however they wish.

We want to thank all our users for their support over the years. All the best in 2020 and beyond.

Derby Excerpt Tag

stuart_murphystuart_murphy Lifetime Member
Hi Mark,

I've spent days trying to work out why my excerpt tag on my AffordaBand home page doesn't display any more text than one single word with three dots from the page it links to. I can't find anywhere, or any way to make the excerpt more text-filled. And another thing, I have a 1000px full-width jpg picture in my homepage slider (5 different jpg sliders in fact, that rorate), and for the life of me, I can't find where I'm supposed to make them a clickable link to other pages on my website. I've spend days trying to figure it out. Can you pls advise? Thanks a lot, Stu

Comments

  • Options
    stuart_murphystuart_murphy Lifetime Member
    Any thoughts on this at all, Mark? Or is it just css commands somewhere? I'd rather address the original problem than adding extra css to resolve it. But what do you think?
  • Options
    stuart_murphystuart_murphy Lifetime Member
    Anyone there?
  • Options
    Mark_HodderMark_Hodder Administrator, Lifetime Member
    edited February 19
    Hi Stu,

    There is nothing to do to enable or disable slides having the clickable function so it's either been:

    1. Removed by you previously or someone that may have customized your site.

    2. You are using an older version of Derby that doesn't have this feature (I don't recall at this point if this was something that Derby had from the start or not).

    The best solution is to upgrade Derby to the latest version, but I know you've had issues doing that in the past so would probably need to hire help to do so.

    However, the specific bit of code you should have would be in /wp-content/themes/derby-g1/home.php file after this line:

    It should be like this:
     <li class="slide">	
                        <?php 
                        if (genesis_get_image()) {
                            $img = genesis_get_image( array( 'format' => 'html' ) );
                        } else {
                            $img = '<img src="'.CHILD_URL.'/images/noimage940x350.png" alt="" />';
                        }
                        echo '<a href="'.get_permalink().'" title="'.the_title_attribute('echo=0').'">'.$img.'</a>';
                        $excerpt = get_the_excerpt();
                        if (strlen($excerpt) > 120) {
                        $excerpt = substr($excerpt,0,strpos($excerpt,' ',120)); }
                        $excerpt = $excerpt.' ...';
                        if (themedy_get_option('slider_captions')) { echo '<div class="flex-caption"><div class="container"><h4>'. get_the_title() . '</h4><p>' . $excerpt .'</p></div></div>'; }
                        ?>	
                    </li>
    You can try replacing it but make sure to have a backup of that file first in case it doesn't work.
    Post edited by Mark_Hodder on
    Need Additional Help?
    - Check out the Resource Center for helpful tutorials and hints.


    image
This discussion has been closed.