Git Product home page Git Product logo

Comments (8)

JustCarmen avatar JustCarmen commented on June 29, 2024

This is the result the navbar-collapse class on the same element which is necessary for small screens.

Use display: none !important to achieve what you want.

from webtrees-theme-justlight.

LarsRabe avatar LarsRabe commented on June 29, 2024

I changed it to
<style> .wt-header-search { display: none !important; } </style>
as you suggested.

Sadly that doesn't work either. Any other suggestion?

from webtrees-theme-justlight.

JustCarmen avatar JustCarmen commented on June 29, 2024

I've made some changes to the code. Now it should work with your original custom css (<style> .wt-header-search { display: none; } </style>)

from webtrees-theme-justlight.

LarsRabe avatar LarsRabe commented on June 29, 2024

I just found time to test. Sadly these changes don't work either.

But I achieved what I wanted by
.wt-header-search-form { display: none; }
This works on all themes including yours.

So somewhere in your code the .wt-header-search still seems to behave different from the original themes (I've tested all the standard themes).

from webtrees-theme-justlight.

JustCarmen avatar JustCarmen commented on June 29, 2024

So somewhere in your code the .wt-header-search still seems to behave different from the original themes

Yes, that's because the Justlight theme is optimized for mobile use and the default themes are not. I use a special mobile menu with the bootstrap navbar-collapse class. This conflicts with your custom changes because they both require the css display function on the same element.

But '<style> .wt-header-search { display: none; }' </style>' works in my local test system, so I will leave the changes as they are.

from webtrees-theme-justlight.

LarsRabe avatar LarsRabe commented on June 29, 2024

But '<style> .wt-header-search { display: none; }' </style>' works in my local test system, so I will leave the changes as they are.

I've tried it again. I made sure not to have any typo, deleted your theme and reinstalled with all of your development patches. Even disabled all other custom modules. Tried another computer and tablet. But, no luck at all. So it seems my server behaves different from your local test system. I can only get it to work by the -formclass.

Could it be possible it's PHP version related? I'm PHP 8.2.1
EDIT: with 8.0 and 8.1 no difference or with PHP boost disabled also no difference.

Anyway, thanks for your efforts! I'll stick to my work around then.

from webtrees-theme-justlight.

LarsRabe avatar LarsRabe commented on June 29, 2024

As we Dutch say: "nou breekt mijn klomp" ;-)

After re-installing webtrees from the scratch, it does work now as intended! Sorry for the fuzz.

from webtrees-theme-justlight.

JustCarmen avatar JustCarmen commented on June 29, 2024

Haha, kan gebeuren. Blij dat het is oplost :)

from webtrees-theme-justlight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.