-
AuthorPosts
-
June 3, 2020 at 4:17 pm #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.
June 5, 2020 at 8:45 pm #1219931Hey mai,
Please have a look at the following thread:
If you need further assistance please let us know.
Best regards,
VictoriaJune 6, 2020 at 7:17 pm #1220072Hi 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!
June 7, 2020 at 7:37 pm #1220253Hi 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-597509You will need to add the code from there too.
Best regards,
VictoriaJune 8, 2020 at 4:07 pm #1220509Hi 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.
June 8, 2020 at 9:17 pm #1220650Hi 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,
VictoriaJune 10, 2020 at 10:48 pm #1221440Hi 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!
June 11, 2020 at 4:12 pm #1221748Hi 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,
VictoriaJune 11, 2020 at 4:38 pm #1221768Hi 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!June 11, 2020 at 6:02 pm #1221845Hi 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,
VictoriaJune 11, 2020 at 7:03 pm #1221876Hi 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!June 18, 2020 at 3:48 pm #1223759Hi,
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,
IsmaelJune 21, 2020 at 8:53 am #1224389Hi Ismael,
Thanks for the explanation. Now I got it…
Ticket can be closed – and thanks for your patience.June 22, 2020 at 4:48 am #1224468 -
AuthorPosts
- The topic ‘Read-More text for blog entries missing on home when using Avia Layout Architec’ is closed to new replies.