1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Search module RTL

Discussion in 'Free Divi Community Forum' started by Adam Zoo, May 4, 2024.

  1. Adam Zoo

    Adam Zoo New Member

    Hi there, can I do this without plugins?

    I am trying to mimic the LOOK of facebook header, not the functions just the look

    upload_2024-5-4_14-49-58.png
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade card carousel design for your Divi site without using any plugins:View Demo
  2. Divi Booster

    Divi Booster Divi Expert

    Hey Adam,

    This might get you most of the way there...

    First, create a default search module, and set its placeholder in the module settings to "Search".

    Then set the following design settings in the search module settings:

    search-box-modified-settings.png

    Also set a blue background color in the section / row containing the search box and add any required padding around the search box, to get::

    search-box-unstyled.png

    Now add the following CSS Code to your site. It targets the "search-box-facebook-style" class added in the module settings above:

    Code:
    Log In or Sign Up to view this code.
    Here's the result:

    search-box-facebook-style.png

    I hope that helps. If you need any help customizing it further, just let me know.
     
    Adam Zoo likes this.
  3. Adam Zoo

    Adam Zoo New Member

    Wooow! you gave me more of what I asked for... but still needs so tweaking to adjust to my blogs, I moved some stuff and the icon doesnt show...

    How much for fixing? see? I gave you a wrong impression the blue background and white button where different, my bad...
     
    1. PRO MEMBER PERKS Divi Ultimate Footer Plugin - Custom global Divi footer (20 premade styles) + Revealing footer effect:Learn More
  4. Divi Booster

    Divi Booster Divi Expert

    Hey Adam,

    Are you able to share a link to make it easier to check / discuss?

    For the blue background - you can set it to whatever you like in the row / section background settings. You can change the input field background in the search module settings, and the button background color by modifying the color in this part of the CSS:

    Code:
    Log In or Sign Up to view this code.
    For the icon, you might be able to get it showing by adjusting these values:

    background-position-y: 14px; /* Adjust icon vertical position */
    background-position-x: 14px; /* Adjust icon horizontal position */

    They move the icon up/down and left/right, so if it is outside of the bounds of your button adjusting these may bring it back into view.
     
    Adam Zoo likes this.
  5. Divi Booster

    Divi Booster Divi Expert

    Adam Zoo likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Premade rolling text design for your Divi site without using any plugins:View Demo
  6. Adam Zoo

    Adam Zoo New Member

    my bad I didnt provide the right image, tomorrow I will PM you the site and the access so you can quote me...
    you remind me of those all unique people that use to help in vBulletin forums...

    upload_2024-5-5_19-33-14.png

    here is my tweaks so as you can see the icon disappeared, but not worry, please be patience and we can reach and agreement tomorrow, anyways I need to install a demo site
     
  7. Divi Booster

    Divi Booster Divi Expert

    Hey Adam,

    Just to be clear, I'm not asking for payment :)

    I can't currently commit to specific projects (paid or unpaid), but I'm always happy to try to help out where I can. Also, note that where I asked you to share a link to check / discuss - I just meant so that I can more easily understand what needs modified and inspect the CSS, etc, currently on the page.

    From the look of that screenshot, I think the issue with the icon is the color. The icon color is set within the definition of the svg icon's <path> tag:

    Code:
    Log In or Sign Up to view this code.
    The "fill" parameter is a hex color code "#2f8fff" (i.e. blue). Note that the # is URL encoded to "%23". So to make the icon visible, try changing it to, for example, white by setting the fill parameter like so:

    Code:
    Log In or Sign Up to view this code.
    Hope that helps, and give me a shout if there's anything else you would like some help styling.

    Thanks!
    Dan
     
    Adam Zoo likes this.
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  8. Adam Zoo

    Adam Zoo New Member

    I couldn't find a way to PM you the credentials... here is the site: https://evaluations.site/
    I am trying to help my wife's students to let them post their 'experiments' or homework, without the hassle of another page with cookies, ads, popups etc, so they don't find difficult to navigate the site... that is how 4 hrs of work looks, I guess is gonna take me from 15-20 hrs

    So it was my mistake to post an image that it doesn't look like I was looking for... I wanted/needed to work like FB's without the branding
     
  9. Adam Zoo

    Adam Zoo New Member

    Well I mastered the CSS, but I noticed that Divi Theme Options > Custom CSS the box rejects part of your code, it disappears

    upload_2024-5-7_10-28-55.png

    Code:
    Log In or Sign Up to view this code.

    all that disappears when you paste and save
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo
  10. Divi Booster

    Divi Booster Divi Expert

    Ah, okay. It's stripping out the <svg> tag. You can get around that by URL encoding the icon svg like so:

    Code:
    Log In or Sign Up to view this code.
    Note that I've changed the property from background to background-image to avoid it overriding your existing blue background color. Also, I've set the icon color to white for you, rather the previous blue, so hopefully you won't need to change it. Obviously the URL encoding make seeing where to change the color a bit more difficult - if you do need to change it, just look for this part "fill%3D%22%23ffffff%22" - the color code is the bit shown in bold.

    Yeah, I don't think there is a DM feature in the Divi.Help forum (though I may be wrong...). It's probably best to share stuff directly in the forum if you can so that others can jump in and help. But if you do want to message me directly at any point, I can be reached at https://divibooster.com/contact/

    I hope that helps sort out the search bar and best of luck with the rest of the site :)
     
  11. Adam Zoo

    Adam Zoo New Member

    that is what I meant when I am willing to pay, I dedicate around 2 hrs to this issue when you can fix it in 2 mins...
    let me try
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade card carousel design for your Divi site without using any plugins:View Demo
  12. Divi Booster

    Divi Booster Divi Expert

    Ha ha, yeah, I get it. Next time you get stuck just try for 2 mins and then post here - we'll be done in 4 ;)

    (Also, while I can't currently take up your kind offer, if you do want someone to handle it all I'm sure there are plenty of devs with Divi experience who can).

    Good luck!
     
  13. Adam Zoo

    Adam Zoo New Member

    I meant, I dont want to waste people's time nor abuse their patience, that is why I al willing to pay for the solution, to this point it is just the search icon and the padding inside the search field, all the rest I solved tweaking CSS :)
     
    1. PRO MEMBER PERKS Divi Mini Cart Pro Plugin - Instantly add 3 different types of mini cart to your Divi site:Learn More
  14. Divi Booster

    Divi Booster Divi Expert

    Hey Adam, sorry, I think my last reply came off sounding sarcastic. That entirely wasn't my intention. I was going for (and no doubt failing at) light-hearted humor. I genuinely think it's a good idea to ask here sooner rather than later - we may be able to get you unstuck with little effort on our part and save you some time in the process. I'm sure anyone who feels like it's a waste of their time will just avoid answering. Personally, I'm in the business of answering Divi questions, so if I can answer I will :)

    As I've spoken to you about elsewhere, the icon should now be fixed. I'll try to take a look at the padding as soon as I can.