Tagged: dia slider
-
AuthorPosts
-
September 29, 2024 at 3:47 pm #1468056
Hello Enfold team,
i’d like to change several things of the dia slideshow element:
>The title gets the h1-tag, i’d like to change this to h3
>add a transparant overlay
>center the title
>configure the font size of the titlein quite a few things it becomes similar to this (masonry)
- This topic was modified 2 months, 3 weeks ago by the_digital_manager.
September 30, 2024 at 3:50 am #1468073Hey Peter,
Thank you for the inquiry.
Are you using the Easy Slider element?
— You can change the heading default by editing any of the slides’ Advanced > Heading Tag settings.
— To center the caption and add a transparent overlay, try configuring the Styling > Caption > Caption Positioning settings.
— The font sizes can also be adjusted in the Styling > Font Sizes panel.
Best regards,
IsmaelOctober 19, 2024 at 2:02 pm #1469440Hi Ismael,
i can’t exatly find all the settings you are referring to, so perhaps I’m using another element. in dutch it’s ‘diavoorstelling’ (Dia slideshow?)
you can see this on https://fysiobreda.thedigitalmanager.nl/behandelingen/dry-needling/ (mobile view). password to see the site is Ruben123!
So i’m not far off when I look at the above. I just want a grey-ish overlay, as is the case with https://fysiobreda.thedigitalmanager.nl/ and the title should be in the center as well.
how can i achieve this?
October 20, 2024 at 2:11 pm #1469510Hi,
To make the slider title h3 try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function custom_slider_h3_script() { ?> <script> (function($) { $(function() { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('.avia-caption-title.is-h1 h1', '<h3></h3>'); }); }(jQuery)); </script> <?php } add_action( 'wp_footer', 'custom_slider_h3_script', 99 );
Best regards,
MikeOctober 21, 2024 at 11:41 pm #1469580isn’t it on default a h2 heading?
November 22, 2024 at 1:36 pm #1471920Hi @mike,
I added the code to function.php but it doesnt seem to work, also, this doesn’t provide me with an answer/solution for the design question.
>add a transparant overlay
>center the title
>configure the font size of the title(see above questions). you have the login to my site:)
best regards, Peter
November 23, 2024 at 6:12 pm #1472027Hi,
On mobile, I see that you are using the “easy slider” to change the H tag, click on the element and go to each slide, under the advanced tab change the heading tag:
you had this code in your child theme function.php causing a conflict:
I disabled it for you.
Change the font size under the styling tab:
to center add this css:.avia-slideshow.av-desktop-hide.av-medium-hide .avia-caption { bottom: 30%; left: 30%; }
Best regards,
MikeNovember 24, 2024 at 1:42 pm #1472065@mike, ah! I guess i added that piece of code in the child theme from way before when it wasn’t possible to change the H-tag yet. Thanks for disabling it.
Two challenges/issues:
1. A new problem that occurs is that I set the H3 tag font colour and size in the Enfold Child panel under advanced. I notice that this is overrulling CSS and even settings that I make manually in the advanced layout builder. (in this case I set the image with the tilte ‘rug’ to white text PLUS i added CSS which should set the color to white and to the desired font weight.
is there a way to overrule the adjustments I’ve made under the advanced panel with CSS? (this was more relevant to this: https://kriesi.at/support/topic/change-caption-of-image-to-h3/)
It’s not really desired from my perspective that I change the setting of all H3 captions manually / via other CSS2. Basically, what I want to achieve, is to get display the same content I have placed in columns (‘rug’, ‘schouders’, ‘elleboog’) into a slider. perhaps there is another way to achieve this, rather than putting the same content into a easy slider and hide/diplay elements on mobile vs desktop. I want to do this throughout the site, for example you see https://fysiobreda.thedigitalmanager.nl/behandelingen/dry-needling/ , then I want to but all those ‘body parts’ into a slider as well.
November 24, 2024 at 2:22 pm #1472067Hi,
I’m not sure that I understand, I assume that you want to use the gray text color for the mobile “easy slider” that you chose in the advanced styling for H3:
But in the element you picked “Define Custom Colors” to white, simply choose “default”:
I did this for you on the first one, please check.Best regards,
MikeNovember 24, 2024 at 5:19 pm #1472074Hi @mike.
I’ll break the questions down:
so, look at :
https://img.savvyify.com/images/2024/11/24/Schermafbeelding-2024-11-24-171312.png
‘rug’, ‘schouders’, ‘elleboog’ are now H3 (due to some code you gave, which is what I wanted)
Under the advanced settings in the child time I’ve set all H3 to be grey.
but in this case I want to make an exception.
If you check the settings I have set the text on white, in the preview it shows white. I even added CSS to make it white. (image-caption-weight)
https://img.savvyify.com/images/2024/11/24/Schermafbeelding-2024-11-24-171456.pngYet, it remains grey. how can I still make it white? (I want to keep the other h3’s, except for the ones over images, grey). Also, the line height should be 30px and the font size 23. basically i want to achieve the same as
https://img.savvyify.com/images/2024/11/24/Schermafbeelding-2024-11-24-172057.png- This reply was modified 4 weeks ago by the_digital_manager.
- This reply was modified 4 weeks ago by the_digital_manager.
November 24, 2024 at 5:31 pm #14720792nd question:
for the the easy slider see below
https://img.savvyify.com/images/2024/11/24/Schermafbeelding-2024-11-24-172825.pngi’d like to get the same result as
https://img.savvyify.com/images/2024/11/24/Schermafbeelding-2024-11-24-172857.png
(same overlay, title nicely in centre, and then naturally with the nav. arrows on the side as is)
I added the CSS you proposed, but it’s not in the centre yet and I tried several CSS options for the overlay, but no luck insofar. do you know?November 25, 2024 at 4:05 am #1472094Hi,
Thank you for the inquiry.
The caption titles look white when we checked. To center-align the container, please add this css code:
.avia-slideshow.av-desktop-hide.av-medium-hide .avia-caption { bottom: 31%; left: 50%; transform: translateX(-50%); }
Best regards,
IsmaelNovember 25, 2024 at 7:53 am #1472106@ismael, i dont think we are looking at the same thing. did you check it on desktop view? the captions in the easy slider are white (mobile) indeed. but on desktop (images with titles) they are grey.
so the first question is about the images with titles (desktop)
the 2nd about easy slider (mobile) .how do i add the same overlay ?
November 26, 2024 at 8:23 am #1472224Hi,
Thank you for the clarification.
Try to add this css code to adjust the text color of the title:
#top #wrap_all .all_colors .av-image-caption-overlay-center h3 { color: #ffffff; }
And to apply the overlay on mobile view, try this css code:
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ #top .avia-slideshow.av-m3vkqh71-4e1d1fba30600cffcf1218dbcfe528bd .avia-slide-wrap:before { content: ''; background: rgba(0,0,0,0.5); width: 100%; height: 100%; display: block; position: absolute; top: 0; left: 0; z-index: 10; } }
Best regards,
IsmaelDecember 2, 2024 at 8:10 am #1472687Hi @ismael, many thanks! I applied both, it works great, except the title is now in a area that is darker than the overlay. how to adjust this to match the overlay color? see screen shot
December 4, 2024 at 11:51 am #1472898Hi,
Sorry for the delay. Glad to know that the suggestion worked. To remove the background of the caption text, please include the following code inside the css media query:
.avia-slideshow.av-m3vkqh71-4e1d1fba30600cffcf1218dbcfe528bd .avia-caption .avia-caption-title { background: transparent; }
Best regards,
IsmaelDecember 4, 2024 at 12:13 pm #1472908just to mention that this filter avf_customize_heading_settings is a mighty one that can change in one code all headings of your sliders.
see codesnippet with comments on how to use on :
https://webers-testseite.de/slider-headings-filter/December 5, 2024 at 4:05 am #1472956December 5, 2024 at 8:16 am #1472982Hi @ismael, many thanks. for 95% we’re there!
see this
1. I noticed that the arrows and text is not exactly in the center yet
2. the text isn’t center aligned (text is left aligned)
3. would be awesome if the arrows left and right could be centered in the coloured block they are in.could you provide CSS for those last bits?
if I wanted to make the overlay a little bit lighter, what would I need to adjust?
- This reply was modified 2 weeks, 3 days ago by the_digital_manager.
December 6, 2024 at 6:47 am #1473060Hi,
Thank you for the update.
Please include this css code to adjust the arrows and the alignment of the caption text:
#top .av-slideshow-ui .avia-slideshow-arrows a.prev-slide { left: 0; } #top .av-slideshow-ui .avia-slideshow-arrows a.next-slide { right: 0 !important; } #top .avia-slideshow .avia-caption { min-width: 80%; text-align: center; }
Best regards,
IsmaelDecember 8, 2024 at 11:42 am #1473177@ismael, many thanks. horizontally it’s nicely aligned in the centre, but vertically the elements are still a bit too low (not centered) any idea why?
December 9, 2024 at 4:12 am #1473192Hi,
Thank you for the update.
To adjust the vertical alignment of the caption, look for this css rule and adjust the bottom property to 41% or so:
.avia-slideshow.av-desktop-hide.av-medium-hide .avia-caption { bottom: 31%; left: 50%; transform: translateX(-50%); }
For the arrows, add this css code:
#top .avia-slideshow-arrows a { top: 40%; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.