Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1353702

    I want my Tag/Archive page to show like this:
    Article title 1
    Article title 2
    Article title 3

    Note: each line has only one title

    But the current functions of Enfold do not support this when I look through this thread: https://kriesi.at/support/topic/customize-tag-page/

    What can I do?

    #1353766

    Hey evtrans,

    Thank you for the inquiry.

    We can set the tag.php template file to use the List Layout – Simple (Title and meta information only) or the bloglist-compact style.

    Please edit the tag.php file, remove everything and replace it with the following code.

    // https://pastebin.com/MGAuXc3x

    Best regards,
    Ismael

    #1356801

    Hey Ismael,
    I have changed the tap.php as you have told, but the layout remains the same as before – in three columns.
    What can I do next? Have I made a mistake?

    #1356833

    oh – is hard to inspect your site, one would probably have to know a translation service ;)

    it depends on the exact page what you had to customize. Is it an archive category page or a archive tag page?
    then: it is tag.php – but i guess that it is only here on board a typo ?

    #1356841

    Let me explain.
    Once I click a tag, for example “translation”, there will be a list of articles related to translation to be displayed. Now they are displayed in three columns, but I want them to be displayed in one column.

    Article title 1
    Article title 2
    Article title 3

    Note: each line has only one title

    #1356855

    can you temporarily remove the child-theme tag.php – and put this to your child-theme functions.php:

    add_filter('avf_blog_style','avia_change_tag_blog_layout', 10, 2); 
    function avia_change_tag_blog_layout($layout, $context){
    if($context == 'tag') $layout = 'blog-grid';
    return $layout;
    }
    
    add_filter('avf_post_slider_args', function($atts, $context){
      if($context == 'tag') {
        $atts['type']  = 'grid'; 
        $atts['columns']  = 1;
      }
      return $atts;
    }, 10, 2);

    and this to quick css

    #top.tag .entry-content-wrapper .post-title{
      margin-bottom: 40px
    }
    
    #top.tag .slide-entry-wrap {
      margin-bottom: 10px;
    }
    
    #top.tag .slide-image {
      display: none !important;
    }
    
    #top.tag .slide-content > :not(.entry-content-header) {
      display: none;
    }
    
    #top.tag .slide-entry-wrap .entry-content-header .slide-entry-title:before {
      content: "Article:";
      font-size: inherit;
      font-weight: inherit;
      color: #666;
      padding-right: 15px;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.