Okay
  Public Ticket #3523894
Invert foreground color over hero image
Closed

Comments

  •  6
    Mickel started the conversation

    This marks my final inquiry regarding my new website.

    I've come across a bug in the hero section. The overlay elements—menu, logo, and hero caption—are displaying inverted colors incorrectly. When I select 'Invert foreground color over hero image' as 'YES' and 'Background type' as 'Dark or Light,' peculiar issues arise.

    To observe the problem, please visit https://beta.bigpitcher.nl/playground/ and click on the sportswoman (https://beta.bigpitcher.nl/works/test-123/). You'll notice that all elements in the hero section turn black. When you scroll to the bottom and scroll back, the elements menu/logo are correct (not the arrow). Or just refresh the page and you use the same result. I didn't change anything in the code... strange bug 🤯

    > You can also observe the issue in the screen recording I've provided.

    -----------------------------

    Alternatively, select a dark-looking thumbnail in the gallery/playground to navigate to its portfolio page. On this page, I added CSS code (see below) - example - https://beta.bigpitcher.nl/works/3d-cube/. If you go directly to this page everything looks ok. But when you use 'Auto Navigate On End Scroll' option that uses the data-type="page-transition" it doesn't look good.

    Somehow, the default pages with a hero section work correctly because I added some CSS code and did not use the data-type="page-transition" attribute—see example: https://beta.bigpitcher.nl/audi-a4-experience/ . 

    I hope it makes sense...

    -----------------------------

    The code in Elementor is added to the first container at the top (title, subtitle and arrow):

    .hero-title {
        color: #FFF;
    }

    .hero-subtitle {
        color: #FFF;
    }

    .hero-arrow i.arrow-icon {
        border: solid #FFF;
    }

    .hero-arrow span {
        border: 2px solid rgba(255,255,255,0.2);
        
    }

    .dark-content i.arrow-icon:after {
        background-color: #FFF;
    }


    -----------------------------

    Could you provide assistance? Or am I doing something wrong?
    Many thanks!

    Attached files:  screenrecord-gallery-portfolio.mp4

  •  1,803
    Support replied

    Hello Mickel

    Can you provide wp admin access so we can have a look? You may have provided it before, but since you had quite a few tickets (not a problem whatsoever) it's hard to follow up.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   Mickel replied privately
  •  1,803
    Support replied

    Hello,

    So I made a change in /sections/hero_section_container.php using the appearance -> theme file editor

    The thing is these two options for pages and portfolio item options 'Invert foreground color over hero image'

    are redundant and will be removed in our next update (which will be posted online today or tmrw) - version 1.4

    So you just need to change the background type in portfolio item options.

    But, if you wan to keep white sections - that's fine, you can specify a white background for them.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  6
    Mickel replied

    Hi!

    I apologize, but I'm having difficulty grasping the modifications you made in the code or the changes you mentioned. Did you eliminate the 'Invert foreground color over hero image' function? I'm uncertain why it's considered redundant. In my understanding, this function is essential, especially when employing a dark hero image in the hero section and a light background below it. If the only choices are dark or light backgrounds, not having this function could result in overlay elements not adapting to the correct color (and leading to inverted content (text) in the main content section below).

    Is there something I might be overlooking, or is there another aspect I should consider?
    Sorry for the inconvenience...

    See attachment - screen record.

    Example page: https://beta.bigpitcher.nl/nommm/
    Example portfolio: https://beta.bigpitcher.nl/works/music-platform-echoo/ 


    Thanks,

    Mickel

    Attached files:  screenrecord_1.mp4

  •  1,803
    Support replied

    Hi,

    You can assign a background type for the page. Then you can have sections with different background types and colors - full width.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  6
    Mickel replied

    You can assign a background type for the page.
    I understand, light or dark...

    Then you can have sections with different background types and colors - full width.
    I know, but the logo and menu will stay the same color after the hero section. 

    But it should work like this example you have online...see attachment I use Elementor and not Gutenberg. Feel free to create a working example page or portfolio page. Maybe this will help all uncertainties.

    PS: Currently, I have substituted the PHP file with the previous code.

    Attached files:  screenrecord_2.mp4

  •  1,803
    Support replied

    Hi Mickel,

    No, actually that's the thing - the logo and menu items will change accordingly

    Maybe it is useful if I give you the following scenario:

    - you set the background type to dark - because you have a hero image whose background is dark

    - then the logo, hero caption and menu items will be displayed with white color

    - however you what to have a white hero section immediately after. You can make it full width.

    - you set the elementor container/gutenberg serano container having a light background type (and the actual background color)

    - AND you set Header Color to 'Invert' instead of 'Inherit'

    Thus, when scrolling over the header color will invert (will become black instead of white)

    Let us know if you have any other questions. I can setup an example if you like in the test portfolio item.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  6
    Mickel replied

    I apologize, but I followed the instructions you provided.

    Could you kindly create an example in the test portfolio (test 1 2 3 - in the portfolio section)?
    I appreciate your understanding, and I'm committed to comprehending your instructions accurately.

    -------

    1. you set the background type to dark - because you have a hero image whose background is dark

    Yes, I did this 

    2. then the logo, hero caption and menu items will be displayed with white color

    Yes, I did this 

    3. however you want to have a white hero section immediately after. You can make it full-width.

    Yes, I think I did this 

    4. you set the Elementor container/Gutenberg Serano container having a light background type (and the actual background color)

    No, I can't find the optionsBut I changed the background to white.

    5. AND you set Header Color to 'Invert' instead of 'Inherit'

    No, I can't find this option anywhere in Elementor

    PS: Currently, I have substituted the PHP file '/sections/hero_section_container.php' with the previous code. 

  •  1,803
    Support replied

    Hello Mickel,

    So I logged in and tried the test portfolio item.

    I realized that you have FlexBox Containers activated in Elementor and not the Sections. So you were right, the options are not there.

    That's fine. We need to update Serano to accommodate the new type of containers. We will release a new version this week, Saturday the latest.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  6
    Mickel replied

    Ok. Thanks!

  •  1,803
    Support replied

    Hi Mickel,

    Container with former section's properties

    https://prnt.sc/neO85F-uXuRM

    As you notice I've set the invert header color for the white section

    https://beta.bigpitcher.nl/works/test-1-2-3/

    Please also give it a quick test and let us know

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  6
    Mickel replied

    Awesome! Did you make changes to the theme code? As we speak, I changed my website to www.bigpitcher.nl (this is a copy of beta,bigpitcher.nl).

    Can I copy and paste the theme folder to my .nl website?

    Thanks for your service!!

  •  1,803
    Support replied

    Hi Mickel, 

    I updated Serano Elementor Widgets plugin (from 1.0 -> 1.1)

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  6
    Mickel replied

    Super! And where can I find Serano Elementor Widgets plugin (from 1.0 -> 1.1)?   

  •  6
    Mickel replied

    You mean this folder? (see attachment)

    Attached files:  Scherm­afbeelding 2023-11-27 om 16.54.06.png

  •  1,803
    Support replied

    It's a test version but it will be included in the next update of Serano.

    - in the theme it can be found in /plugins/serano-elementor-blocks.zip

    - installed in /wp-content/plugins/serano-elementor-blocks/ (path relative to the WordPress installation folder)

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  6
    Mickel replied

    Ok thanks!