Tagged: featured posts, filter
-
AuthorPosts
-
September 12, 2024 at 3:37 pm #1466824
Hello,
In the posts slider, is it possible to show only the posts that have the “featured” flag set?
I did not find any parameter for that. I want to apply this to the first posts slider in the home https://www.federscacchilazio.com/Also I would like to apply the sonar effect to a tilte in the home, to obtain this I used the button with special colors
https://www.federscacchilazio.com/
Unfortunately now I have the Cookie and Privacy Settings buttons that are again black as before,. to change the color of these privacy buttons I used the following code but this is applied to all avia buttons (also the previous one I want to remain with white bavkground.
/* Background button */
a.avia-button {
background: var(–base1-color)!important;
border-color: white!important;
}
/* Background button on hover */
a.avia-button:hover {
background: var(–dark1-color)!important;
}Thanks in advance
AndreaSeptember 13, 2024 at 3:53 am #1466862Hey cuccarini,
Thank you for the inquiry.
You can use the following css code to specifically target the buttons in the privacy consent container:
#top .main_color .avia-cookie-consent-modal-buttons-wrap .avia-color-theme-color-highlight { color: limegreen; background: darkolivegreen; border-color: mediumseagreen; }
Best regards,
IsmaelSeptember 13, 2024 at 1:30 pm #1466908Thanks Ismael,
it worked perfectly for the privacy buttons. Unfortunately then i noticed that all the buttons that become gricons on hover now do not do it anymore. This is because i deleted the following instruction from the quick css.
/* Background button on hover */
a.avia-button:hover {
background: var(–dark1-color)!important;
}Regarding the first question instead, in the posts slider, is it possible to show only the posts that have the “featured” flag set?
I did not find any parameter for that. I want to apply this to the first posts slider in the home https://www.federscacchilazio.com/Thanks again and best regards
Andrea- This reply was modified 3 months, 1 week ago by cuccarini.
September 15, 2024 at 1:39 pm #1467031Hi,
I don’t believe that there is a way to only show posts with the “featured” flag set, I recommend adding a category “featured” to these items and then choose that category in the posts slider.Best regards,
MikeSeptember 16, 2024 at 1:55 am #1467043Thanks Mike,
I applied your suggestion and it works as expected.
The only problem to solve is that after having removed the CSS statement that modified the hover on all the avia buttons, now there are some buttons, even on the home that in case of mouse hover remain blue instead of becoming dark gray. However, there are some buttons on the left side of the homepage with the name “Calendario” and “Tornei giovanili” for example that with mouse hover become gray as desired.
I think it is necessary to add some CSS to obtain this result.Thanks in advance
AndreaSeptember 16, 2024 at 5:54 am #1467052Hi,
Try to use this css code to change the hover effect:
#top .main_color .avia-cookie-consent-modal-buttons-wrap .avia-color-theme-color-highlight:hover { color: white; background: gray; border-color: orange; }
Update the color values as needed.
Best regards,
IsmaelSeptember 16, 2024 at 4:02 pm #1467115Hello Ismael,
I am sorry to say that it was a nice try but it does not work unfortunately … all the buttons continue to not change color with the mouse hover, in particular on the top of homepage https://www.federscacchilazio.com/ you can check the buttons “Comitato” and “Contatti” with the mouse hover they remain blue and not grey also the toher following buttons, apart from the four buttons placed vertically next to each other on the left, those work correctly.. https://app.box.com/s/aajvacjlzcmq6hvt3wvnltuij49w12ag
I think it is necessary to modify a little the CSS code.Thanks again
AndreaSeptember 16, 2024 at 5:28 pm #1467120Hi,
To change the hover color of the “Comitato” and “Contatti” buttons, please add a custom class to the buttons and we will advise with the css.Best regards,
MikeSeptember 16, 2024 at 7:00 pm #1467135Hello,
I used again the old CSS to change the hover of all avia buttons and the result is OK for me, There are only to small problems remaining:
– I need a CSS to change the hover effect of custom button class “evidenza”
– I need a CSS to change the hover effect of button class fullwidht that is mch darker bacause it is not affected by the general hover effect of the avia buttonsBest regards
AndreaSeptember 17, 2024 at 4:14 am #1467157Hi,
Thank you for the update.
We may need to access the site and test the modifications. Please provide the login details in the private field.
Best regards,
IsmaelSeptember 17, 2024 at 2:32 pm #1467199Ok, no problem.
- This reply was modified 3 months ago by cuccarini.
September 18, 2024 at 4:39 am #1467255Hi,
Thank you for the info.
We added this code to the Quick CSS field and temporarily disabled the compression settings.
#top .main_color .avia-cookie-consent-modal-buttons-wrap .avia-color-theme-color-highlight:hover { background: var(--dark1-color) !important; color: white !important; }
Best regards,
IsmaelSeptember 18, 2024 at 3:16 pm #1467326Helllo,
I checked the code and the results but it seems to me it is not OK. As I wrote before I need to have the same color on hover also for the button-fullwidth as I have for the other buttons as in the following image;
https://app.box.com/s/vuax1brm3rqkvz8l4ra5t9sybucfy3ocThanks and best regards
Andrea- This reply was modified 3 months ago by cuccarini.
September 19, 2024 at 5:01 pm #1467468Hi,
Thanks for the screenshot and the link to your site, Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top .main_color .avia-color-theme-color-highlight { background-color: var(--dark1-color); }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeSeptember 19, 2024 at 9:13 pm #1467486Thanks a lot Mike,
it is OK now, please close the ticket.Best regards
Andrea -
AuthorPosts
- The topic ‘Filter to show only featured posts’ is closed to new replies.