-
AuthorPosts
-
June 1, 2022 at 9:47 am #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 titleBut 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?
June 1, 2022 at 2:56 pm #1353766Hey 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,
IsmaelJune 29, 2022 at 9:00 am #1356801Hey 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?June 29, 2022 at 11:44 am #1356833oh – 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 ?June 29, 2022 at 12:01 pm #1356841Let 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 titleJune 29, 2022 at 1:10 pm #1356855can 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; }
-
AuthorPosts
- You must be logged in to reply to this topic.