Tagged: 

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #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 title

    in quite a few things it becomes similar to this (masonry)
    example

    #1468073

    Hey 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,
    Ismael

    #1469440

    Hi 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?)
    current
    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.
    desired

    how can i achieve this?

    #1469510

    Hi,
    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,
    Mike

    #1469580

    isn’t it on default a h2 heading?

    #1471920

    Hi @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

    #1472027

    Hi,
    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:
    Screen Shot 2024 11 23 at 11.56.21 AM
    you had this code in your child theme function.php causing a conflict:
    Screen Shot 2024 11 23 at 12.00.52 PM
    I disabled it for you.
    Change the font size under the styling tab:
    Screen Shot 2024 11 23 at 12.04.45 PM
    to center add this css:

    .avia-slideshow.av-desktop-hide.av-medium-hide .avia-caption {
        bottom: 30%;
        left: 30%;
    }

    Best regards,
    Mike

    #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 CSS

    2. 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.

    #1472067

    Hi,
    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:
    Screen Shot 2024 11 24 at 8.15.25 AM
    But in the element you picked “Define Custom Colors” to white, simply choose “default”:
    Screen Shot 2024 11 24 at 8.18.50 AM
    I did this for you on the first one, please check.

    Best regards,
    Mike

    #1472074

    Hi @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.png

    Yet, 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

    #1472079

    2nd question:
    for the the easy slider see below
    https://img.savvyify.com/images/2024/11/24/Schermafbeelding-2024-11-24-172825.png

    i’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?

    #1472094

    Hi,

    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,
    Ismael

    #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 ?

    #1472224

    Hi,

    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,
    Ismael

    #1472687

    Hi @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
    mismatching colors

    #1472898

    Hi,

    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,
    Ismael

    #1472908

    just 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/

    #1472956

    Hi,

    Thanks for the info @Guenni007.

    Best regards,
    Ismael

    #1472982

    Hi @ismael, many thanks. for 95% we’re there!

    see this capture

    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?

    #1473060

    Hi,

    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,
    Ismael

    #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?

    #1473192

    Hi,

    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

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.