Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #5411

    Hi, I have been trying to truncate the number of words on the Portfolio page using more tag but it hasn’t been working at all – it is still showing the number of words on default? http://lollipopbaby.com.au/website-designs/

    Thanks,

    Linda

    #50101

    Hey,

    open up template_portfolio.php and replace following code:

    the_excerpt();

    echo "<a href='".get_permalink()."' class='more-link'>".__('Read more','habitat')."</a>";

    with:

    the_content('<span>'.__('Read more','habitat').'</span>');

    This will activate the read more tag feature.

    #50102

    Hi I’ve made the changes and instead of truncating the excerpt now it’s showing the whole posts on the portfolio? Thanks for your help.

    #50103

    Can you create me an admin account and send me the login data to: (Email address hidden if logged out) – I’ll look into it. Maybe I need to set the global more variable…

    #50104

    Thanks for your prompt reply – the password email should be on your way now!

    #50105

    Fixed it :)

    #50106

    Thanks! One more thing though that I have just noticed – the slider doesn’t work properly now on Safari (ok on Firefox). It’s just keep ‘thinking’ but never brings out the images, either on the front page or individual portfolio page. I’ve just updated wordpress & habitat version yesterday but i think it worked on safari last night. Any advice? I’ve deleted your admin account but just let me know if you need it again. Thanks.

    #50107

    I’ve tested your website with all popular browsers: Firefox, Chrome, Safari (5.1 Windows Edition), Opera and IE8, IE9 and couldn’t notice any js errors or slider glitches. Maybe try to clear the browser cache.

    #50108

    Thanks Peter, not sure what happened. I cleared the cache last night and didn’t work but it’s all fine now. Thanks so much for your help. Much appreciated.

    #50109

    Glad that it works now :)

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

The topic ‘Truncating words with More Tags on portfolio category page doesn't work’ is closed to new replies.