-
AuthorPosts
-
July 24, 2024 at 3:13 pm #1462867
Hello,
I have set up a custom page to show the posts, where it is possible to select the posts by category or year-month.
https://www.federscacchilazio.com/notizie/However, when a category is selected, the page that shows the articles has a different layout from the one indicated above. In particular it does not highlight the category of posts shown in the header, for example if I select the training – players category the following page is shown.
https://www.federscacchilazio.com/category/formazione/giocatori/
The layout is different in comparison with the Notizie above, the layerslider is missing and also the header does not highlight that the posts refer to the training – players category.The same problem occurs when selecting a year/month in the archives section, in this case the layout is as follows.
https://www.federscacchilazio.com/2024/06/
Looking at the page it is not at all clear that the posts from June 2024 are being shown because even in this case an explanatory header is missing.The ideal solution would be to have this header for selection by category:
https://www.federscacchilazio.com/test-category/
and the following header for the year – month selection
https://www.federscacchilazio.com/test-month-year, unfortunately in this example I was unable to select June 2024 as the article filter.I tried using redirects but the categories and year – month defined are really too many.
Thanks for your support
Andrew- This topic was modified 3 months, 4 weeks ago by cuccarini.
July 27, 2024 at 2:06 pm #1463106Hey cuccarini,
Thank you for your patience, when I check your category pages the layout seems mostly the same, for example federscacchilazio.com/2024/06/ ▸
and federscacchilazio.com/notizie/ ▸
Then you write that the ideal solution would be to have a header selection for categories like this ▸
For this you can add a category Description
then it will show on the frontend
then with some css we can make the font larger like your example above, is this what you mean?Best regards,
MikeJuly 29, 2024 at 7:46 pm #1463256Hello Mike,
I’m not sure I understood correctly, my primary problem occurs when user selects a year/month in the archives page: https://www.federscacchilazio.com/notizie/ for example June 2024, in this case the selected posts are OK , but the actual layout is as follows.
https://www.federscacchilazio.com/2024/06/ Looking at the resulting page, it is not at all clear that the posts are those relating to June 2024 are being shown, because an explanatory header is missing.The ideal solution would be to have this header for the year – month selection of june 2024 https://www.federscacchilazio.com/test-month-year, This header is OK, I have the layerslider and also an header that clarifies thta the current selection is for post for month June 2024. Unfortunately in the above example I was unable to select the posts using June 2024 as the article filter.
The header must be filled dynamically, i.e. if the user selects posts from June 2024 the header must be Archive; June 2024, instead if the selection of posts is March 2023, the header must consequently be Archive; March 2023, and so on.Thanks for your help
AndreaJuly 30, 2024 at 5:27 am #1463286Hi,
Thank you for the info.
Have you tried enabling the Header > Header Layout > Header Title and Breadcrumbs? This should automatically add a heading and breadcrumb for the archive pages.
Best regards,
IsmaelJuly 30, 2024 at 12:20 pm #1463319Hello,
I activated the title as suggested and the following result is reasonable;
https://www.federscacchilazio.com/notizie/
Only I would like to change the font size of the title and put it in the center and not on the left like now,
Another thing that would be appropriate is to add a horizontal gallery between the menu and the title, as in the following page.
https://www.federscacchilazio.com/2024/07/26/campionato-regionale-giovanile-lazio-2024/
Would it be possible to make these changes?Thanks for the support
AndreaAugust 1, 2024 at 6:04 pm #1463541Hi,
To move the title to the centered and make the font size larger, please try this css:.title_container .main-title { font-size: 20px; } #top .title_container .container { text-align: center; }
For your second question, do you mean that you want to show the gallery from /campionato-regionale-giovanile-lazio-2024/ on the /notizie/ page above the title?
If true, please add the gallery to the top of your /notizie/ page and we can provide some javascript to move it above the title for you.Best regards,
MikeAugust 1, 2024 at 6:30 pm #1463546Thanks Mike,
I applied your suggestion for CSS, everything is OK.
Regarding the 2 point, I have modiified the “Notizie” page as you suggested, so I added an horizontal gallery
https://www.federscacchilazio.com/notizie/Thanks for your help
AndreaAugust 2, 2024 at 4:35 pm #1463666Hi,
Thanks, but I don’t see a horizontal gallery on the page. Is this a Advanced Layout Builder page with a blog element on it?
Please include an admin login in the Private Content area so we can examine.Best regards,
MikeAugust 2, 2024 at 7:31 pm #1463672Hello Mike,
in private the requested credentials.The orizontal gallery not visible in https://www.federscacchilazio.com/notizie/
is the same of this post https://www.federscacchilazio.com/2024/07/26/campionato-regionale-giovanile-lazio-2024/ that is instead visible.thanks
- This reply was modified 3 months, 3 weeks ago by cuccarini.
August 3, 2024 at 8:57 pm #1463721Hi,
Thanks for the login, it looks like your /notizie/ page is a “blog” page in the theme settings, and which is differnt than the page that you created with the ALB called “notizie”. This is why you can’t see the horizontal gallery on the page.
So I changed this so the horizontal gallery on the page will show.
You may need to adjust the blog element to suit, please check, if you also want the horizontal gallery on the page to show above the title let us know and we can help.Best regards,
MikeAugust 5, 2024 at 9:01 pm #1463870Hello Mike,
the result for this page is OK https://www.federscacchilazio.com/notizie/ in fact the horizontal gallery is shown at the top of the page.
However, selecting categories or month-year the situation is different as you can see in the following pages:
https://www.federscacchilazio.com/category/formazione/arbitri/
https://www.federscacchilazio.com/2024/07/Is it possible to insert the same horizontal gallery at the top of the page also for this type of pages??
Thank you very much
August 5, 2024 at 11:45 pm #1463883Hi,
I added your horizontal gallery to your archive pages with this function.php file:add_action('ava_after_main_container', 'ava_after_main_title_mod'); function ava_after_main_title_mod() { if ( is_archive() ) { echo do_shortcode("[av_horizontal_gallery ids='3297,3299,3315,3298,3318,3308,3316,3303,3317' ids_dynamic='' initial='' img_copyright='' height='20' size='large' gap='no' active='' control_layout='av-control-hidden' slider_navigation='av-navigate-arrows av-navigate-dots' nav_visibility_desktop='' nav_arrow_color='' nav_arrow_bg_color='' nav_dots_color='' nav_dot_active_color='' lightbox_arrow_color='' lightbox_arrow_bg_color='' img_copyright_font='' av-desktop-font-img_copyright_font='' av-medium-font-img_copyright_font='' av-small-font-img_copyright_font='' av-mini-font-img_copyright_font='' img_copyright_color='' img_copyright_bg='' transition_speed='' autoplay='true' interval='3' manual_stopper='aviaTBmanual_stopper' links='active' link_dest='' lightbox_text='' img_scrset='' lazy_loading='disabled' alb_description='' id='' custom_class='' template_class='' av_uid='av-a6srr' sc_version='1.0'][/av_horizontal_gallery]"); } }
please check.
Best regards,
MikeAugust 6, 2024 at 4:22 pm #1463958Excellent job Mike!!
Thanks a lot, you can close the ticket.Best regards
AndreaAugust 6, 2024 at 11:46 pm #1463984Hi,
Glad to hear that we could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Custom layout to display posts for category / year-month’ is closed to new replies.