-
AuthorPosts
-
April 18, 2016 at 3:28 pm #616567
Hi,
I would like to show the category and tag archive pages
a) with a read more text/link
b) with 2 instead of 3 columnsI’m using the code snippet from your documentation to change the blog style to “blog-grid”. But with this, the read-more-link is not shown with “blog-grid”, when adding this to the loop-index.php:
if(is_archive()) { $blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "excerpt_read_more"; } else { $blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content"; }
Is there the possibility to extend this code snippet to show the readmore link below the posts and to show these posts only in 2 than 3 columns?
Thank you.
April 20, 2016 at 8:29 am #618056Hi Chris!
Thank you for using Enfold.
Edit the archive.php and tag.php file. Modify the attributes of the avia_post_slider function.
$atts = array( 'type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 2, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=> $key ), 'contents' => 'excerpt_read_more', );
We set the columns to 2 and the contents attribute to excerpt_read_more.
Regards,
IsmaelApril 26, 2016 at 8:07 pm #622495Hi,
I have a blog in a multi-author way. It´s ok. It works with excerpt.
I also have a archive page changed to blog-grid and works fine, but I would like to know if is possible to remove the excerpts only in the archive pages.
Thanks in advance
April 29, 2016 at 10:48 am #624225Hi,
Add this in the Quick CSS field:
.archive .slide-entry-excerpt { display: none; }
Best regards,
IsmaelApril 29, 2016 at 3:30 pm #624566Hi Ismael,
Thank you for your reply.
I did what you tell to do, but it not work.
Could you please help me?
Thanks in advanced
May 2, 2016 at 2:58 pm #625812Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- the URL to the login screen
- a valid username (with full administration capabilities)
- as well as a password for that username
Best regards,
AndyMay 20, 2016 at 8:17 pm #636036your code works perfectly, thanks a lot!
May 21, 2016 at 8:00 am #636153Hi,
Glad it is sorted for you :)
If you have any questions please do not hesitate to contact us again. We have put together some useful info about enfold theme please feel free to check it out here – http://kriesi.at/documentation/enfold/
Best regards,
Vinay -
AuthorPosts
- The topic ‘Category/Tag Archive: show "read more text-link" and 2 columns instead of 3?’ is closed to new replies.