Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 columns

    I’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.

    #618056

    Hi 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,
    Ismael

    #622495

    Hi,

    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

    #624225

    Hi,

    Add this in the Quick CSS field:

    .archive .slide-entry-excerpt {
        display: none;
    }

    Best regards,
    Ismael

    #624566

    Hi 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

    #625812

    Hi,

    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,
    Andy

    #636036

    @Ismael

    your code works perfectly, thanks a lot!

    #636153

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Category/Tag Archive: show "read more text-link" and 2 columns instead of 3?’ is closed to new replies.