Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4664

    I created a custom template using the Blog element to limit posts on the page to be from a single contributor. However when I view the page, my read more breaks are disregarded. I wan this to be like a blog overview page but for a single category of posts.

    #47126

    Hey,

    another user reported the error for another theme too. I’ll forward it to Kriesi. The user provided a fix – open up includes/helper-templates.php and replace:

    function blog($element)
    {
    extract($element['saved_value'][0]);

    global $avia_config;

    with:

    function blog($element)
    {
    extract($element['saved_value'][0]);

    global $avia_config, $more;

    And replace:

    Code:
    echo “<div class=’template-blog content’>”;
    get_template_part(‘includes/loop’,’index’);

    with this:

    Code:
    echo “<div class=’template-blog content’>”;
    $more = 0;
    get_template_part( ‘includes/loop’, ‘index’ );

    #47127

    Worked like a charm! Thanks!

    #47128

    Glad that I could help you :)

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

The topic ‘Using 'read more' in template builder.’ is closed to new replies.