Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1328479

    i did already the layout adjustments for it – but i guess i had to edit the loop index to show a featured image before the excerpt.

    
    function change_blog_tag_style() {	
    	global $avia_config;
    	if(is_tag()){ $avia_config['blog_content'] = "excerpt_read_more"; }
    }
    add_action('get_header', 'change_blog_tag_style');
    
    add_filter('avf_post_slider_args', function($atts, $context){
      global $posts; 
      if($context == 'archive') {
        $atts['type']  = grid; 
        $atts['columns']  = 1;
      }
      if($context == 'tag') {
        $atts['type']  = grid; 
        $atts['columns']  = 1;
      }
      return $atts;
    }, 10, 2);
    

    so – how to include the showing of the featured images here
    i did not see any conditonal setting for blog_style = blog-grid in loop-index.php

    #1328485

    Next: On my tag archive page the $label (tag.php line 83) there is ony “posts” showing ( on german Beiträge ) , why isn’t there the current tag nam instead?

    Edit : change tag.php arround line 132 to:

    if( isset( $post_type_obj[ $key ]->labels->name ) )
    {
        $label = apply_filters('avf_tag_label_names', $post_type_obj[$key]->labels->name);                           
    	$current_tag = single_tag_title("", false);
    	echo "<{$heading} class='post-title tag-page-post-type-title'>". __( 'Tag', 'avia_framework' ) .": <span>".$current_tag."</span></{$heading}>";
    }

    or maybe better to have on top of that list : ” Tag Archive for: “

    if( isset( $post_type_obj[ $key ]->labels->name ) )
    {
        $label = apply_filters('avf_tag_label_names', $post_type_obj[$key]->labels->name);                           
    	$current_tag = single_tag_title("", false);
    	echo "<{$heading} class='post-title tag-page-post-type-title'>". __( 'Tag Archive for:', 'avia_framework' ) ." <span>".$current_tag."</span></{$heading}>";
    }

    and have now my own child-theme tag.php – but is there maybe a different way to get this via filter ?

    #1329113

    Hi,

    Sorry for the late reply.

    To make it easier for me – do you have links to staging pages where I can see it (and if possible with backend access to see the settings).

    Best regards,
    Günter

    #1329139

    Ja Danke

    #1329209

    PS

    #1329644

    Hi,

    Zunächst einmal Filter Lösung für ” Tag Archive for: “

    https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Basic%20Templates/tag.php/avf_tag_label_names.php

    Best regards,
    Günter

    #1329659

    Hi,

    Added at bottom of function.php:

    
    add_filter('avf_blog_style', function($style, $context){
    	if( 'tag' == $context )
    	{
    		return 'big';
    	}
    }, 10, 2 );
    

    Ancestors Widget für single post hab ich einmal ins dev repo als feature aufgenommen.

    Du meinst damit 2 Bereiche:

    – Vorherige Posts
    – nächste Posts

    jeweils in den Kategorien des aktuellen Posts.

    Best regards,
    Günter

    #1329770

    yes thanks –
    the options on that code is only big and small – Is there a way to choose the source of the image used for that? I see on loop-index.php – so i can have a child-theme loop-index.php:
    $size = strpos( $blog_style, 'big' ) ? ( ( strpos( $current_post['post_layout'], 'sidebar' ) !== false ) ? 'entry_with_sidebar' : 'entry_without_sidebar' ) : 'square';
    but it would be nicer to have a snippet solution.

    #1329835

    Hi,

    Thanks for feedback.

    Will add a filter to select image size. Will inform you here.

    Best regards,
    Günter

    #1329836

    Many many thanks. You did that for the widgets allready ( avf_newsbox_image_size ) in former times – and i guess that would be a nice idea here too!

    #1329954

    Hi,

    would be nicer to have a snippet solution.

    Did you see filter ‘avf_post_featured_image_link’ around line 100 of loop-index.php?

    https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Layout/avf_post_featured_image_link.php

    Best regards,
    Günter

    #1330086

    ok – can be closed then. I did not found that filter – and it is in there @since 4.5.4.
    Asche auf mein Haupt ;)

    Edit: Using that filter – will end in:

    #1330147

    Hi,

    Sorry, my fault. Added the snippet without testing.

    Second parameter function to call was missing in add_filter.
    Updated it on github, please check now.

    Best regards,
    Günter

    #1330148

    Yes – thats it !
    I should have seen it too. It was clear that it could not go like that.
    Now close it.

    #1330151

    Hi,

    Glad we found the solution.

    Have a great day.

    Best regards,
    Günter

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Archive (especially tag archive) in grid layout with featured image’ is closed to new replies.