Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1219124

    Hi there,

    In my previous ticket (https://kriesi.at/support/topic/blog-entry-does-look-weird-when-using-avia-layout-architect/#post-1219119) I learnt that when using the Avia Layout Architect instead of the standard editor I have to add blocks for the thumbnail image, headline, categories, social media etc. manually. Understood.

    But what I still do not understand is how I get a read-more text for such a blog entry on home – where by blog with all posts is shown. I have entered a read-more-tag (see screenshot Read-More-Tag.jpg). But still no content text at all does show up on home (see screenshot Home.jpg).

    Would highly appreciate your help on this.

    Thank you!

    • This topic was modified 4 years, 6 months ago by mai.
    #1219931

    Hey mai,

    Please have a look at the following thread:

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1220072

    Hi Victoria,

    Thanks for your message! I have added this code in the function.php

    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'blog-grid';
    return $layout;
    }

    Unfortunately there is still no read-more text.

    And are you sure that this is the category page? I am really talking about my blog overview page – where all blog posts are shown. Or is it really necessary to install a plugin in order to get a read-more text for these posts?

    Thank you!

    #1220253

    Hi mai,

    Please have a look at the solution posted here:
    https://kriesi.at/support/topic/add-read-more-text-on-grid-blog-archive-page/#post-597509

    You will need to add the code from there too.

    Best regards,
    Victoria

    #1220509

    Hi Victoria,

    I have added the code from your link (see complete code of my function.php in the private content). But still the read-more-text does not show up on home of my site.

    Have I misunderstood what to add in my functions.php?

    Thank you!!!

    • This reply was modified 4 years, 6 months ago by mai.
    #1220650

    Hi mai,

    You need to move archive.php to your child theme if you want the modification to survive updates.

    And change

    
    $atts   = array(
        'type' => 'grid',
        'items' => get_option('posts_per_page'),
        'columns' => 3,
        'class' => 'avia-builder-el-no-sibling',
        'paginate' => 'yes',
        'use_main_query_pagination' => 'yes',
        'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=>get_post_types() )
    );
    

    to:

    
    $atts   = array(
        'type' => 'grid',
        'items' => get_option('posts_per_page'),
        'columns' => 3,
        'contents' => 'excerpt_read_more',
        'class' => 'avia-builder-el-no-sibling',
        'paginate' => 'yes',
        'use_main_query_pagination' => 'yes',
        'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=>get_post_types() )
    );
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1221440

    Hi Victoria,

    I have copied archive.php from Enfold and added it in Enfold-Child (or do I have to add an empty file in the Child folder?).

    Then I have added in archive.php
    'contents' => 'excerpt_read_more',

    Dreamweaver returns this remark: Dynamically-related fioles cannot not be discovered bevause there is no sote definiteion for this document” and “No syntax errors”

    After upload of the updated archive.php to the Child theme I still have no read-more text on home.
    And when opening a category overview page I get the error message “Es gab einen kritischen Fehler auf deiner Website. Erfahre mehr über die Fehlerbehebung in WordPress. https://wordpress.org/support/article/debugging-in-wordpress/”

    Any other suggestions?

    Thank you!

    #1221748

    Hi mai,

    You just copy the file to the child theme. I don’t know why Dreamweaver is telling you that. Maybe your workspace is not configured properly.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1221768

    Hi Victoria,
    OK – let’s disregard the Dreamweaver message.
    But there still does not show up any read more text. And how about the error message when trying to open a categorie overview page on the website?
    Any suggestions on that?
    Thank you!

    #1221845

    Hi mai,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1221876

    Hi Victoria,
    Sorry, but unfirtunately I am not allowed to do that. But I can create screenshots of whatever you would like to see. Just let me know which ones I should create.
    Thank you!

    #1223759

    Hi,

    Since you’re using the advance layout builder for the posts, you have to add the excerpt manually in the Excerpt field or box. Try to edit one the posts, then look for the Screen Options in the top right corner and tick the Excerpt metabox. You can now manually define the excerpt of the post and it should display in the blog overview page.

    Best regards,
    Ismael

    #1224389

    Hi Ismael,
    Thanks for the explanation. Now I got it…
    Ticket can be closed – and thanks for your patience.

    #1224468

    Hi,

    Thanks for the update, I’m glad that Ismael could help you out. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Read-More text for blog entries missing on home when using Avia Layout Architec’ is closed to new replies.