Posted: July 6, 2016 at 4:03 pm
|
I’d like to hide the Price and Date in the registration form. I know I have to do it by writing css code in some existing files. My only problem at the moment is, I dont know which file I have to extend with this code. I already tried to add it to: Thank you for your help! (Running WP 4.4.4 and EE 3.1.37.6.1.L) |
Hello, We don’t recommend editing any core plugin files as those will be removed and replaced when an update is run. Instead, you can use a free WordPress plugin like Simple Custom CSS or Reaktiv CSS builder to hide that information. Once you pick one, then install and activate and go to Appearance –> Custom CSS and then add your CSS there and save changes. — |
|
|
Hello Lorenzo Thank you for your reply! I installed Reaktiv CSS builder and inserted the code I posted above. Then hit save. Thanks a lot for your help! Kind regards |
Hi, Your current CSS only removes the price. It does not target the date. Try this instead: p.event_prices, p.event_time, p.start_date {display: none;} — |
|
|
Hi Lorenzo Thank you for your reply! If I put something like `body { I appreciate your help! Kind regards! |
The use of !important overrides any other styles in place and it becomes harder apply styles to specific areas if they are using important. I’d recommend against using it unless everything else fails.
You don’t need to do that, but its good practice to only apply styles were they are needed, also the more specific your make a ruleset the more likely your rules will not be overridden by others. It depends on what your doing as to how specific you need to make them, for example #page-99 will only apply styles within a page with that ID, if that’s something you want you can make it that specific, or use another class/ID.
No, they should apply without doing anything further. Either there is a syntax error in the css your using breaking all styles after that error (sounds unlikely if you acan apply other styles) or your currently rules are not specific enough and are being overridden. Can you link us to the page so we can advise from there? You may need to us something like: #event_espresso_registration_form .event_prices, #event_espresso_registration_form .event_time, #event_espresso_registration_form .start_date { display: none; } But again, it depends on whats actually happening on the page. |
|
|
Hi Tony Your code works, you made my day! =D Kind regards from Switzerland! |
The support post ‘Hide Price and Date in Registration Form’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.